Go to the documentation of this file.
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);
static const bool value
Definition: PartioAttribute.h:57
int TYPE
Definition: PartioAttribute.h:53
std::string name
Name of attribute.
Definition: PartioAttribute.h:133
Definition: PartioAttribute.h:49
Definition: PartioAttribute.h:56
ParticleAttributeType
Definition: PartioAttribute.h:47
std::string TypeName(ParticleAttributeType attrType)
ParticleAttributeType type
Type of attribute.
Definition: PartioAttribute.h:127
int count
Number of entries, should be 3 if type is VECTOR.
Definition: PartioAttribute.h:130
int attributeIndex
Internal method of fast access, user should not use or change.
Definition: PartioAttribute.h:109
bool typeCheck(const ParticleAttributeType &type)
Definition: PartioAttribute.h:61
int count
Number of entries, should be 3 if type is VECTOR.
Definition: PartioAttribute.h:103
float TYPE
Definition: PartioAttribute.h:51
std::string name
Name of attribute.
Definition: PartioAttribute.h:106
Definition: PartioAttribute.h:47
Definition: PartioAttribute.h:47
Definition: PartioAttribute.h:47
int attributeIndex
Internal method of fast access, user should not use or change.
Definition: PartioAttribute.h:136
Particle Collection Interface.
Definition: PartioAttribute.h:96
float TYPE
Definition: PartioAttribute.h:52
int TypeSize(ParticleAttributeType attrType)
Definition: PartioAttribute.h:75
Definition: PartioAttribute.h:47
Fixed Attribute Interface.
Definition: PartioAttribute.h:123
ParticleAttributeType type
Type of attribute.
Definition: PartioAttribute.h:100
Definition: PartioAttribute.h:47
UNUSABLE TYPE
Definition: PartioAttribute.h:50
int TYPE
Definition: PartioAttribute.h:54