Partio
|
Particle Collection Interface. More...
#include <Partio.h>
Public Member Functions | |
virtual void | release ()=0 |
virtual int | numParticles () const =0 |
Number of particles in the structure. More... | |
virtual int | numAttributes () const =0 |
Number of per-particle attributes. More... | |
virtual int | numFixedAttributes () const =0 |
Number of fixed attributes. More... | |
virtual bool | attributeInfo (const char *attributeName, ParticleAttribute &attribute) const =0 |
Lookup an attribute by name and store a handle to the attribute. More... | |
virtual bool | fixedAttributeInfo (const char *attributeName, FixedAttribute &attribute) const =0 |
Lookup an attribute by name and store a handle to the attribute. More... | |
virtual bool | attributeInfo (const int index, ParticleAttribute &attribute) const =0 |
Lookup an attribute by index and store a handle to the attribute. More... | |
virtual bool | fixedAttributeInfo (const int index, FixedAttribute &attribute) const =0 |
Lookup an attribute by index and store a handle to the attribute. More... | |
Protected Member Functions | |
virtual | ~ParticlesInfo () |
Particle Collection Interface.
This class provides ways of accessing basic information about particles, the number in the set, the attribute names and types, etc. No actual data can be read or written.
|
inlineprotectedvirtual |
|
pure virtual |
Lookup an attribute by name and store a handle to the attribute.
|
pure virtual |
Lookup an attribute by index and store a handle to the attribute.
|
pure virtual |
Lookup an attribute by name and store a handle to the attribute.
|
pure virtual |
Lookup an attribute by index and store a handle to the attribute.
|
pure virtual |
Number of per-particle attributes.
|
pure virtual |
Number of fixed attributes.
|
pure virtual |
Number of particles in the structure.
|
pure virtual |
Frees the memory if this particle set was created with create() or release() Reduces reference count if it was obtained with readCached() and if the ref count hits zero, frees the memory