![]() |
VR-Forces Development_Version 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, DtOsgArticulatedModel *model, const std::string &modelDefName, const DtElementID elementId, const DtUniqueID uniqueId, const bool useInstancing) | |
| CTOR. | |
| virtual void | matchAndCreateMetaObject (osg::Node &node, DtOsgArticulatedModel *osgArticulatedModel, int nodeTypeIndex) |
| Match up meta data to particular nodes. | |
| 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. | |
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) | |
| DtMetaFileManager::LinkageValueVec & | myDynamicFeatureNames |
| List of node pointers that have meta data associated with them. | |
| std::vector < DtVirtualBaseClass * > & | myCreatedDynamicFeatures |
| Vector of dynamic features on this terrain so they can be deleted on page destruction. | |
| DtElementID | myElementId |
| The element ID of the object we are traversing. | |
| std::string | myModelDefinitionName |
| The model definition name for the object we are traversing. | |
| DtOsgArticulatedModel * | myOsgArticulatedModel |
| The object we are traversing, may be NULL. | |
| bool | myUseInstancing |
| For instancing, is the object being traversed instanced. | |
| DtUniqueID | myUniqueId |
| For instancing, what is the instance unique ID. | |
| unsigned int | myInstancedSwitchIndex |
| Used for connecting the switch node to the corresponding instanced switch. | |
| unsigned int | myInstancedDofIndex |
| Used for connecting the DoF node to the corresponding instanced DoF. | |
| unsigned int | myInstancedMultiswitchIndex |
| Used for connecting the multiswitch node to the corresponding instanced multiswitch. | |
| 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, | ||
| DtOsgArticulatedModel * | model, | ||
| const std::string & | modelDefName, | ||
| const DtElementID | elementId, | ||
| const DtUniqueID | uniqueId, | ||
| const bool | useInstancing | ||
| ) |
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, is the object being traversed instanced.
|
protected |
For instancing, what is the instance unique ID.
|
protected |
Used for connecting the switch node to the corresponding instanced switch.
|
protected |
Used for connecting the DoF node to the corresponding instanced DoF.
|
protected |
Used for connecting the multiswitch node to the corresponding instanced multiswitch.
|
protected |
|
protected |