//------------------------------------------------------------------------------ // draw() -- draws the object(s) using the graphic matrix //------------------------------------------------------------------------------ void CompassRose::draw() { lcSaveMatrix(); if (!centered) lcTranslate(0, displacement); lcRotate(rot); BasicGL::Graphic::draw(); lcRestoreMatrix(); }
//------------------------------------------------------------------------------ // draw() - //------------------------------------------------------------------------------ void Adi::draw() { lcSaveMatrix(); lcRotate(curPhi); lcTranslate(0, scaledPitch); BaseClass::draw(); lcRestoreMatrix(); }
//------------------------------------------------------------------------------ // Translate in X by the azimuth angle and draw. //------------------------------------------------------------------------------ void TdAzPtr::draw() { if (isVisible()) { lcSaveMatrix(); lcTranslate( azimuth/30.0f, 0.0 ); graphics::Graphic::draw(); lcRestoreMatrix(); } }
//------------------------------------------------------------------------------ // Translate in Y by the elevation angle and draw. //------------------------------------------------------------------------------ void TdElevPtr::draw() { if (isVisible()) { lcSaveMatrix(); lcTranslate( 0.0, elev/30.0f ); BasicGL::Graphic::draw(); lcRestoreMatrix(); } }
//------------------------------------------------------------------------------ // drawFunc() -- draws the object(s) //------------------------------------------------------------------------------ void Rotators::draw() { lcSaveMatrix(); if (xRot != -1) lcRotate(1, 0, 0, xRot); if (yRot != -1) lcRotate(0, 1, 0, yRot); if (zRot != -1) lcRotate(0, 0, 1, zRot); Graphic::draw(); lcRestoreMatrix(); }
//------------------------------------------------------------------------------ // draw() //------------------------------------------------------------------------------ void BearingPointer::draw() { bool c = isCentered(); LCreal dis = getDisplacement(); lcSaveMatrix(); if (!c) lcTranslate(0, dis); lcRotate(myRotation); BasicGL::Graphic::draw(); lcRestoreMatrix(); }