CEDRIC  Revision_backup-2009-02
Namespaces | Functions
OsgGeometry.cpp File Reference
#include "OsgGeometry.h"
#include "GetBoundingBoxVisitor.h"
#include <osg/Vec4>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/ShapeDrawable>
#include <osg/Shape>
#include <osg/Texture2D>
#include <osg/Image>
#include <osg/PolygonOffset>
#include <osg/LineWidth>
#include <osg/LineStipple>
#include <osg/BlendFunc>

Namespaces

 OsgGeometry
 

Functions

osg::BoundingBox OsgGeometry::getBoundingBox (osg::Node *node)
 Compute bounding box. More...
 
void OsgGeometry::setLineStipple (StateSet *state, int factor, unsigned short pattern)
 
void OsgGeometry::setLineState (StateSet *state, float linewidth=1.f, bool antialiased=true)
 
osg::Drawable * OsgGeometry::createCross3D (Vec3 position, float halfsize, Vec4 color)
 
osg::Drawable * OsgGeometry::createLine (Vec3 v0, Vec3 v1, Vec4 color)
 
osg::Drawable * OsgGeometry::createLineStrip (Vec3Array *v, Vec4 color)
 
osg::Drawable * OsgGeometry::createQuad (Vec3 center, Vec3 i, Vec3 j, Vec4 color)
 
void OsgGeometry::createBoxArray_pushBackBox (osg::Vec3 center, osg::Vec3 hl, osg::Vec3Array *va, osg::UShortArray *fa, osg::Vec3Array *na)
 
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::createBox (osg::Vec3 center, osg::Vec3 halfLengths, osg::Vec4 color)
 Create an axis-aligned box. More...
 
osg::Drawable * OsgGeometry::createBoxWireframe (Vec3 center, Vec3 hl, Vec4 color)
 
osg::Node * OsgGeometry::createCheckerboard (osg::Vec3 center, osg::Vec3 u, osg::Vec3 v, double checkerSize, float black, float white)
 Create a simple checkerboard. More...