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

 

         

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 // Force the Node and its children to be wireframe, overrides parents state
00020 void
00021 setWireFrameMode( osg::Node *srcNode );
00022 
00023 void
00024 setAntiAliasing( osg::Node *node );
00025 
00027 osg::ref_ptr<osg::Geometry>
00028 drawEllipse( float radiusX,
00029              float radiusY,
00030              const osg::Vec4 &color,
00031              float z=0,
00032              int numPts=25 );
00033 
00035 osg::ref_ptr<osg::Geode>
00036 drawCylinder( float height,
00037               float radius,
00038               const osg::Vec4 &color );
00039 
00040 inline osg::Vec4 toVec4( const QColor &color )
00041 { return osg::Vec4( color.red()/255.0,
00042                     color.green()/255.0,
00043                     color.blue()/255.0,
00044                     color.alpha()/255.0 ); }
00045 
00046 }
00047 
00048 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5