コード例 #1
0
//------------------------------------------------------------------------------
// 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();
   }
}
コード例 #2
0
//------------------------------------------------------------------------------
// 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();
   }
}
コード例 #3
0
//------------------------------------------------------------------------------
// draw() 
//------------------------------------------------------------------------------
void BearingPointer::draw()
{
    bool c = isCentered();
    LCreal dis = getDisplacement();
    lcSaveMatrix();
        if (!c) lcTranslate(0, dis);
        lcRotate(myRotation);
        BasicGL::Graphic::draw();
    lcRestoreMatrix();
}