![]() |
VR-Forces 4.8 Class Documentation
|
This class extends to articulated model parser to read barrel gun end nodes. More...

Public Member Functions | |
| DtVrfArticulatedModelParser (makVrv::DtDe &de, makVrv::DtModelSemanticsMapper &modelSematicsMapper) | |
| virtual | ~DtVrfArticulatedModelParser () |
Public Member Functions inherited from makVrv::DtArticulatedModelParser | |
| DtArticulatedModelParser (DtDe &de, DtModelSemanticsMapper &modelSematicsMapper) | |
| CTOR. More... | |
| virtual | ~DtArticulatedModelParser () |
| DTOR. More... | |
| virtual void | apply (osg::Group &group) |
| Apply functions used for iterating through a model using the as a node visitor. More... | |
| 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. More... | |
| virtual | ~DtModelParser () |
| DTOR. More... | |
Public Attributes | |
| std::map< int, osg::ref_ptr < osgSim::DOFTransform > > | myGunEnds |
Public Attributes inherited from makVrv::DtArticulatedModelParser | |
| PartMap | myPartMap |
| StateMap | myStateMap |
| AnimationMap | myAnimationMap |
| AnnotationMap | myAnnotationMap |
| StateExistenceMap | myStateExistenceMap |
| StateValueMap | myStateValueMap |
| SwitchSetMap | myDefaultActiveSwitchState |
| DtModelSemanticsMapper & | myModelSematicsMapper |
Protected Member Functions | |
| virtual bool | parsePartDeclaration (const std::string &desc, osgSim::DOFTransform &transform) |
| Parse a part declaration and add a part if the parse was successful. More... | |
Protected Member Functions inherited from makVrv::DtArticulatedModelParser | |
| 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. More... | |
| 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) More... | |
| const DtModelSemanticsMapper::States::Id * | createCustomStateId (const std::string &stateName, DtModelSemanticsMapper &mapper) |
| Creates a custom state id if possible. More... | |
| virtual bool | parseStateDeclaration (const std::string &desc, osg::Group &group) |
| Parse a state node. More... | |
| virtual bool | parseAnnotationDeclaration (const std::string &desc, osg::Group &group) |
| Parse a annotation node. More... | |
| virtual bool | parseAnimationDeclaration (const std::string &desc, osg::Sequence &sequence) |
| Parse an animation declaration and add an animation if the part was successful. More... | |
| std::vector< int > | parseValueList (const std::string &valueList) |
| Parse a value list string into a list of integers. More... | |
| void | pushStateId (int idNumber, osgSim::MultiSwitch *lastStateId) |
| Push a state id onto a local stack. More... | |
| void | popStateId () |
| Pop a state id onto a local stack. More... | |
| osgSim::MultiSwitch * | lastStateId () const |
| int | lastStateIdNumber () const |
| 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 | |
| int | myLastPartAdded |
Protected Attributes inherited from makVrv::DtArticulatedModelParser | |
| 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 |
Private Member Functions | |
| DtVrfArticulatedModelParser (const DtVrfArticulatedModelParser &) | |
| Not Implemented. More... | |
| DtVrfArticulatedModelParser & | operator= (const DtVrfArticulatedModelParser &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtArticulatedModelParser | |
| 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< int > | 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 |
Static Public Member Functions inherited from makVrv::DtArticulatedModelParser | |
| static std::string | parserFormat () |
| Get the string to indicate the parser format this parser supports. More... | |
This class extends to articulated model parser to read barrel gun end nodes.
|
private |
Not Implemented.
| DtVrfArticulatedModelParser::DtVrfArticulatedModelParser | ( | makVrv::DtDe & | de, |
| makVrv::DtModelSemanticsMapper & | modelSematicsMapper | ||
| ) |
|
virtual |
|
private |
|
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. |
Reimplemented from makVrv::DtArticulatedModelParser.
|
protected |
| std::map<int, osg::ref_ptr<osgSim::DOFTransform> > DtVrfArticulatedModelParser::myGunEnds |