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
|
boxelement.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 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 QRED_BOXELEMENT_H 00012 #define QRED_BOXELEMENT_H 00013 00014 #include <hydroqguielementutil/guielement2d.h> 00015 #include <qcolor.h> 00016 #include <hydroqguielementutil/definitions2d.h> 00017 00018 namespace orcaqgui2d { 00019 00024 class BoxElement : public hydroqguielementutil::GuiElement2d 00025 { 00026 public: 00027 BoxElement( QColor color, float centreX, float centreY, float width, float height ); 00028 ~BoxElement(); 00029 00030 void paint( QPainter*, int z ); 00031 bool paintThisLayer( int z ) const { return z == hydroqguielementutil::Z_GRID; } 00032 bool isInGlobalCS() { return true; } 00033 00034 private: 00035 00036 QColor color_; 00037 float centreX_; 00038 float centreY_; 00039 float width_; 00040 float height_; 00041 }; 00042 00043 } 00044 00045 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)