Пример #1
0
void Edge3D::set_arrow(Edge3D::Arrow arrow, bool enable)
{
    if (enable)
        set_arrows(arrows() | arrow);
    else
        set_arrows(arrows() & ~arrow);
}
Пример #2
0
void face(GLUquadricObj *quadObj)
{
    glPushMatrix();
        glEnable(GL_TEXTURE_2D);
        gluCylinder(quadObj, rTop, rTop, hFace, 50, 50);
        gluDisk(quadObj, 0.0, rTop, 50, 50);
        glDisable(GL_TEXTURE_2D);
        arrows(quadObj);
        marks(quadObj);
    glPopMatrix();
}
Пример #3
0
int main(int argc, char **argv)
{
  Aria::init();
  ArServerBase server;
  ArGlobalFunctor2<ArServerClient *, ArNetPacket *> sendEmptyCB(&sendEmpty);
  if (!server.open(7272))
  {
    printf("Could not open server port\n");
    exit(1);
  }

  ArServerInfoDrawings drawing(&server);

  ArDrawingData arrows("polyarrow", ArColor(0, 0, 255), 5, 50);
  ArDrawingData dots("polydots", ArColor(0, 255, 0), 12, 50);
  drawing.addDrawing(&arrows, "arrows", &sendEmptyCB);
  drawing.addDrawing(&dots, "dots", &sendEmptyCB);
  server.run();

}