//==== Scale ====// void StackGeom::Scale() { double currentScale = m_Scale() / m_LastScale(); for ( int i = 0 ; i < m_XSecSurf.NumXSec() ; i++ ) { XSec* xs = m_XSecSurf.FindXSec( i ); if ( xs ) { xs->SetScale( currentScale ); } } m_LastScale = m_Scale(); }
//==== Scale ====// void PropGeom::Scale() { double currentScale = m_Scale() / m_LastScale(); m_Diameter *= currentScale; for ( int i = 0 ; i < m_XSecSurf.NumXSec() ; i++ ) { XSec* xs = m_XSecSurf.FindXSec( i ); if ( xs ) { xs->SetScale( currentScale ); } } m_LastScale = m_Scale(); }
//==== Scale ====// void FuselageGeom::Scale() { double currentScale = m_Scale() / m_LastScale(); m_Length *= currentScale; for ( int i = 0 ; i < m_XSecSurf.NumXSec() ; i++ ) { XSec* xs = m_XSecSurf.FindXSec( i ); if ( xs ) { xs->SetScale( currentScale ); } } m_LastScale = m_Scale(); }