#include <osgprimitive.h>
Inherits OSGPrimitive.
Inheritance diagram for OSGMesh:


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) | 
| 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] | 
        
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.4.7