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

#include <SkinInfo.h>

Inheritance diagram for dyno::SkinInfo:
Collaboration diagram for dyno::SkinInfo:

Public Member Functions

 SkinInfo ()
 
 ~SkinInfo ()
 
void pushBack_Data (const std::vector< Vec4f > &Weight_0, const std::vector< Vec4f > &Weight_1, const std::vector< Vec4f > &ID_0, const std::vector< Vec4f > &ID_1)
 
void clearSkinInfo ()
 
int size ()
 
bool isEmpty ()
 
- 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::vector< DArray< Vec4f > > V_jointWeight_0
 
std::vector< DArray< Vec4f > > V_jointWeight_1
 
std::vector< DArray< Vec4f > > V_jointID_0
 
std::vector< DArray< Vec4f > > V_jointID_1
 
std::map< int, std::vector< Vec2u > > skin_VerticeRange
 
std::shared_ptr< TextureMeshmesh = NULL
 
DArray< Vec3finitialPosition
 
DArray< Vec3finitialNormal
 

Private Attributes

int skinNum = 0
 

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 16 of file SkinInfo.h.

Constructor & Destructor Documentation

◆ SkinInfo()

dyno::SkinInfo::SkinInfo ( )
inline

Definition at line 21 of file SkinInfo.h.

◆ ~SkinInfo()

dyno::SkinInfo::~SkinInfo ( )
inline

Definition at line 23 of file SkinInfo.h.

Member Function Documentation

◆ clearSkinInfo()

void dyno::SkinInfo::clearSkinInfo ( )
inline

Definition at line 63 of file SkinInfo.h.

◆ isEmpty()

bool dyno::SkinInfo::isEmpty ( )
inline

Definition at line 89 of file SkinInfo.h.

◆ pushBack_Data()

void dyno::SkinInfo::pushBack_Data ( const std::vector< Vec4f > & Weight_0,
const std::vector< Vec4f > & Weight_1,
const std::vector< Vec4f > & ID_0,
const std::vector< Vec4f > & ID_1 )
inline

Definition at line 44 of file SkinInfo.h.

◆ size()

int dyno::SkinInfo::size ( )
inline

Definition at line 87 of file SkinInfo.h.

Member Data Documentation

◆ initialNormal

DArray<Vec3f> dyno::SkinInfo::initialNormal

Definition at line 109 of file SkinInfo.h.

◆ initialPosition

DArray<Vec3f> dyno::SkinInfo::initialPosition

Definition at line 107 of file SkinInfo.h.

◆ mesh

std::shared_ptr<TextureMesh> dyno::SkinInfo::mesh = NULL

Definition at line 105 of file SkinInfo.h.

◆ skin_VerticeRange

std::map<int, std::vector<Vec2u> > dyno::SkinInfo::skin_VerticeRange

Definition at line 103 of file SkinInfo.h.

◆ skinNum

int dyno::SkinInfo::skinNum = 0
private

Definition at line 114 of file SkinInfo.h.

◆ V_jointID_0

std::vector<DArray<Vec4f> > dyno::SkinInfo::V_jointID_0

Definition at line 99 of file SkinInfo.h.

◆ V_jointID_1

std::vector<DArray<Vec4f> > dyno::SkinInfo::V_jointID_1

Definition at line 101 of file SkinInfo.h.

◆ V_jointWeight_0

std::vector<DArray<Vec4f> > dyno::SkinInfo::V_jointWeight_0

Definition at line 95 of file SkinInfo.h.

◆ V_jointWeight_1

std::vector<DArray<Vec4f> > dyno::SkinInfo::V_jointWeight_1

Definition at line 97 of file SkinInfo.h.


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