![]()  | 
  
    PeriDyno 1.0.0
    
   | 
 
A JointTree(Skeleton) represents a hierarchical tree structure of joints. More...
#include <JointTree.h>


Public Member Functions | |
| JointTree () | |
| ~JointTree () | |
| void | copyFrom (JointTree< TDataType > jointTree) | 
| void | scale (Real s) | 
| void | translate (Coord t) | 
| void | getGlobalTransform () | 
| Mat | getTransform (Coord &T, Coord &R, Coord &S) | 
| void | getQuat (Coord &T, Coord &R, float &S) | 
| void | getGlobalQuat () | 
| Coord | getCoordByMatrix (Coord X) | 
| Coord | getCoordByQuat (Coord X) | 
| void | getGlobalCoord () | 
| void | setAnimTranslation (std::shared_ptr< AnimationCurve< TDataType > > t) | 
| void | setAnimRotation (std::shared_ptr< AnimationCurve< TDataType > > r) | 
| void | setAnimScaling (std::shared_ptr< AnimationCurve< TDataType > > s) | 
| void | applyAnimationByOne (Coord &init, Coord &cur, std::shared_ptr< AnimationCurve< TDataType > > &anim, Real ptime) | 
| void | applyAnimationAll (Real ptime) | 
  Public Member Functions inherited from dyno::TopologyModule | |
| TopologyModule () | |
| ~TopologyModule () override | |
| virtual int | getDOF () | 
| void | tagAsChanged () | 
| void | tagAsUnchanged () | 
| bool | isTopologyChanged () | 
| void | update () | 
  Public Member Functions inherited from dyno::OBase | |
| OBase () | |
| ~OBase () override | |
| virtual std::string | caption () | 
| Return the caption.   | |
| virtual bool | captionVisible () | 
| Whether to hide the caption in the GUI.   | |
| virtual std::string | description () | 
| Return a description for the node or module, override this function to support user-defined description.   | |
| virtual std::string | getName () | 
| bool | addField (FBase *data) | 
| Add a field to Base FieldID will be set to the name of Field by default.   | |
| bool | addField (FieldID name, FBase *data) | 
| Add a field to Base.   | |
| bool | addFieldAlias (FieldID name, FBase *data) | 
| bool | addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias) | 
| bool | findField (FBase *data) | 
| Find a field by its pointer.   | |
| bool | findFieldAlias (const FieldID name) | 
| Find a field by its name.   | |
| bool | findFieldAlias (const FieldID name, FieldMap &fieldAlias) | 
| Find a field in fieldAlias by its name This function is typically called by other functions.   | |
| bool | removeField (FBase *data) | 
| Remove a field by its pointer.   | |
| bool | removeFieldAlias (const FieldID name) | 
| Remove a field by its name.   | |
| bool | removeFieldAlias (const FieldID name, FieldMap &fieldAlias) | 
| FBase * | getField (const FieldID name) | 
| Return a field by its name.   | |
| std::vector< FBase * > & | getAllFields () | 
| virtual bool | attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true) | 
| Attach a field to Base.   | |
| template<typename T> | |
| T * | getField (FieldID name) | 
| bool | isAllFieldsReady () | 
| Check the completeness of all required fields.   | |
| std::vector< FieldID > | getFieldAlias (FBase *data) | 
| int | getFieldAliasCount (FBase *data) | 
| void | setBlockCoord (float x, float y) | 
| float | bx () | 
| float | by () | 
| bool | findInputField (FBase *field) | 
| bool | addInputField (FBase *field) | 
| bool | removeInputField (FBase *field) | 
| std::vector< FBase * > & | getInputFields () | 
| bool | findOutputField (FBase *field) | 
| bool | addOutputField (FBase *field) | 
| bool | addToOutput (FBase *field) | 
| bool | removeOutputField (FBase *field) | 
| bool | removeFromOutput (FBase *field) | 
| std::vector< FBase * > & | getOutputFields () | 
| bool | findParameter (FBase *field) | 
| bool | addParameter (FBase *field) | 
| bool | removeParameter (FBase *field) | 
| std::vector< FBase * > & | getParameters () | 
  Public Member Functions inherited from dyno::Object | |
| Object () | |
| virtual | ~Object () | 
| ObjectId | objectId () | 
Public Attributes | |
| unsigned long long | id | 
| Coord | PreRotation | 
| Coord | PreScaling | 
| Coord | PreTranslation | 
| Coord | tmp | 
| Coord | LclTranslation | 
| Coord | LclRotation | 
| Coord | LclScaling | 
| std::shared_ptr< AnimationCurve< TDataType > > | AnimTranslation | 
| std::shared_ptr< AnimationCurve< TDataType > > | AnimRotation | 
| std::shared_ptr< AnimationCurve< TDataType > > | AnimScaling | 
| Coord | CurTranslation | 
| Coord | CurRotation | 
| Coord | CurScaling | 
| Coord | GlCoord | 
| Coord | LastCoord | 
| Mat | GlobalTransform | 
| bool | RotationActive | 
| Quat< Real > | GlT | 
| Quat< Real > | GlR | 
| Real | GlS | 
| std::vector< std::shared_ptr< JointTree > > | children | 
| std::shared_ptr< JointTree > | parent | 
Private Attributes | |
| std::default_random_engine | generator | 
| std::normal_distribution< double > | dist | 
Additional Inherited Members | |
  Static Public Member Functions inherited from dyno::Object | |
