|
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
|
ogmaptopolygons.h00001 #ifndef ORCAQGUI3D_OGMAPTOPOLYGONS_H 00002 #define ORCAQGUI3D_OGMAPTOPOLYGONS_H 00003 00004 #include <hydroogmap/ogmap.h> 00005 #include <osg/Geode> 00006 00007 namespace orcaqgui3d { 00008 00009 class GridToPolygonParams { 00010 public: 00011 00012 GridToPolygonParams() 00013 : textureUnit(0), 00014 height(3.0), 00015 color(0.4,0.1,0.3,1.0) 00016 {} 00017 00018 int textureUnit; 00019 double height; 00020 osg::Vec4 color; 00021 }; 00022 00023 // Returns a geode of polygons corresponding to the 00024 // OgMap. 00025 // Ignores the offset information (you'll need to apply the offset externally) 00026 osg::ref_ptr<osg::Geode> 00027 convertToPolygons( const hydroogmap::OgMap &ogMap, 00028 const GridToPolygonParams ¶ms ); 00029 00030 } 00031 00032 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5