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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

osgutil.h

00001 #ifndef ORCAQGUI3D_OSGUTIL_H
00002 #define ORCAQGUI3D_OSGUTIL_H
00003 
00004 #include <osg/PositionAttitudeTransform>
00005 #include <osg/Geometry>
00006 #include <orcaqgui3d/coordinateframe.h>
00007 #include <QColor>
00008 
00009 namespace orcaqgui3d {
00010 
00011 osg::ref_ptr<osg::PositionAttitudeTransform>
00012 getPositionAttitudeTransform( double x,
00013                               double y,
00014                               double z,
00015                               double roll,
00016                               double pitch,
00017                               double yaw );
00018 
00019 osg::Matrixd toMatrixd( const CoordinateFrame &cf );
00020 CoordinateFrame toCoordinateFrame( const osg::Matrixd &m );
00021 
00022 // Force the Node and its children to be wireframe, overrides parents state
00023 void
00024 setWireFrameMode( osg::Node *srcNode );
00025 
00026 void
00027 setAntiAliasing( osg::Node *node );
00028 
00030 osg::ref_ptr<osg::Geometry>
00031 drawEllipse( float radiusX,
00032              float radiusY,
00033              const osg::Vec4 &color,
00034              float z=0,
00035              int numPts=25 );
00036 
00038 osg::ref_ptr<osg::Geometry>
00039 drawVee( float radius,
00040          const osg::Vec4 &color,
00041          float z );
00042 
00044 osg::ref_ptr<osg::Geode>
00045 drawCylinder( float height,
00046               float radius,
00047               const osg::Vec4 &color );
00048 
00049 inline osg::Vec4 toVec4( const QColor &color )
00050 { return osg::Vec4( color.red()/255.0,
00051                     color.green()/255.0,
00052                     color.blue()/255.0,
00053                     color.alpha()/255.0 ); }
00054 
00055 }
00056 
00057 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5