| static bool | registerClass (ClassInfo *ci) | 
| static Object * | createObject (std::string name) | 
| static std::map< std::string, ClassInfo * > * | getClassMap () | 
| static ObjectId | baseId () | 
| Base Id.   | |
  Protected Member Functions inherited from dyno::TopologyModule | |
| virtual void | updateTopology () | 
  Protected Attributes inherited from dyno::OBase | |
| std::vector< FBase * > | fields_input | 
| std::vector< FBase * > | fields_output | 
| std::vector< FBase * > | fields_param | 
A JointTree(Skeleton) represents a hierarchical tree structure of joints.
Definition at line 30 of file JointTree.h.
| typedef TDataType::Coord dyno::JointTree< TDataType >::Coord | 
Definition at line 40 of file JointTree.h.
| typedef ::dyno::Mat4f dyno::JointTree< TDataType >::Mat | 
Definition at line 42 of file JointTree.h.
| typedef TDataType::Matrix dyno::JointTree< TDataType >::Matrix | 
Definition at line 41 of file JointTree.h.
| typedef TDataType::Real dyno::JointTree< TDataType >::Real | 
Definition at line 39 of file JointTree.h.
| dyno::JointTree< TDataType >::JointTree | ( | ) | 
| dyno::JointTree< TDataType >::~JointTree | ( | ) | 
Definition at line 33 of file JointTree.cpp.
| void dyno::JointTree< TDataType >::applyAnimationAll | ( | Real | ptime | ) | 
| void dyno::JointTree< TDataType >::applyAnimationByOne | ( | Coord & | init, | 
| Coord & | cur, | ||
| std::shared_ptr< AnimationCurve< TDataType > > & | anim, | ||
| Real | ptime ) | 
| void dyno::JointTree< TDataType >::copyFrom | ( | JointTree< TDataType > | jointTree | ) | 
| JointTree< TDataType >::Coord dyno::JointTree< TDataType >::getCoordByMatrix | ( | Coord | X | ) | 
Definition at line 154 of file JointTree.cpp.
| JointTree< TDataType >::Coord dyno::JointTree< TDataType >::getCoordByQuat | ( | Coord | X | ) | 
| void dyno::JointTree< TDataType >::getGlobalCoord | ( | ) | 
| void dyno::JointTree< TDataType >::getGlobalQuat | ( | ) | 
| void dyno::JointTree< TDataType >::getGlobalTransform | ( | ) | 
| void dyno::JointTree< TDataType >::getQuat | ( | Coord & | T, | 
| Coord & | R, | ||
| float & | S ) | 
| void dyno::JointTree< TDataType >::scale | ( | Real | s | ) | 
Definition at line 197 of file JointTree.cpp.
      
  | 
  inline | 
Definition at line 64 of file JointTree.h.
      
  | 
  inline | 
Definition at line 68 of file JointTree.h.
      
  | 
  inline | 
Definition at line 60 of file JointTree.h.
| void dyno::JointTree< TDataType >::translate | ( | Coord | t | ) | 
Definition at line 203 of file JointTree.cpp.
| std::shared_ptr<AnimationCurve<TDataType> > dyno::JointTree< TDataType >::AnimRotation | 
Definition at line 90 of file JointTree.h.
| std::shared_ptr<AnimationCurve<TDataType> > dyno::JointTree< TDataType >::AnimScaling | 
Definition at line 91 of file JointTree.h.
| std::shared_ptr<AnimationCurve<TDataType> > dyno::JointTree< TDataType >::AnimTranslation | 
Definition at line 89 of file JointTree.h.
| std::vector<std::shared_ptr<JointTree> > dyno::JointTree< TDataType >::children | 
Definition at line 105 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::CurRotation | 
Definition at line 94 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::CurScaling | 
Definition at line 95 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::CurTranslation | 
Definition at line 93 of file JointTree.h.
      
  | 
  private | 
Definition at line 35 of file JointTree.h.
      
  | 
  private | 
Definition at line 34 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::GlCoord | 
Definition at line 97 of file JointTree.h.
| Mat dyno::JointTree< TDataType >::GlobalTransform | 
Definition at line 99 of file JointTree.h.
| Quat<Real> dyno::JointTree< TDataType >::GlR | 
Definition at line 103 of file JointTree.h.
| Real dyno::JointTree< TDataType >::GlS | 
Definition at line 104 of file JointTree.h.
| Quat<Real> dyno::JointTree< TDataType >::GlT | 
Definition at line 102 of file JointTree.h.
| unsigned long long dyno::JointTree< TDataType >::id | 
Definition at line 77 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::LastCoord | 
Definition at line 98 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::LclRotation | 
Definition at line 86 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::LclScaling | 
Definition at line 87 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::LclTranslation | 
Definition at line 85 of file JointTree.h.
| std::shared_ptr<JointTree> dyno::JointTree< TDataType >::parent | 
Definition at line 106 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::PreRotation | 
Definition at line 79 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::PreScaling | 
Definition at line 80 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::PreTranslation | 
Definition at line 81 of file JointTree.h.
| bool dyno::JointTree< TDataType >::RotationActive | 
Definition at line 100 of file JointTree.h.
| Coord dyno::JointTree< TDataType >::tmp | 
Definition at line 83 of file JointTree.h.