|
| template<class T > |
| void | data (const ParticleAttribute &attribute, const int indexCount, const ParticleIndex *particleIndices, const bool sorted, T *values) |
| |
| template<class T > |
| const T * | data (const ParticleAttribute &attribute, const ParticleIndex particleIndex) const |
| |
| template<class T > |
| const T * | fixedData (const FixedAttribute &attribute) const |
| |
| virtual const std::vector< std::string > & | indexedStrs (const ParticleAttribute &attr) const =0 |
| | All indexed strings for an attribute.
|
| |
| virtual const std::vector< std::string > & | fixedIndexedStrs (const FixedAttribute &attr) const =0 |
| | All indexed strings for an attribute.
|
| |
| virtual int | lookupIndexedStr (const ParticleAttribute &attribute, const char *str) const =0 |
| | Looks up the index for a given string for a given attribute, returns -1 if not found.
|
| |
| virtual int | lookupFixedIndexedStr (const FixedAttribute &attribute, const char *str) const =0 |
| | Looks up the index for a given string for a given attribute, returns -1 if not found.
|
| |
| virtual void | dataAsFloat (const ParticleAttribute &attribute, const int indexCount, const ParticleIndex *particleIndices, const bool sorted, float *values) const =0 |
| |
| virtual void | findPoints (const float bboxMin[3], const float bboxMax[3], std::vector< ParticleIndex > &points) const =0 |
| |
| virtual float | findNPoints (const float center[3], int nPoints, const float maxRadius, std::vector< ParticleIndex > &points, std::vector< float > &pointDistancesSquared) const =0 |
| |
| virtual int | findNPoints (const float center[3], int nPoints, const float maxRadius, ParticleIndex *points, float *pointDistancesSquared, float *finalRadius2) const =0 |
| |
| virtual const_iterator | setupConstIterator (const int index=0) const =0 |
| | Produce a const iterator.
|
| |
| const_iterator | begin () const |
| | Produce a beginning iterator for the particles.
|
| |
| const_iterator | end () const |
| | Produce a ending iterator for the particles.
|
| |
Public Member Functions inherited from Partio::ParticlesInfo |
| virtual void | release ()=0 |
| |
| virtual int | numParticles () const =0 |
| | Number of particles in the structure.
|
| |
| virtual int | numAttributes () const =0 |
| | Number of per-particle attributes.
|
| |
| virtual int | numFixedAttributes () const =0 |
| | Number of fixed attributes.
|
| |
| virtual bool | attributeInfo (const char *attributeName, ParticleAttribute &attribute) const =0 |
| | Lookup an attribute by name and store a handle to the attribute.
|
| |
| virtual bool | fixedAttributeInfo (const char *attributeName, FixedAttribute &attribute) const =0 |
| | Lookup an attribute by name and store a handle to the attribute.
|
| |
| virtual bool | attributeInfo (const int index, ParticleAttribute &attribute) const =0 |
| | Lookup an attribute by index and store a handle to the attribute.
|
| |
| virtual bool | fixedAttributeInfo (const int index, FixedAttribute &attribute) const =0 |
| | Lookup an attribute by index and store a handle to the attribute.
|
| |
Particle Data Interface.
This interface provides the ability to read data attributes for given particles and search for nearest neighbors using KD-Trees.