Provides accelerated range and nearest-neighbor searches for particles that are partitioned using the ParticleAtlas.
More...
#include <ParticleAtlas.h>
|
| Iterator (const ParticleAtlas &atlas) |
| Construct an iterator from the given atlas. More...
|
|
template<typename ParticleArrayType > |
void | worldSpaceSearchAndUpdate (const Vec3d ¢er, double radius, const ParticleArrayType &particles) |
| Clear the iterator and update it with the result of the given world-space radial query. More...
|
|
template<typename ParticleArrayType > |
void | worldSpaceSearchAndUpdate (const BBoxd &bbox, const ParticleArrayType &particles) |
| Clear the iterator and update it with the result of the given world-space radial query. More...
|
|
size_t | levels () const |
| Returns the total number of resolution levels. More...
|
|
void | updateFromLevel (size_t level) |
| Clear the iterator and update it with all particles that reside at the given resolution level. More...
|
|
void | reset () |
| Reset the iterator to point to the first item. More...
|
|
const IndexType & | operator* () const |
| Return a const reference to the item to which this iterator is pointing. More...
|
|
void | increment () |
| Advance iterator to next item. More...
|
|
void | operator++ () |
| Advance iterator to next item. More...
|
|
bool | next () |
| Advance iterator to next item. More...
|
|
size_t | size () const |
| Return the number of point indices in the iterator range. More...
|
|
bool | operator== (const Iterator &p) const |
| Return true if both iterators point to the same element. More...
|
|
bool | operator!= (const Iterator &p) const |
|
|
bool | test () const |
| Return true if this iterator is not yet exhausted. More...
|
|
| operator bool () const |
| Return true if this iterator is not yet exhausted. More...
|
|
template<typename PointIndexGridType = PointIndexGrid>
struct openvdb::v3_2_0::tools::ParticleAtlas< PointIndexGridType >::Iterator
Provides accelerated range and nearest-neighbor searches for particles that are partitioned using the ParticleAtlas.
- Note
- Prefer to construct the iterator object once and reuse it for subsequent queries.
typedef PointIndexGridType::TreeType TreeType |
Construct an iterator from the given atlas.
Advance iterator to next item.
Returns the total number of resolution levels.
Advance iterator to next item.
- Returns
true
if this iterator is not yet exhausted.
Return true
if this iterator is not yet exhausted.
bool operator!= |
( |
const Iterator & |
p | ) |
const |
|
inline |
Return a const reference to the item to which this iterator is pointing.
Advance iterator to next item.
bool operator== |
( |
const Iterator & |
p | ) |
const |
|
inline |
Return true
if both iterators point to the same element.
Reset the iterator to point to the first item.
Return the number of point indices in the iterator range.
Return true
if this iterator is not yet exhausted.
void updateFromLevel |
( |
size_t |
level | ) |
|
|
inline |
Clear the iterator and update it with all particles that reside at the given resolution level.
void worldSpaceSearchAndUpdate |
( |
const Vec3d & |
center, |
|
|
double |
radius, |
|
|
const ParticleArrayType & |
particles |
|
) |
| |
|
inline |
Clear the iterator and update it with the result of the given world-space radial query.
- Parameters
-
center | world-space center |
radius | world-space search radius |
particles | container conforming to the ParticleArray interface |
void worldSpaceSearchAndUpdate |
( |
const BBoxd & |
bbox, |
|
|
const ParticleArrayType & |
particles |
|
) |
| |
|
inline |
Clear the iterator and update it with the result of the given world-space radial query.
- Parameters
-
bbox | world-space bounding box |
particles | container conforming to the ParticleArray interface |
The documentation for this struct was generated from the following file: