Radium Engine
1.5.0
|
#include <Core/Asset/HandleData.hpp>
Public Types | |
enum | HandleType { UNKNOWN = 1 << 0 , POINT_CLOUD = 1 << 1 , SKELETON = 1 << 2 , CAGE = 1 << 3 } |
Public Member Functions | |
HandleData (const std::string &name="", const HandleType &type=UNKNOWN) | |
HandleData (const HandleData &data)=default | |
uint | getVertexSize () const |
void | setVertexSize (uint size) |
void | setNameTable (const std::map< std::string, uint > &nameTable) |
void | recomputeAllIndices () |
void | displayInfo () const |
HandleArray | |
void | setName (const std::string &name) |
HandleType | getType () const |
void | setType (const HandleType &type) |
Core::Transform | getFrame () const |
void | setFrame (const Core::Transform &frame) |
void | addBindMesh (const std::string &name) |
const std::set< std::string > & | getBindMeshes () const |
Data access | |
uint | getComponentDataSize () const |
const Core::AlignedStdVector< HandleComponentData > & | getComponentData () const |
Core::AlignedStdVector< HandleComponentData > & | getComponentData () |
const HandleComponentData & | getComponent (const uint i) const |
HandleComponentData & | getComponent (const uint i) |
void | setComponents (const Core::AlignedStdVector< HandleComponentData > &components) |
const Core::AlignedStdVector< Core::Vector2ui > & | getEdgeData () const |
Core::AlignedStdVector< Core::Vector2ui > & | getEdgeData () |
void | setEdges (const Core::AlignedStdVector< Core::Vector2ui > &edgeList) |
const Core::AlignedStdVector< Core::VectorNui > & | getFaceData () const |
Core::AlignedStdVector< Core::VectorNui > & | getFaceData () |
void | setFaces (const Core::AlignedStdVector< Core::VectorNui > &faceList) |
void | needEndNodes (bool need) |
Status querries | |
bool | isPointCloud () const |
bool | isSkeleton () const |
bool | isCage () const |
bool | hasComponents () const |
bool | hasEdges () const |
bool | hasFaces () const |
bool | needsEndNodes () const |
int | getIndexOf (const std::string &name) const |
Public Member Functions inherited from Ra::Core::Asset::AssetData | |
AssetData (const std::string &name) | |
Construct an asset data given its name. | |
AssetData (const AssetData &other)=default | |
Copy constructor. Default here. | |
virtual | ~AssetData () |
Simple delete operator. | |
virtual const std::string & | getName () const |
Acces to the name of the asset. | |
Additional Inherited Members | |
Protected Attributes inherited from Ra::Core::Asset::AssetData | |
std::string | m_name |
The HandleData class stores all the HandleComponentData linked to an object.
Definition at line 42 of file HandleData.hpp.
The type of Handle system.
Definition at line 50 of file HandleData.hpp.
|
inline |
Add name
to the list of bound mesh names.
Definition at line 407 of file HandleData.hpp.
|
inline |
Print stat info to the Debug output.
Definition at line 415 of file HandleData.hpp.
|
inline |
Returns the list of bound mesh names.
Definition at line 411 of file HandleData.hpp.
|
inline |
Return the i-th
HandleComponentData.
Definition at line 323 of file HandleData.hpp.
|
inline |
Return the i-th
HandleComponentData.
Definition at line 318 of file HandleData.hpp.
|
inline |
Return the list of HandleComponentData.
Definition at line 304 of file HandleData.hpp.
|
inline |
Return the list of HandleComponentData.
Definition at line 300 of file HandleData.hpp.
|
inline |
Return the number of Handles in the system.
Definition at line 296 of file HandleData.hpp.
|
inline |
Return the HandleArray hierarchy, i.e. bones hierarchy.
Definition at line 332 of file HandleData.hpp.
|
inline |
Return the HandleArray hierarchy, i.e. bones hierarchy.
Definition at line 328 of file HandleData.hpp.
|
inline |
Return the HandleArray N-Dimensional parts, i.e. cage polyhedra.
Definition at line 349 of file HandleData.hpp.
|
inline |
Return the HandleArray N-Dimensional parts, i.e. cage polyhedra.
Definition at line 345 of file HandleData.hpp.
|
inline |
Return the transformation of the Handle system.
Definition at line 277 of file HandleData.hpp.
|
inline |
Return the storage index of the Handle with the given name if it exists, -1 otherwise.
Definition at line 397 of file HandleData.hpp.
|
inline |
Return the type of the Handle system.
Definition at line 269 of file HandleData.hpp.
|
inline |
Return the maximal number of vertices influenced by a Handle.
Definition at line 285 of file HandleData.hpp.
|
inline |
Return true if the Handle system has Handles.
Definition at line 381 of file HandleData.hpp.
|
inline |
Return true if the Handle system has a hierarchy.
Definition at line 385 of file HandleData.hpp.
|
inline |
Return true if the Handle system has N-Dimensional parts.
Definition at line 389 of file HandleData.hpp.
|
inline |
Return true if the Handle system is a Cage.
Definition at line 377 of file HandleData.hpp.
|
inline |
Return true if the Handle system is a Point Cloud.
Definition at line 369 of file HandleData.hpp.
|
inline |
Return true if the Handle system is a Skeleton.
Definition at line 373 of file HandleData.hpp.
|
inline |
Set whether the Handle system needs end bones.
Definition at line 403 of file HandleData.hpp.
|
inline |
Return true if the Handle system needs end bones.
Definition at line 393 of file HandleData.hpp.
|
inline |
Recompute the map from Handle names to Handle storage index.
Definition at line 362 of file HandleData.hpp.
|
inline |
Set the HandleComponentData for the Handle system.
Definition at line 309 of file HandleData.hpp.
|
inline |
Set the HandleArray linear hierarchy part, i.e. bones hierarchy.
Definition at line 336 of file HandleData.hpp.
|
inline |
Set the HandleArray N-Dimensional parts, i.e. cage polyhedra.
Definition at line 353 of file HandleData.hpp.
|
inline |
Set the transformation of the Handle system.
Definition at line 281 of file HandleData.hpp.
|
inline |
Set the name of the Handle system.
Definition at line 265 of file HandleData.hpp.
|
inline |
Set the map from Handle names to Handle storage index.
Definition at line 292 of file HandleData.hpp.
|
inline |
Set the type of the Handle system.
Definition at line 273 of file HandleData.hpp.
|
inline |
Set the maximal number of vertices influenced by a Handle.
Definition at line 288 of file HandleData.hpp.