HPS::OOC::QueryIterator

class HPS::OOC::QueryIterator

The iterator returned from a call to OOC::PointCloud::QueryPoints.

Public Types

enum Status

Designates the status of an QueryIterator.

Values:

enumerator Alive
enumerator Dead
enumerator ErrorUnknownFailure
enumerator ErrorFileSystemFailure
enumerator ErrorDeserializationFailure
enumerator ErrorCouldNotFindNode
enumerator ErrorCorruptNode
enum Storage

Designates the location of an QueryResult.

Values:

enumerator Memory
enumerator Disk

Public Functions

NodeHandle GetNodeHandle() const

Yields the currently processed point’s node handle.

Returns

the node handle of the current result

Point GetNodePoint() const

Yields the currently processed point’s coordinates in object space.

Returns

the object space coordinates for the point of the current result

RGBColor GetNodePointColor() const

Yields the currently processed point’s RGB color.

Returns

the RGB color for the point of the current result

size_t GetNodePointIndex() const

Yields the currently processed point’s index.

Returns

the index for the point of the current result.

Status GetStatus() const
Returns

the status of the iterator.

Storage GetStorage() const

Yields the currently processed point’s storage.

Returns

the storage for the point of the current result.

void Next()

Advances the iterator to the next point result. This is only legal to call when this->GetStatus() returns OOC::QueryIterator::Status::Alive.

QueryIterator &operator=(QueryIterator &&other)
QueryIterator()

Constructs a dead query iterator.

Returns

The dead iterator

QueryIterator(QueryIterator &&other)

Constructs a query iterator from another with the same state and progress of other.

Returns

The query iterator to construct from.

~QueryIterator()

Friends

friend class HPS::OOC::PointCloud