![]() |
VR-Forces 4.10 Class Documentation
|
DtMetaFileVisitor will inspect the nodes of a scene graph and create the right kind of DtMetaObject for the node. More...

Public Member Functions | |
| DtMetaFileVisitor (DtDe &de, DtMetaFileManager::LinkageValueVec &metaFeatures, std::vector< DtVirtualBaseClass * > &tickablesVec, const std::string &modelDefName, const DtElementID elementId, const DtUniqueID uniqueId, DtOsgArticulatedModel *model=0) | |
| CTOR. More... | |
| virtual void | matchAndCreateMetaObject (osg::Node &node, int nodeTypeIndex) |
| Match up meta data to particular nodes. More... | |
| virtual bool | matches (const DtMetaFileManager::NodeLinkage &currLinkage, const osg::Node &n) const |
| Does this node match our meta file feature's node name or annotation string. More... | |
Apply methods | |
| virtual void | apply (osg::Node &node) |
| virtual void | apply (osg::Geode &geode) |
| virtual void | apply (osg::Group &group) |
| virtual void | apply (osgSim::MultiSwitch &multiswitch) |
| virtual void | apply (osg::Switch &sw) |
| virtual void | apply (osgSim::DOFTransform &dof) |
Protected Attributes | |
| DtDe & | myDe |
| DtMetaObjectFactory & | myMetaObjectFactory |
| Generate the type of feature we need depending on the meta data feature name (set up in vrvOsg.cxx) More... | |
| DtMetaFileManager::LinkageValueVec & | myDynamicFeatureNames |
| List of node pointers that have meta data associated with them. More... | |
| std::vector < DtVirtualBaseClass * > & | myCreatedDynamicFeatures |
| Vector of dynamic features on this terrain so they can be deleted on page destruction. More... | |
| DtElementID | myElementId |
| The element ID of the object we are traversing. More... | |
| std::string | myModelDefinitionName |
| The model definition name for the object we are traversing. More... | |
| DtOsgArticulatedModel * | myOsgArticulatedModel |
| The object we are traversing, may be NULL. More... | |
| DtUniqueID | myUniqueId |
| For instancing, what is the instance unique ID. More... | |
| unsigned int | myInstancedSwitchIndex |
| Used for connecting the switch node to the corresponding instanced switch. More... | |
| unsigned int | myInstancedDofIndex |
| Used for connecting the DoF node to the corresponding instanced DoF. More... | |
| unsigned int | myInstancedMultiswitchIndex |
| Used for connecting the multiswitch node to the corresponding instanced multiswitch. More... | |
| unsigned int | myInstancedGeodeIndex |
| unsigned int | myInstancedGroupIndex |
DtMetaFileVisitor will inspect the nodes of a scene graph and create the right kind of DtMetaObject for the node.
The DtMetaObject will also configure itself based on the JSON data from the .meta file
| makVrv::DtMetaFileVisitor::DtMetaFileVisitor | ( | DtDe & | de, |
| DtMetaFileManager::LinkageValueVec & | metaFeatures, | ||
| std::vector< DtVirtualBaseClass * > & | tickablesVec, | ||
| const std::string & | modelDefName, | ||
| const DtElementID | elementId, | ||
| const DtUniqueID | uniqueId, | ||
| DtOsgArticulatedModel * | model = 0 |
||
| ) |
CTOR.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Match up meta data to particular nodes.
|
virtual |
Does this node match our meta file feature's node name or annotation string.
|
protected |
|
protected |
Generate the type of feature we need depending on the meta data feature name (set up in vrvOsg.cxx)
|
protected |
List of node pointers that have meta data associated with them.
|
protected |
Vector of dynamic features on this terrain so they can be deleted on page destruction.
|
protected |
The element ID of the object we are traversing.
|
protected |
The model definition name for the object we are traversing.
|
protected |
The object we are traversing, may be NULL.
|
protected |
For instancing, what is the instance unique ID.
Used for connecting the switch node to the corresponding instanced switch.
Used for connecting the DoF node to the corresponding instanced DoF.
Used for connecting the multiswitch node to the corresponding instanced multiswitch.