#include <osgprimitive.h>
Inherits OSGPrimitive.
Inheritance diagram for OSGBoxTex:
Public Member Functions | |
OSGBoxTex (float lengthX, float lengthY, float lengthZ) | |
OSGBoxTex (osg::Vec3 dim) | |
virtual void | init (const OsgHandle &osgHandle, Quality quality=Middle) |
osg::Vec3 | getDim () const |
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] |
OSGBoxTex | ( | float | lengthX, | |
float | lengthY, | |||
float | lengthZ | |||
) |
void applyTextures | ( | ) | [protected, virtual] |
osg::Vec3 getDim | ( | ) | const [inline] |
void setColor | ( | const Color & | color | ) | [virtual] |
void setDim | ( | const osg::Vec3 & | _dim | ) | [inline] |
osg::ref_ptr<osg::Geode> faces[6] [protected] |