void GL3DScales::OnVelocityScale(int pos) { MainFrame* pMainFrame = (MainFrame*)s_pMainFrame; QSail7 *pSail7 = (QSail7*)s_pSail7; s_VelocityScale = pos/100.0/sqrt(1.01-pos/100.0); pSail7->m_bResetglDownwash = true; pMainFrame->UpdateView(); }
void GL3DScales::OnLiftScale(int pos) { MainFrame* pMainFrame = (MainFrame*)s_pMainFrame; QSail7 *pSail7 = (QSail7*)s_pSail7; s_LiftScale = pos/100.0/sqrt(1.01-pos/100.0); pSail7->m_bResetglLift = true; pSail7->m_bResetglCPForces = true; pMainFrame->UpdateView(); }
void GL3DScales::OnVelocitySet() { MainFrame* pMainFrame = (MainFrame*)s_pMainFrame; QSail7 *pSail7 = (QSail7*)s_pSail7; int pos = m_pctrlVelocityScaleSlider->sliderPosition(); s_VelocityScale = pos/100.0/sqrt(1.01-pos/100.0); pSail7->m_bResetglSpeeds = true; pSail7->m_bResetglDownwash = true; pMainFrame->UpdateView(); }
void GL3DScales::OnApply() { MainFrame* pMainFrame = (MainFrame*)s_pMainFrame; QSail7 *pSail7 = (QSail7*)s_pSail7; s_bAutoCpScale = m_pctrlAutoCpScale->isChecked(); s_LegendMax = m_pctrlLegendMax->Value(); s_LegendMin = m_pctrlLegendMin->Value(); OnStreamParams(); pSail7->m_bResetglStream = true; pMainFrame->UpdateView(); }
void GL3DScales::OnCpScale() { MainFrame* pMainFrame = (MainFrame*)s_pMainFrame; QSail7 *pSail7 = (QSail7*)s_pSail7; s_bAutoCpScale = m_pctrlAutoCpScale->isChecked(); m_pctrlLegendMin->setEnabled(!s_bAutoCpScale); m_pctrlLegendMax->setEnabled(!s_bAutoCpScale); s_LegendMax = m_pctrlLegendMax->Value(); s_LegendMin = m_pctrlLegendMin->Value(); // pSail7->m_bResetglOpp = true; pSail7->m_bResetglLegend = true; pSail7->m_bResetglCPForces = true; pMainFrame->UpdateView(); }