PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::JointInfo Class Reference

#include <JointInfo.h>

Inheritance diagram for dyno::JointInfo:
Collaboration diagram for dyno::JointInfo:

Public Member Functions

 JointInfo ()
 
 JointInfo (DArray< Mat4f > &InverseBindMatrix, DArray< Mat4f > &LocalMatrix, DArray< Mat4f > &WorldMatrix, std::vector< int > &allJoints, std::map< joint, std::vector< joint > > &jointDir, std::map< joint, Vec3f > &bindPoseTranslation, std::map< joint, Vec3f > &bindPoseScale, std::map< joint, Quat1f > &bindPoseRotation)
 
 ~JointInfo ()
 
void UpdateJointInfo (DArray< Mat4f > &InverseBindMatrix, DArray< Mat4f > &LocalMatrix, DArray< Mat4f > &WorldMatrix, std::vector< int > &allJoints, std::map< joint, std::vector< joint > > &jointDir, std::map< joint, Vec3f > &bindPoseTranslation, std::map< joint, Vec3f > &bindPoseScale, std::map< joint, Quat1f > &bindPoseRotation)
 
void setJoint (const JointInfo &j)
 
bool isEmpty ()
 
void updateWorldMatrixByTransform ()
 
void updateCurrentPose (std::map< joint, Vec3f > t, std::map< joint, Vec3f > s, std::map< joint, Quat1f > r)
 
void setJointName (const std::map< int, std::string > name)
 
void setPose (Pose pose)
 
- 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)
 
FBasegetField (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>
TgetField (FieldID name)
 
bool isAllFieldsReady ()
 Check the completeness of all required fields.
 
std::vector< FieldIDgetFieldAlias (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

std::map< int, std::string > mJointName
 
DArray< Mat4fmJointInverseBindMatrix
 
DArray< Mat4fmJointLocalMatrix
 
DArray< Mat4fmJointWorldMatrix
 
std::vector< Vec3fmBindPoseTranslation
 
std::vector< Vec3fmBindPoseScale
 
std::vector< Quat< Real > > mBindPoseRotation
 
DArray< Vec3fmCurrentTranslation
 
DArray< Quat< Real > > mCurrentRotation
 
DArray< Vec3fmCurrentScale
 
std::vector< jointmAllJoints
 
std::map< joint, std::vector< joint > > mJointDir
 
int mMaxJointID = -1
 

Private Types

typedef int joint
 

Additional Inherited Members

- Public Types inherited from dyno::OBase
typedef std::vector< FBase * > FieldVector
 
typedef std::map< FieldID, FBase * > FieldMap
 
- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

Detailed Description

Definition at line 45 of file JointInfo.h.

Member Typedef Documentation

◆ joint

typedef int dyno::JointInfo::joint
private

Definition at line 47 of file JointInfo.h.

Constructor & Destructor Documentation

◆ JointInfo() [1/2]

dyno::JointInfo::JointInfo ( )
inline

Definition at line 51 of file JointInfo.h.

Here is the caller graph for this function:

◆ JointInfo() [2/2]

dyno::JointInfo::JointInfo ( DArray< Mat4f > & InverseBindMatrix,
DArray< Mat4f > & LocalMatrix,
DArray< Mat4f > & WorldMatrix,
std::vector< int > & allJoints,
std::map< joint, std::vector< joint > > & jointDir,
std::map< joint, Vec3f > & bindPoseTranslation,
std::map< joint, Vec3f > & bindPoseScale,
std::map< joint, Quat1f > & bindPoseRotation )

◆ ~JointInfo()

dyno::JointInfo::~JointInfo ( )

Member Function Documentation

◆ isEmpty()

bool dyno::JointInfo::isEmpty ( )

◆ setJoint()

void dyno::JointInfo::setJoint ( const JointInfo & j)
Here is the call graph for this function:

◆ setJointName()

void dyno::JointInfo::setJointName ( const std::map< int, std::string > name)
inline

Definition at line 85 of file JointInfo.h.

◆ setPose()

void dyno::JointInfo::setPose ( Pose pose)
inline

Definition at line 87 of file JointInfo.h.

Here is the call graph for this function:

◆ updateCurrentPose()

void dyno::JointInfo::updateCurrentPose ( std::map< joint, Vec3f > t,
std::map< joint, Vec3f > s,
std::map< joint, Quat1f > r )

◆ UpdateJointInfo()

void dyno::JointInfo::UpdateJointInfo ( DArray< Mat4f > & InverseBindMatrix,
DArray< Mat4f > & LocalMatrix,
DArray< Mat4f > & WorldMatrix,
std::vector< int > & allJoints,
std::map< joint, std::vector< joint > > & jointDir,
std::map< joint, Vec3f > & bindPoseTranslation,
std::map< joint, Vec3f > & bindPoseScale,
std::map< joint, Quat1f > & bindPoseRotation )

◆ updateWorldMatrixByTransform()

void dyno::JointInfo::updateWorldMatrixByTransform ( )
Here is the caller graph for this function:

Member Data Documentation

◆ mAllJoints

std::vector<joint> dyno::JointInfo::mAllJoints

Definition at line 115 of file JointInfo.h.

◆ mBindPoseRotation

std::vector<Quat<Real> > dyno::JointInfo::mBindPoseRotation

Definition at line 107 of file JointInfo.h.

◆ mBindPoseScale

std::vector<Vec3f> dyno::JointInfo::mBindPoseScale

Definition at line 106 of file JointInfo.h.

◆ mBindPoseTranslation

std::vector<Vec3f> dyno::JointInfo::mBindPoseTranslation

Definition at line 105 of file JointInfo.h.

◆ mCurrentRotation

DArray<Quat<Real> > dyno::JointInfo::mCurrentRotation

Definition at line 112 of file JointInfo.h.

◆ mCurrentScale

DArray<Vec3f> dyno::JointInfo::mCurrentScale

Definition at line 113 of file JointInfo.h.

◆ mCurrentTranslation

DArray<Vec3f> dyno::JointInfo::mCurrentTranslation

Definition at line 111 of file JointInfo.h.

◆ mJointDir

std::map<joint, std::vector<joint> > dyno::JointInfo::mJointDir

Definition at line 116 of file JointInfo.h.

◆ mJointInverseBindMatrix

DArray<Mat4f> dyno::JointInfo::mJointInverseBindMatrix

Definition at line 101 of file JointInfo.h.

◆ mJointLocalMatrix

DArray<Mat4f> dyno::JointInfo::mJointLocalMatrix

Definition at line 102 of file JointInfo.h.

◆ mJointName

std::map<int, std::string> dyno::JointInfo::mJointName

Definition at line 99 of file JointInfo.h.

◆ mJointWorldMatrix

DArray<Mat4f> dyno::JointInfo::mJointWorldMatrix

Definition at line 103 of file JointInfo.h.

◆ mMaxJointID

int dyno::JointInfo::mMaxJointID = -1

Definition at line 118 of file JointInfo.h.


The documentation for this class was generated from the following file: