#include <osgprimitive.h>
Inherits lpzrobots::OSGPrimitive.

Public Member Functions | |
| OSGMesh (const std::string &filename, float scale=1, const osgDB::ReaderWriter::Options *options=0) | |
| Constuctor. | |
| ~OSGMesh () | |
| virtual void | init (const OsgHandle &osgHandle, Quality quality=Middle) |
| Initialisation of the primitive. | |
| virtual float | getRadius () |
| float | getScale () |
Protected Attributes | |
| std::string | filename |
| float | scale |
| const osgDB::ReaderWriter::Options * | options |
| osg::ref_ptr< osg::Node > | mesh |
| osg::ref_ptr < osg::MatrixTransform > | scaletrans |
| OSGMesh | ( | const std::string & | filename, | |
| float | scale = 1, |
|||
| const osgDB::ReaderWriter::Options * | options = 0 | |||
| ) |
Constuctor.
| filename | filename of the model file (search path is osg data path) | |
| scale | scale factor used for scaling the model | |
| options | for model reader |
| ~OSGMesh | ( | ) |
| float getRadius | ( | ) | [virtual] |
| float getScale | ( | ) | [inline] |
Initialisation of the primitive.
Must in order to place the object into the scene. This function should be overloaded
Implements OSGPrimitive.
std::string filename [protected] |
osg::ref_ptr<osg::Node> mesh [protected] |
const osgDB::ReaderWriter::Options* options [protected] |
float scale [protected] |
osg::ref_ptr<osg::MatrixTransform> scaletrans [protected] |
1.5.8