//------------------------------------------------------------------------------
// draw() -- draws the object(s) using the graphic matrix
//------------------------------------------------------------------------------
void CompassRose::draw()
{
    lcSaveMatrix();
        if (!centered) lcTranslate(0, displacement);    
        lcRotate(rot);
        BasicGL::Graphic::draw();
    lcRestoreMatrix();
}
Ejemplo n.º 2
0
//------------------------------------------------------------------------------
// draw() -
//------------------------------------------------------------------------------
void Adi::draw()
{
    lcSaveMatrix();
        lcRotate(curPhi);
        lcTranslate(0, scaledPitch);
        BaseClass::draw();
    lcRestoreMatrix();
}
Ejemplo n.º 3
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();
   }
}
Ejemplo n.º 4
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();
   }
}
Ejemplo n.º 5
0
//------------------------------------------------------------------------------
// 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();
}
Ejemplo n.º 6
0
//------------------------------------------------------------------------------
// draw() 
//------------------------------------------------------------------------------
void BearingPointer::draw()
{
    bool c = isCentered();
    LCreal dis = getDisplacement();
    lcSaveMatrix();
        if (!c) lcTranslate(0, dis);
        lcRotate(myRotation);
        BasicGL::Graphic::draw();
    lcRestoreMatrix();
}