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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

orcaqgui3dfactory/featuremap2dpainter.h

00001 /*
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 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 <hydroqgui/hydroqgui.h>
00018 #include <osg/Group>
00019 #include <osg/Geode>
00020 
00021 // forward declarations
00022 class QPainter;
00023 
00024 namespace orcaqgui3d {
00025     
00026     
00027 class FeatureMap2dPainter
00028 {
00029   public:
00030     FeatureMap2dPainter();
00031 
00032     void setData( const orca::FeatureMap2dData &featureData );
00033     void clear() {}
00034     
00035     int saveMap( const QString fileName, hydroqguielementutil::IHumanManager *humanManager ) const;
00036 
00037     osg::Node *osgNode() const { return root_.get(); }
00038 
00039   private:
00040 
00041     void 
00042     paintPointFeature( int featureType,
00043                        int featureNum,
00044                        double probExists,
00045                        double centreX,
00046                        double centreY,
00047                        double covXX,
00048                        double covXY,
00049                        double covYY );
00050 
00051     void paintPointFeature( const orca::CartesianPointFeature2d &f,
00052                             int featureNum );
00053     void  paintPoseFeature( const orca::CartesianPoseFeature2d &f,
00054                             int featureNum );
00055     void paintLineFeature(  const orca::CartesianLineFeature2d  &f,
00056                             int featureNum );
00057 
00058 //     bool useTransparency_;
00059 //     bool displayFeatureNumbers_;
00060 //     bool displayUncertainty_;
00061 
00062     // Keep it so we can save it
00063     orca::FeatureMap2dData data_;
00064 
00065     osg::ref_ptr<osg::Group> root_;
00066 };
00067 
00068 }
00069 
00070 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5