CEDRIC  Revision_backup-2009-02
Namespaces | Functions
OsgGeometry.h File Reference
#include <osg/Vec3>
#include <osg/BoundingBox>
#include <osg/Node>
#include <osg/StateSet>
#include <osg/ShapeDrawable>

Go to the source code of this file.

Namespaces

 OsgGeometry
 

Functions

osg::BoundingBox OsgGeometry::getBoundingBox (osg::Node *node)
 Compute bounding box. More...
 
void OsgGeometry::setLineState (osg::StateSet *state, float linewidth, bool antialiased)
 Add linewidth and antialiasing to a stateset. More...
 
void OsgGeometry::setLineStipple (osg::StateSet *state, int factor=1, unsigned short pattern=0xFF00)
 Add linestipple to a stateset. More...
 
osg::Drawable * OsgGeometry::createCross3D (osg::Vec3 position, float halfsize, osg::Vec4 color=osg::Vec4(1, 1, 1, 1))
 Create a 3D cross hair marker. More...
 
osg::Drawable * OsgGeometry::createLine (osg::Vec3 v0, osg::Vec3 v1, osg::Vec4 color)
 Create a single line. More...
 
osg::Drawable * OsgGeometry::createLineStrip (osg::Vec3Array *v, osg::Vec4 color)
 Create a linestrip. More...
 
osg::Drawable * OsgGeometry::createQuad (osg::Vec3 center, osg::Vec3 i, osg::Vec3 j, osg::Vec4 color)
 Create simple quad. More...
 
osg::Drawable * OsgGeometry::createBox (osg::Vec3 center, osg::Vec3 halfLengths, osg::Vec4 color)
 Create an axis-aligned box. More...
 
osg::Drawable * OsgGeometry::createBoxWireframe (osg::Vec3 center, osg::Vec3 hl, osg::Vec4 color)
 Create an axis-aligned box as wireframe. More...
 
osg::Drawable * OsgGeometry::createBoxArray (osg::Vec3Array *centers, osg::Vec3Array *hls, osg::Vec4 color)
 Put a lot of boxes into one Geometry. More...
 
osg::Drawable * OsgGeometry::createCylinder (osg::Vec3 center, float radius, float height)
 Create an axis-aligned cylinder. More...
 
osg::Node * OsgGeometry::createCheckerboard (osg::Vec3 center, osg::Vec3 u, osg::Vec3 v, double checkerSize, float black, float white)
 Create a simple checkerboard. More...