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
|
orcaqgui3dfactory/featuremap2dpainter.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 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 QORC_FEATUREMAP2D_PAINTER_H 00012 #define QORC_FEATUREMAP2D_PAINTER_H 00013 00014 #include <qcolor.h> 00015 #include <orca/featuremap2d.h> 00016 #include <hydroqguielementutil/definitions2d.h> 00017 #include <osg/Group> 00018 #include <osg/Geode> 00019 00020 // forward declarations 00021 class QPainter; 00022 00023 namespace hydroqguielementutil { 00024 class IHumanManager; 00025 } 00026 00027 namespace orcaqgui3d { 00028 00029 00030 class FeatureMap2dPainter 00031 { 00032 public: 00033 FeatureMap2dPainter(); 00034 00035 void setData( const orca::FeatureMap2dData &featureData ); 00036 void clear() {} 00037 00038 int saveMap( const QString fileName, hydroqguielementutil::IHumanManager *humanManager ) const; 00039 00040 osg::Node *osgNode() const { return root_.get(); } 00041 00042 private: 00043 00044 void 00045 paintPointFeature( int featureType, 00046 int featureNum, 00047 double probExists, 00048 double centreX, 00049 double centreY, 00050 double covXX, 00051 double covXY, 00052 double covYY ); 00053 00054 void paintPointFeature( const orca::CartesianPointFeature2d &f, 00055 int featureNum ); 00056 void paintPoseFeature( const orca::CartesianPoseFeature2d &f, 00057 int featureNum ); 00058 void paintLineFeature( const orca::CartesianLineFeature2d &f, 00059 int featureNum ); 00060 00061 // bool useTransparency_; 00062 // bool displayFeatureNumbers_; 00063 // bool displayUncertainty_; 00064 00065 // Keep it so we can save it 00066 orca::FeatureMap2dData data_; 00067 00068 osg::ref_ptr<osg::Group> root_; 00069 }; 00070 00071 } 00072 00073 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)