|
V-ART
|
Parser and loader for xml files that describe an JointAction. More...
#include <xmljointaction.h>
Public Member Functions | |
| XmlJointAction () | |
| bool | LoadFromFile (const std::string &fileName, const SceneNode &sNode) |
| Loads JointAction from a XML file. More... | |
Public Member Functions inherited from VART::JointAction | |
| JointAction () | |
| virtual | ~JointAction () |
| JointMover * | AddJointMover (Joint *jointPtr, float newDuration, const Interpolator &interpolator) |
| Adds a joint mover to the action. More... | |
| JointMover * | AddJointMover (Joint *jointPtr, JointMover *jointMover) |
| Used to add a copy of jointMover, aplied to jointPtr. More... | |
| void | SetPriority (unsigned int newPriority) |
| Sets the priority of an action. More... | |
| void | GetFinalTimes (std::list< float > *resultPtr) |
| Returns a ordered list with all different final times for every dof mover. More... | |
| void | ModifyDofMovers (DMModifier &mod) |
| Modifies dof movers. More... | |
| DofMover * | SearchDofMover (Joint *jointPtr, Joint::DofID dof) |
| Returns a dof mover. More... | |
| void | GetJoints (std::list< Joint * > *listPtr) |
| Returns a list of all target joints. More... | |
| virtual void | Activate () |
| Activates a JointAction. More... | |
Public Member Functions inherited from VART::BaseAction | |
| BaseAction () | |
| Creates an action with sane defaults. More... | |
| virtual | ~BaseAction () |
| void | SetSpeed (float newSpeed) |
| void | SetDuration (float seconds) |
| void | SetCyclic (bool value) |
| bool | IsCyclic () |
| bool | IsActive () const |
| void | Deactivate (float seconds) |
| Mark for auto deactivation in given time. More... | |
| virtual void | Deactivate () |
| Deactivate now. More... | |
Protected Member Functions | |
| void | ParseDofMovement (JointMover *jointMPtr, XERCES_CPP_NAMESPACE::DOMNode *dofMovItemPtr) |
| void | CreateJointMover (const VART::SceneNode &sNode, XERCES_CPP_NAMESPACE::DOMNode *xmlNodePtr) |
Protected Member Functions inherited from VART::JointAction | |
| virtual void | Move () |
| Make the action update its targets. More... | |
| void | DeactivateDofMovers () |
| void | AddToActiveInstancesList () |
| Adds itself to list of active instances, in priority order. More... | |
Protected Member Functions inherited from VART::BaseAction | |
| virtual void | ComputePositionIndex (bool *cycled) |
| Computes current position index. More... | |
Protected Member Functions inherited from VART::XmlBase | |
| XmlBase () | |
| Creates an unitialized object. More... | |
| bool | ParseFile (const std::string &fileName) |
| Checks if the file comforms to DTD. More... | |
| void | Terminate () |
| Terminates Xerces objects. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from VART::BaseAction | |
| static unsigned int | MoveAllActive () |
| Moves all active actions. More... | |
Public Attributes inherited from VART::BaseAction | |
| std::string | description |
| CallBack * | callbackPtr |
| Termination callback. More... | |
Static Protected Member Functions inherited from VART::XmlBase | |
| static bool | GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], float *valuePtr) |
| Gets an item value for certain node. More... | |
| static bool | GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], std::string *valuePtr) |
| Gets an item value for certain node. More... | |
| static bool | GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], bool *valuePtr) |
| Gets an item value for certain node. More... | |
Protected Attributes inherited from VART::JointAction | |
| std::list< JointMover * > | jointMoverList |
| unsigned int | priority |
Protected Attributes inherited from VART::BaseAction | |
| bool | cyclic |
| Whether the action restarts upon termination. More... | |
| bool | active |
| Whether the action is currently active (changing its target). More... | |
| float | speedModifier |
| Speed modifier. More... | |
| float | duration |
| Duration in seconds. More... | |
| float | timeToLive |
| Time (in seconds) to auto deactivate. More... | |
| float | positionIndex |
| Current position index. More... | |
| float | lastPositionIndex |
| Position index of last update. More... | |
| Time | lastUpdateTime |
| Time of last update. More... | |
Protected Attributes inherited from VART::XmlBase | |
| XERCES_CPP_NAMESPACE::XercesDOMParser * | parserPtr |
| XERCES_CPP_NAMESPACE::DOMDocument * | documentPtr |
Static Protected Attributes inherited from VART::BaseAction | |
| static std::list< BaseAction * > | activeInstances |
| List of active actions. More... | |
| static std::list< Initializer * > | initializers |
| List of action initializers. More... | |
Parser and loader for xml files that describe an JointAction.
FixMe: Put Detailed description here
Definition at line 18 of file xmljointaction.h.
| VART::XmlJointAction::XmlJointAction | ( | ) |
Definition at line 20 of file xmljointaction.cpp.
|
protected |
Definition at line 115 of file xmljointaction.cpp.
References VART::SceneNode::LocateBreadthFirst(), VART::SNLocator::LocatedNode(), and VART::JointMover::SetInterpolator().
| bool VART::XmlJointAction::LoadFromFile | ( | const std::string & | fileName, |
| const SceneNode & | sNode | ||
| ) |
Loads JointAction from a XML file.
Only descendents of given scene node are searched for joints.
Definition at line 176 of file xmljointaction.cpp.
|
protected |
Definition at line 25 of file xmljointaction.cpp.
References VART::JointMover::AddDofMover(), VART::JointMover::AddNoisyDofMover(), VART::Joint::ADDUCTION, VART::Joint::FLEXION, VART::NoisyDofMover::SetNoise(), and VART::Joint::TWIST.
1.8.6