INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
drivebicyclepainter.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 ORCAGUI_DRIVEBICYCLE_PAINTER_H 00012 #define ORCAGUI_DRIVEBICYCLE_PAINTER_H 00013 00014 #include <QColor> 00015 #include <QPolygonF> 00016 #include <orca/drivebicycle.h> 00017 #include <hydroqguielementutil/definitions2d.h> 00018 00019 class QPainter; 00020 00021 namespace orcaqgui2d 00022 { 00023 00027 class DriveBicyclePainter 00028 { 00029 00030 public: 00031 // -1 means 'default' 00032 DriveBicyclePainter(); 00033 00034 void setDescription( orca::VehicleControlVelocityBicycleDescriptionPtr 00035 &description ); 00036 void setData( const orca::DriveBicycleData &data ); 00037 00038 void paint( QPainter *p, int z ); 00039 bool paintThisLayer(int z) const {return z==hydroqguielementutil::Z_POSE;} 00040 00041 void clear(); 00042 00043 void execute( int action ); 00044 00045 void setFocus( bool inFocus ); 00046 00047 private: 00048 00049 orca::DriveBicycleData data_; 00050 00051 QPolygonF qArrow_; 00052 00053 bool isDisplaySteerLimits_; 00054 bool isDisplayCurrentSteerAngle_; 00055 bool isDisplayRefSteerAngle_; 00056 QColor outlineColor_; 00057 QColor basisColor_; 00058 00059 orca::VehicleControlVelocityBicycleDescriptionPtr description_; 00060 00061 }; 00062 00063 } // namespace 00064 00065 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)