void MeshViewer::clearSelection() { QListIterator<Viewer::Figure*> i(figures()); while (i.hasNext()) { TriangleFigure* tf = dynamic_cast<TriangleFigure*>(i.next()); tf->triangle()->setSelected(false); tf->triangle()->info() = false; } }
void MeshViewer::paintGL() { QListIterator<Viewer::Figure*> i(figures()); while (i.hasNext()) { TriangleFigure* tf = dynamic_cast<TriangleFigure*>(i.next()); tf->triangle()->info() = false; } if (0 != _leppStrat) { _leppStrat->highlightLepp(); } Viewer::Widget::paintGL(); }
void __APPFUNC__ handlecmds(int cmd) { if (cmd >= 0x87 ) { /* On/offline options */ switch (cmd) { case 0x87: _DeviceOffline(HANGUP); printf("Hungup\n"); break; case 0x88: _DeviceOffline(NOHANGUP); printf("Offline\n"); break; case 0x89: _DeviceOnline(); printf("Turned device online\n"); } } else { if (process) { putchar(7); /* Beep */ return; } else { process=cmd; switch (cmd) { case 0x81: Ping(); break; case 0x82: do_netstat(); break; case 0x83: UserConfig(); break; case 0x84: exit(0); break; case 0x85: device_report(); break; case 0x86: figures(); } process=0; } } }