Graphical box with Textures. More...
#include <osgprimitive.h>
Inherits lpzrobots::OSGPrimitive.
Public Member Functions | |
OSGBoxTex (float lengthX, float lengthY, float lengthZ) | |
OSGBoxTex (osg::Vec3 dim) | |
virtual void | init (const OsgHandle &osgHandle, Quality quality=Middle) |
Initialisation of the primitive. | |
virtual osg::Vec3 | getDim () const |
virtual void | setDim (const osg::Vec3 &_dim) |
virtual void | setColor (const Color &color) |
sets the color for painting this primitive | |
Protected Member Functions | |
virtual void | applyTextures () |
this actually sets the textures, overwritten | |
Protected Attributes | |
osg::Vec3 | dim |
osg::ref_ptr< osg::Geode > | faces [6] |
Graphical box with Textures.
OSGBoxTex | ( | float | lengthX, | |
float | lengthY, | |||
float | lengthZ | |||
) |
void applyTextures | ( | ) | [protected, virtual] |
this actually sets the textures, overwritten
Reimplemented from OSGPrimitive.
virtual osg::Vec3 getDim | ( | ) | const [inline, virtual] |
Initialisation of the primitive.
Must in order to place the object into the scene. This function should be overloaded
Implements OSGPrimitive.
void setColor | ( | const Color & | color | ) | [virtual] |
sets the color for painting this primitive
Reimplemented from OSGPrimitive.
virtual void setDim | ( | const osg::Vec3 & | _dim | ) | [inline, virtual] |
osg::ref_ptr<osg::Geode> faces[6] [protected] |