Robot Simulator of the Robotics Group for Self-Organization of Control: OSGMesh Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# OSGMesh Class Reference

Graphical Mesh or arbitrary OSG model. More...

`#include <osgprimitive.h>`

Inherits OSGPrimitive.

Inheritance diagram for OSGMesh:

[legend]
Collaboration diagram for OSGMesh:

[legend]
List of all members.

## 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

## 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

~OSGMesh | ( |  | ) |

## Member Function Documentation

float getRadius | ( |  | ) | `[virtual]`

float getScale | ( |  | ) | `[inline]`

void init | ( | const OsgHandle & | osgHandle,
|  | Quality | quality = `Middle` |
| ) |  |  | `[virtual]`

## Member Data Documentation

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]`

The documentation for this class was generated from the following files:

- osgprimitive.h
- osgprimitive.cpp