42 #ifndef _PartioParticleAttribute_h_
43 #define _PartioParticleAttribute_h_
50 {
struct UNUSABLE;
typedef UNUSABLE
TYPE;};
56 template<
class T1,
class T2>
struct
58 template<
class T>
struct IS_SAME<T,T>{
static const bool value=
true;};
60 template<
class T>
bool
70 default:
return false;
79 case VECTOR:
return sizeof(float);
80 case FLOAT:
return sizeof(float);
81 case INT:
return sizeof(int);
Fixed Attribute Interface.
Definition: PartioAttribute.h:124
ParticleAttributeType type
Type of attribute.
Definition: PartioAttribute.h:127
std::string name
Name of attribute.
Definition: PartioAttribute.h:133
int attributeIndex
Internal method of fast access, user should not use or change.
Definition: PartioAttribute.h:136
int count
Number of entries, should be 3 if type is VECTOR.
Definition: PartioAttribute.h:130
Particle Collection Interface.
Definition: PartioAttribute.h:97
int count
Number of entries, should be 3 if type is VECTOR.
Definition: PartioAttribute.h:103
int attributeIndex
Internal method of fast access, user should not use or change.
Definition: PartioAttribute.h:109
std::string name
Name of attribute.
Definition: PartioAttribute.h:106
ParticleAttributeType type
Type of attribute.
Definition: PartioAttribute.h:100
bool typeCheck(const ParticleAttributeType &type)
Definition: PartioAttribute.h:61
int TypeSize(ParticleAttributeType attrType)
Definition: PartioAttribute.h:75
ParticleAttributeType
Definition: PartioAttribute.h:47
@ VECTOR
Definition: PartioAttribute.h:47
@ INT
Definition: PartioAttribute.h:47
@ NONE
Definition: PartioAttribute.h:47
@ FLOAT
Definition: PartioAttribute.h:47
@ INDEXEDSTR
Definition: PartioAttribute.h:47
std::string TypeName(ParticleAttributeType attrType)
float TYPE
Definition: PartioAttribute.h:52
int TYPE
Definition: PartioAttribute.h:54
int TYPE
Definition: PartioAttribute.h:53
float TYPE
Definition: PartioAttribute.h:51
Definition: PartioAttribute.h:50
UNUSABLE TYPE
Definition: PartioAttribute.h:50
Definition: PartioAttribute.h:57
static const bool value
Definition: PartioAttribute.h:57