![]() |
VR-Forces 4.6.1 Class Documentation
|
Default implementation of the model parser for Articulated models. More...

Public Types | |
Output structures | |
| typedef std::vector < osg::ref_ptr < osgSim::DOFTransform > > | PartTransformList |
| typedef boost::unordered_map < int, PartTransformList > | PartMap |
| typedef std::vector < osg::ref_ptr < osgSim::MultiSwitch > > | StateList |
| typedef boost::unordered_map < int, StateList > | StateMap |
| typedef std::vector < osg::ref_ptr< osg::Sequence > > | AnimationList |
| typedef boost::unordered_map < std::string, AnimationList > | AnimationMap |
| typedef std::map< int, int > | StateValueMap |
| typedef std::vector< bool > | StateExistenceList |
| typedef boost::unordered_map < int, StateExistenceList > | StateExistenceMap |
| typedef std::vector < osg::ref_ptr< osg::Group > > | GroupList |
| typedef boost::unordered_map < std::string, GroupList > | AnnotationMap |
| typedef std::vector< bool > | ValueList |
| typedef std::vector< ValueList > | SwitchSetList |
| typedef std::map < osgSim::MultiSwitch *, SwitchSetList > | SwitchSetMap |
Public Member Functions | |
| DtArticulatedModelParser (DtDe &de) | |
| CTOR. | |
| virtual | ~DtArticulatedModelParser () |
| DTOR. | |
| virtual void | apply (osg::Group &group) |
| Apply functions used for iterating through a model using the as a node visitor. | |
| virtual void | apply (osg::Sequence &sequence) |
| virtual void | apply (osgSim::MultiSwitch &multiswitch) |
| virtual void | apply (osgSim::DOFTransform &transform) |
| virtual void | apply (osg::Transform &transform) |
Public Member Functions inherited from makVrv::DtModelParser | |
| DtModelParser () | |
| CTOR. | |
| virtual | ~DtModelParser () |
| DTOR. | |
Static Public Member Functions | |
| static std::string | parserFormat () |
| Get the string to indicate the parser format this parser supports. | |
Protected Member Functions | |
| virtual bool | parseSwitchDeclaration (const std::string &desc, osgSim::MultiSwitch &multiswitch) |
| Parse a switch declaration and add a state to the model if it is able to parse the description. | |
| virtual bool | parseDefaultMultiSwitchValues (osgSim::MultiSwitch &multiswitch) |
| Parse a switch to save the default values to be re-used when use by a simple model (props) | |
| const DtModelSemanticsMapper::States::Id * | createCustomStateId (const std::string &stateName, DtModelSemanticsMapper &mapper) |
| Creates a custom state id if possible. | |
| virtual bool | parseStateDeclaration (const std::string &desc, osg::Group &group) |
| Parse a state node. | |
| virtual bool | parseAnnotationDeclaration (const std::string &desc, osg::Group &group) |
| Parse a annotation node. | |
| virtual bool | parsePartDeclaration (const std::string &desc, osgSim::DOFTransform &transform) |
| Parse a part declaration and add a part if the parse was successful. | |
| virtual bool | parseAnimationDeclaration (const std::string &desc, osg::Sequence &sequence) |
| Parse an animation declaration and add an animation if the part was successful. | |
| std::vector< int > | parseValueList (const std::string &valueList) |
| Parse a value list string into a list of integers. | |
| void | pushStateId (int idNumber, osgSim::MultiSwitch *lastStateId) |
| Push a state id onto a local stack. | |
| void | popStateId () |
| Pop a state id onto a local stack. | |
| osgSim::MultiSwitch * | lastStateId () const |
| int | lastStateIdNumber () const |
get/set parsed data interface | |
| void | getParts (DtArticulatedModel::PartList &parts) const |
| const PartMap & | parts () const |
| const StateMap & | states () const |
| const AnimationMap & | animations () const |
| void | addPart (int partNumber, osgSim::DOFTransform *node) |
| void | addState (int stateNumber, osgSim::MultiSwitch *node) |
| void | addAnimation (const std::string &animationName, osg::Sequence *node) |
| void | setStateValueExists (int stateNumber, int stateValue) |
| void | addAnnotationGroup (const std::string &annotation, osg::Group *group) |
| void | setDepthMask (osg::Group &parent) |
Protected Attributes | |
| std::string | mySwitchTag |
| std::string | myStateTag |
| std::string | myPartTag |
| std::string | myAnimationTag |
| std::string | mySkipTag |
| std::string | myNoSkipTag |
| std::string | myAnnotationTag |
| std::string | myLoopCountTag |
| std::string | myLastFrameTimeTag |
| std::stack< osg::ref_ptr < osgSim::MultiSwitch > > | myStateIds |
| std::stack< int > | myStateIdNumbers |
| DtDe & | myDe |
Default implementation of the model parser for Articulated models.
| typedef std::vector<osg::ref_ptr<osgSim::DOFTransform> > makVrv::DtArticulatedModelParser::PartTransformList |
| typedef boost::unordered_map<int, PartTransformList > makVrv::DtArticulatedModelParser::PartMap |
| typedef std::vector< osg::ref_ptr<osgSim::MultiSwitch> > makVrv::DtArticulatedModelParser::StateList |
| typedef boost::unordered_map<int, StateList > makVrv::DtArticulatedModelParser::StateMap |
| typedef std::vector< osg::ref_ptr<osg::Sequence> > makVrv::DtArticulatedModelParser::AnimationList |
| typedef boost::unordered_map<std::string, AnimationList > makVrv::DtArticulatedModelParser::AnimationMap |
| typedef std::map<int, int > makVrv::DtArticulatedModelParser::StateValueMap |
| typedef std::vector<bool> makVrv::DtArticulatedModelParser::StateExistenceList |
| typedef boost::unordered_map<int, StateExistenceList> makVrv::DtArticulatedModelParser::StateExistenceMap |
| typedef std::vector< osg::ref_ptr<osg::Group> > makVrv::DtArticulatedModelParser::GroupList |
| typedef boost::unordered_map<std::string, GroupList > makVrv::DtArticulatedModelParser::AnnotationMap |
| typedef std::vector<bool> makVrv::DtArticulatedModelParser::ValueList |
| typedef std::vector<ValueList> makVrv::DtArticulatedModelParser::SwitchSetList |
| typedef std::map<osgSim::MultiSwitch*, SwitchSetList> makVrv::DtArticulatedModelParser::SwitchSetMap |
| makVrv::DtArticulatedModelParser::DtArticulatedModelParser | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Get the string to indicate the parser format this parser supports.
Reimplemented in makVrv::DtDynamicTerrainParser.
|
virtual |
Apply functions used for iterating through a model using the as a node visitor.
Reimplemented in makVrv::DtDynamicTerrainParser.
|
virtual |
Reimplemented in makVrv::DtDynamicTerrainParser.
|
virtual |
Reimplemented in makVrv::DtDynamicTerrainParser.
|
virtual |
|
virtual |
|
protectedvirtual |
Parse a switch declaration and add a state to the model if it is able to parse the description.
| true | if a state was added. |
| false | if a state was not added. |
|
protectedvirtual |
Parse a switch to save the default values to be re-used when use by a simple model (props)
|
protected |
Creates a custom state id if possible.
|
protectedvirtual |
Parse a state node.
A state is added if a declaration was parsed.
| true | if a state was added. |
| false | if a state was not added. |
|
protectedvirtual |
Parse a annotation node.
An annotation is added if a declaration was parsed.
| true | if a state was added. |
| false | if a state was not added. |
|
protectedvirtual |
Parse a part declaration and add a part if the parse was successful.
| true | if a part was added. |
| false | if a part was not added. |
|
protectedvirtual |
Parse an animation declaration and add an animation if the part was successful.
| true | if an animation was added. |
| false | if an animation was not added. |
|
protected |
Parse a value list string into a list of integers.
|
protected |
Push a state id onto a local stack.
This allows for tracking which the current state is when adding children.
|
protected |
Pop a state id onto a local stack.
This removes a state id after a node's children have been traversed.
|
protected |
| 0 | (invalidId) if there are no ids. |
|
protected |
| 0 | (invalidId) if there are no ids. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| PartMap makVrv::DtArticulatedModelParser::myPartMap |
| StateMap makVrv::DtArticulatedModelParser::myStateMap |
| AnimationMap makVrv::DtArticulatedModelParser::myAnimationMap |
| AnnotationMap makVrv::DtArticulatedModelParser::myAnnotationMap |
| StateExistenceMap makVrv::DtArticulatedModelParser::myStateExistenceMap |
| StateValueMap makVrv::DtArticulatedModelParser::myStateValueMap |
| SwitchSetMap makVrv::DtArticulatedModelParser::myDefaultActiveSwitchState |