BrainTrain
|
NodeVisitor for batch replacing all Geometry in all visited Geodes. More...
#include <GeometryPlacerVisitor.h>
Public Member Functions | |
GeometryPlacerVisitor (osg::Geometry *geometryToPlace) | |
Constructor. More... | |
virtual void | apply (osg::Geode &geode) |
Change the Geometry of this Geode. More... | |
osg::ref_ptr< osg::Geometry > | getGeometryToPlace () const |
void | setGeometryToPlace (osg::ref_ptr< osg::Geometry > val) |
Private Attributes | |
osg::ref_ptr< osg::Geometry > | _geometryToPlace |
NodeVisitor for batch replacing all Geometry in all visited Geodes.
Takes a geometry as argument and replaces every geometry in the sub scene Useful for batch replacing a bunch of geometrys which were placed as dummys in Blender and then imported. Rotation and Scaling of the Geometry will persist.
Definition at line 15 of file GeometryPlacerVisitor.h.
brtr::GeometryPlacerVisitor::GeometryPlacerVisitor | ( | osg::Geometry * | geometryToPlace | ) |
Constructor.
geometryToPlace | geometry to replace the found drawables |
Definition at line 6 of file GeometryPlacerVisitor.cpp.
|
virtual |
Change the Geometry of this Geode.
geode | the Geode which will be alternate |
Definition at line 11 of file GeometryPlacerVisitor.cpp.
osg::ref_ptr< osg::Geometry > brtr::GeometryPlacerVisitor::getGeometryToPlace | ( | ) | const |
Definition at line 16 of file GeometryPlacerVisitor.cpp.
void brtr::GeometryPlacerVisitor::setGeometryToPlace | ( | osg::ref_ptr< osg::Geometry > | val | ) |
Definition at line 20 of file GeometryPlacerVisitor.cpp.
|
private |
Definition at line 34 of file GeometryPlacerVisitor.h.