orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
orcaqgui3dfactory/gridelement.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp, Ben Upcroft 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCAGUI3D_GRIDELEMENT3D_H 00012 #define ORCAGUI3D_GRIDELEMENT3D_H 00013 00014 #include <QGLWidget> 00015 #include <orcaqgui/ipermanentelement.h> 00016 #include <orcaqgui3d/guielement3d.h> 00017 00018 namespace orcaqgui3d 00019 { 00020 00025 class GridElement : public GuiElement3d, public orcaqgui::IPermanentElement 00026 { 00027 public: 00028 00029 GridElement(); 00030 00031 virtual bool isInGlobalCS() { return true; } 00032 00033 virtual void paint( QGLWidget *p ); 00034 00035 virtual QStringList contextMenu(); 00036 00037 virtual void execute( int action ); 00038 00039 private: 00040 00041 void drawGridAndLabels( QGLWidget *p ); 00042 void drawOrigin(); 00043 00044 bool isDisplayGrid_; 00045 bool isDisplayOrigin_; 00046 bool isDisplayLabels_; 00047 00048 }; 00049 00050 } // namespace 00051 00052 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)