OSGMesh Class Reference
Graphical Mesh or arbitrary OSG model.
More...
#include <osgprimitive.h>
Inherits lpzrobots::OSGPrimitive.
List of all members.
Detailed Description
Graphical Mesh or arbitrary OSG model.
Constructor & Destructor Documentation
OSGMesh |
( |
const std::string & |
filename, |
|
|
float |
scale = 1 , |
|
|
const osgDB::ReaderWriter::Options * |
options = 0 | |
|
) |
| | |
Constuctor.
- Parameters:
-
| filename | filename of the model file (search path is osg data path) |
| scale | scale factor used for scaling the model |
| options | for model reader |
Member Function Documentation
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.
void internInit |
( |
const OsgHandle & |
osgHandle, |
|
|
bool |
loadAndDisplayMesh, |
|
|
Quality |
quality = Middle | |
|
) |
| | [protected, virtual] |
void virtualInit |
( |
const OsgHandle & |
osgHandle |
) |
[virtual] |
Same as init, but the mesh file is not loaded and therefore not displayed.
This method ensures that the transform is correctly initialised.
- Parameters:
-
Member Data Documentation
osg::ref_ptr<osg::Node> mesh [protected] |
const osgDB::ReaderWriter::Options* options [protected] |
osg::ref_ptr<osg::MatrixTransform> scaletrans [protected] |
The documentation for this class was generated from the following files: