|
| PointDataLeafNode () |
| Default constructor. More...
|
|
| ~PointDataLeafNode ()=default |
|
| PointDataLeafNode (const PointDataLeafNode &other) |
| Construct using deep copy of other PointDataLeafNode. More...
|
|
| PointDataLeafNode (const Coord &coords, const T &value=zeroVal< T >(), bool active=false) |
| Construct using supplied origin, value and active status. More...
|
|
| PointDataLeafNode (const PointDataLeafNode &other, const Coord &coords, const T &value=zeroVal< T >(), bool active=false) |
|
template<typename OtherValueType > |
| PointDataLeafNode (const tools::PointIndexLeafNode< OtherValueType, Log2Dim > &other) |
|
template<typename ValueType > |
| PointDataLeafNode (const tree::LeafNode< ValueType, Log2Dim > &other, const T &value, TopologyCopy) |
|
template<typename ValueType > |
| PointDataLeafNode (const tree::LeafNode< ValueType, Log2Dim > &other, const T &, const T &, TopologyCopy) |
|
| PointDataLeafNode (PartialCreate, const Coord &coords, const T &value=zeroVal< T >(), bool active=false) |
|
const AttributeSet & | attributeSet () const |
| Retrieve the attribute set. More...
|
|
AttributeSet::UniquePtr | stealAttributeSet () |
| Steal the attribute set, a new, empty attribute set is inserted in it's place. More...
|
|
void | initializeAttributes (const Descriptor::Ptr &descriptor, const Index arrayLength, const AttributeArray::ScopedRegistryLock *lock=nullptr) |
| Create a new attribute set. Existing attributes will be removed. More...
|
|
void | clearAttributes (const bool updateValueMask=true, const AttributeArray::ScopedRegistryLock *lock=nullptr) |
| Clear the attribute set. More...
|
|
bool | hasAttribute (const size_t pos) const |
| Returns true if an attribute with this index exists. More...
|
|
bool | hasAttribute (const Name &attributeName) const |
| Returns true if an attribute with this name exists. More...
|
|
AttributeArray::Ptr | appendAttribute (const Descriptor &expected, Descriptor::Ptr &replacement, const size_t pos, const Index strideOrTotalSize=1, const bool constantStride=true, const Metadata *metadata=nullptr, const AttributeArray::ScopedRegistryLock *lock=nullptr) |
| Append an attribute to the leaf. More...
|
|
void | dropAttributes (const std::vector< size_t > &pos, const Descriptor &expected, Descriptor::Ptr &replacement) |
| Drop list of attributes. More...
|
|
void | reorderAttributes (const Descriptor::Ptr &replacement) |
| Reorder attribute set. More...
|
|
void | renameAttributes (const Descriptor &expected, Descriptor::Ptr &replacement) |
| Rename attributes in attribute set (order must remain the same). More...
|
|
void | compactAttributes () |
| Compact all attributes in attribute set. More...
|
|
void | replaceAttributeSet (AttributeSet *attributeSet, bool allowMismatchingDescriptors=false) |
| Replace the underlying attribute set with the given attributeSet. More...
|
|
void | resetDescriptor (const Descriptor::Ptr &replacement) |
| Replace the descriptor with a new one The new Descriptor must exactly match the old one. More...
|
|
void | setOffsets (const std::vector< ValueType > &offsets, const bool updateValueMask=true) |
| Sets all of the voxel offset values on this leaf, from the given vector of offsets. If updateValueMask is true, then the active value mask will be updated so voxels with points are active and empty voxels are inactive. More...
|
|
void | validateOffsets () const |
| Throws an error if the voxel values on this leaf are not monotonically increasing or within the bounds of the attribute arrays. More...
|
|
AttributeArray & | attributeArray (const size_t pos) |
| Read-write attribute array reference from index. More...
|
|
const AttributeArray & | attributeArray (const size_t pos) const |
|
const AttributeArray & | constAttributeArray (const size_t pos) const |
|
AttributeArray & | attributeArray (const Name &attributeName) |
| Read-write attribute array reference from name. More...
|
|
const AttributeArray & | attributeArray (const Name &attributeName) const |
|
const AttributeArray & | constAttributeArray (const Name &attributeName) const |
|
GroupHandle | groupHandle (const AttributeSet::Descriptor::GroupIndex &index) const |
| } More...
|
|
GroupHandle | groupHandle (const Name &group) const |
| Read-only group handle from group name. More...
|
|
GroupWriteHandle | groupWriteHandle (const AttributeSet::Descriptor::GroupIndex &index) |
| Read-write group handle from group index. More...
|
|
GroupWriteHandle | groupWriteHandle (const Name &name) |
| Read-write group handle from group name. More...
|
|
Index64 | pointCount () const |
| Compute the total point count for the leaf. More...
|
|
Index64 | onPointCount () const |
| Compute the total active (on) point count for the leaf. More...
|
|
Index64 | offPointCount () const |
| Compute the total inactive (off) point count for the leaf. More...
|
|
Index64 | groupPointCount (const Name &groupName) const |
| Compute the point count in a specific group for the leaf. More...
|
|
void | updateValueMask () |
| Activate voxels with non-zero points, deactivate voxels with zero points. More...
|
|
void | setOffsetOn (Index offset, const ValueType &val) |
|
void | setOffsetOnly (Index offset, const ValueType &val) |
|
template<typename OtherType , Index OtherLog2Dim> |
bool | hasSameTopology (const PointDataLeafNode< OtherType, OtherLog2Dim > *other) const |
| Return true if the given node (which may have a different ValueType than this node) has the same active value topology as this node. More...
|
|
bool | operator== (const PointDataLeafNode &other) const |
|
bool | operator!= (const PointDataLeafNode &other) const |
|
void | addLeaf (PointDataLeafNode *) |
|
template<typename AccessorT > |
void | addLeafAndCache (PointDataLeafNode *, AccessorT &) |
|
void | readTopology (std::istream &is, bool fromHalf=false) |
|
void | writeTopology (std::ostream &os, bool toHalf=false) const |
|
Index | buffers () const |
|
void | readBuffers (std::istream &is, bool fromHalf=false) |
|
void | readBuffers (std::istream &is, const CoordBBox &, bool fromHalf=false) |
|
void | writeBuffers (std::ostream &os, bool toHalf=false) const |
|
Index64 | memUsage () const |
|
void | evalActiveBoundingBox (CoordBBox &bbox, bool visitVoxels=true) const |
|
CoordBBox | getNodeBoundingBox () const |
| Return the bounding box of this node, i.e., the full index space spanned by this leaf node. More...
|
|
void | assertNonmodifiable () |
|
void | assertNonModifiableUnlessZero (const ValueType &value) |
|
void | setActiveState (const Coord &xyz, bool on) |
|
void | setActiveState (Index offset, bool on) |
|
void | setValueOnly (const Coord &, const ValueType &) |
|
void | setValueOnly (Index, const ValueType &) |
|
void | setValueOff (const Coord &xyz) |
|
void | setValueOff (Index offset) |
|
void | setValueOff (const Coord &, const ValueType &) |
|
void | setValueOff (Index, const ValueType &) |
|
void | setValueOn (const Coord &xyz) |
|
void | setValueOn (Index offset) |
|
void | setValueOn (const Coord &, const ValueType &) |
|
void | setValueOn (Index, const ValueType &) |
|
void | setValue (const Coord &, const ValueType &) |
|
void | setValuesOn () |
|
void | setValuesOff () |
|
template<typename ModifyOp > |
void | modifyValue (Index, const ModifyOp &) |
|
template<typename ModifyOp > |
void | modifyValue (const Coord &, const ModifyOp &) |
|
template<typename ModifyOp > |
void | modifyValueAndActiveState (const Coord &, const ModifyOp &) |
|
void | clip (const CoordBBox &, const ValueType &value) |
|
void | fill (const CoordBBox &, const ValueType &, bool) |
|
void | fill (const ValueType &value) |
|
void | fill (const ValueType &, bool) |
|
template<typename AccessorT > |
void | setValueOnlyAndCache (const Coord &, const ValueType &, AccessorT &) |
|
template<typename ModifyOp , typename AccessorT > |
void | modifyValueAndActiveStateAndCache (const Coord &, const ModifyOp &, AccessorT &) |
|
template<typename AccessorT > |
void | setValueOffAndCache (const Coord &, const ValueType &, AccessorT &) |
|
template<typename AccessorT > |
void | setActiveStateAndCache (const Coord &xyz, bool on, AccessorT &parent) |
|
void | resetBackground (const ValueType &, const ValueType &newBackground) |
|
void | signedFloodFill (const ValueType &) |
|
void | signedFloodFill (const ValueType &, const ValueType &) |
|
void | negate () |
|
ValueVoxelCIter | beginValueVoxel (const Coord &ijk) const |
| Leaf value voxel iterator. More...
|
|
IndexAllIter | beginIndexAll () const |
| Leaf index iterator. More...
|
|
IndexOnIter | beginIndexOn () const |
|
IndexOffIter | beginIndexOff () const |
|
template<typename IterT , typename FilterT > |
IndexIter< IterT, FilterT > | beginIndex (const FilterT &filter) const |
|
template<typename FilterT > |
IndexIter< ValueAllCIter, FilterT > | beginIndexAll (const FilterT &filter) const |
| Filtered leaf index iterator. More...
|
|
template<typename FilterT > |
IndexIter< ValueOnCIter, FilterT > | beginIndexOn (const FilterT &filter) const |
|
template<typename FilterT > |
IndexIter< ValueOffCIter, FilterT > | beginIndexOff (const FilterT &filter) const |
|
IndexVoxelIter | beginIndexVoxel (const Coord &ijk) const |
| Leaf index iterator from voxel. More...
|
|
template<typename FilterT > |
IndexIter< ValueVoxelCIter,
FilterT > | beginIndexVoxel (const Coord &ijk, const FilterT &filter) const |
| Filtered leaf index iterator from voxel. More...
|
|
ValueOnCIter | cbeginValueOn () const |
|
ValueOnCIter | beginValueOn () const |
|
ValueOnIter | beginValueOn () |
|
ValueOffCIter | cbeginValueOff () const |
|
ValueOffCIter | beginValueOff () const |
|
ValueOffIter | beginValueOff () |
|
ValueAllCIter | cbeginValueAll () const |
|
ValueAllCIter | beginValueAll () const |
|
ValueAllIter | beginValueAll () |
|
ValueOnCIter | cendValueOn () const |
|
ValueOnCIter | endValueOn () const |
|
ValueOnIter | endValueOn () |
|
ValueOffCIter | cendValueOff () const |
|
ValueOffCIter | endValueOff () const |
|
ValueOffIter | endValueOff () |
|
ValueAllCIter | cendValueAll () const |
|
ValueAllCIter | endValueAll () const |
|
ValueAllIter | endValueAll () |
|
ChildOnCIter | cbeginChildOn () const |
|
ChildOnCIter | beginChildOn () const |
|
ChildOnIter | beginChildOn () |
|
ChildOffCIter | cbeginChildOff () const |
|
ChildOffCIter | beginChildOff () const |
|
ChildOffIter | beginChildOff () |
|
ChildAllCIter | cbeginChildAll () const |
|
ChildAllCIter | beginChildAll () const |
|
ChildAllIter | beginChildAll () |
|
ChildOnCIter | cendChildOn () const |
|
ChildOnCIter | endChildOn () const |
|
ChildOnIter | endChildOn () |
|
ChildOffCIter | cendChildOff () const |
|
ChildOffCIter | endChildOff () const |
|
ChildOffIter | endChildOff () |
|
ChildAllCIter | cendChildAll () const |
|
ChildAllCIter | endChildAll () const |
|
ChildAllIter | endChildAll () |
|
template<typename ValueIterT , typename FilterT > |
IndexIter< ValueIterT, FilterT > | beginIndex (const FilterT &filter) const |
|
|
PointDataLeafNode * | touchLeaf (const Coord &) |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
PointDataLeafNode * | touchLeafAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
template<typename NodeT , typename AccessorT > |
NodeT * | probeNodeAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
PointDataLeafNode * | probeLeaf (const Coord &) |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
PointDataLeafNode * | probeLeafAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
|
const PointDataLeafNode * | probeConstLeaf (const Coord &) const |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
const PointDataLeafNode * | probeConstLeafAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
const PointDataLeafNode * | probeLeafAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|
const PointDataLeafNode * | probeLeaf (const Coord &) const |
| Return a pointer to this node. More...
|
|
template<typename NodeT , typename AccessorT > |
const NodeT * | probeConstNodeAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|
| LeafNode () |
| Default constructor. More...
|
|
| LeafNode (const Coord &coords, const ValueType &value=zeroVal< ValueType >(), bool active=false) |
| Constructor. More...
|
|
| LeafNode (PartialCreate, const Coord &coords, const ValueType &value=zeroVal< ValueType >(), bool active=false) |
| "Partial creation" constructor used during file input More...
|
|
| LeafNode (const LeafNode &) |
| Deep copy constructor. More...
|
|
LeafNode & | operator= (const LeafNode &)=default |
| Deep assignment operator. More...
|
|
template<typename OtherValueType > |
| LeafNode (const LeafNode< OtherValueType, Log2Dim > &other) |
| Value conversion copy constructor. More...
|
|
template<typename OtherValueType > |
| LeafNode (const LeafNode< OtherValueType, Log2Dim > &other, const ValueType &offValue, const ValueType &onValue, TopologyCopy) |
| Topology copy constructor. More...
|
|
template<typename OtherValueType > |
| LeafNode (const LeafNode< OtherValueType, Log2Dim > &other, const ValueType &background, TopologyCopy) |
| Topology copy constructor. More...
|
|
| ~LeafNode () |
| Destructor. More...
|
|
void | nodeCount (std::vector< Index32 > &) const |
| no-op More...
|
|
Index64 | onVoxelCount () const |
| Return the number of voxels marked On. More...
|
|
Index64 | offVoxelCount () const |
| Return the number of voxels marked Off. More...
|
|
Index64 | onLeafVoxelCount () const |
|
Index64 | offLeafVoxelCount () const |
|
bool | isEmpty () const |
| Return true if this node has no active voxels. More...
|
|
bool | isDense () const |
| Return true if this node contains only active voxels. More...
|
|
bool | isAllocated () const |
| Return true if memory for this node's buffer has been allocated. More...
|
|
bool | allocate () |
| Allocate memory for this node's buffer if it has not already been allocated. More...
|
|
Index64 | memUsage () const |
| Return the memory in bytes occupied by this node. More...
|
|
Index64 | memUsageIfLoaded () const |
|
void | evalActiveBoundingBox (CoordBBox &bbox, bool visitVoxels=true) const |
|
CoordBBox | getNodeBoundingBox () const |
| Return the bounding box of this node, i.e., the full index space spanned by this leaf node. More...
|
|
void | setOrigin (const Coord &origin) |
| Set the grid index coordinates of this node's local origin. More...
|
|
Coord | offsetToGlobalCoord (Index n) const |
| Return the global coordinates for a linear table offset. More...
|
|
Index32 | transientData () const |
| Return the transient data value. More...
|
|
void | setTransientData (Index32 transientData) |
| Set the transient data value. More...
|
|
std::string | str () const |
| Return a string representation of this node. More...
|
|
template<typename OtherType , Index OtherLog2Dim> |
bool | hasSameTopology (const LeafNode< OtherType, OtherLog2Dim > *other) const |
| Return true if the given node (which may have a different ValueType than this node) has the same active value topology as this node. More...
|
|
bool | operator== (const LeafNode &other) const |
| Check for buffer, state and origin equivalence. More...
|
|
bool | operator!= (const LeafNode &other) const |
|
ValueOnCIter | cbeginValueOn () const |
|
ValueOnCIter | beginValueOn () const |
|
ValueOnIter | beginValueOn () |
|
ValueOffCIter | cbeginValueOff () const |
|
ValueOffCIter | beginValueOff () const |
|
ValueOffIter | beginValueOff () |
|
ValueAllCIter | cbeginValueAll () const |
|
ValueAllCIter | beginValueAll () const |
|
ValueAllIter | beginValueAll () |
|
ValueOnCIter | cendValueOn () const |
|
ValueOnCIter | endValueOn () const |
|
ValueOnIter | endValueOn () |
|
ValueOffCIter | cendValueOff () const |
|
ValueOffCIter | endValueOff () const |
|
ValueOffIter | endValueOff () |
|
ValueAllCIter | cendValueAll () const |
|
ValueAllCIter | endValueAll () const |
|
ValueAllIter | endValueAll () |
|
ChildOnCIter | cbeginChildOn () const |
|
ChildOnCIter | beginChildOn () const |
|
ChildOnIter | beginChildOn () |
|
ChildOffCIter | cbeginChildOff () const |
|
ChildOffCIter | beginChildOff () const |
|
ChildOffIter | beginChildOff () |
|
ChildAllCIter | cbeginChildAll () const |
|
ChildAllCIter | beginChildAll () const |
|
ChildAllIter | beginChildAll () |
|
ChildOnCIter | cendChildOn () const |
|
ChildOnCIter | endChildOn () const |
|
ChildOnIter | endChildOn () |
|
ChildOffCIter | cendChildOff () const |
|
ChildOffCIter | endChildOff () const |
|
ChildOffIter | endChildOff () |
|
ChildAllCIter | cendChildAll () const |
|
ChildAllCIter | endChildAll () const |
|
ChildAllIter | endChildAll () |
|
void | swap (Buffer &other) |
| Exchange this node's data buffer with the given data buffer without changing the active states of the values. More...
|
|
const Buffer & | buffer () const |
|
Buffer & | buffer () |
|
void | readTopology (std::istream &is, bool fromHalf=false) |
| Read in just the topology. More...
|
|
void | writeTopology (std::ostream &os, bool toHalf=false) const |
| Write out just the topology. More...
|
|
void | readBuffers (std::istream &is, bool fromHalf=false) |
| Read buffers from a stream. More...
|
|
void | readBuffers (std::istream &is, const CoordBBox &bbox, bool fromHalf=false) |
| Read buffers that intersect the given bounding box. More...
|
|
void | writeBuffers (std::ostream &os, bool toHalf=false) const |
| Write buffers to a stream. More...
|
|
size_t | streamingSize (bool toHalf=false) const |
|
const ValueType & | getValue (const Coord &xyz) const |
| Return the value of the voxel at the given coordinates. More...
|
|
const ValueType & | getValue (Index offset) const |
| Return the value of the voxel at the given linear offset. More...
|
|
bool | probeValue (const Coord &xyz, ValueType &val) const |
| Return true if the voxel at the given coordinates is active. More...
|
|
bool | probeValue (Index offset, ValueType &val) const |
| Return true if the voxel at the given offset is active. More...
|
|
void | setActiveState (const Coord &xyz, bool on) |
| Set the active state of the voxel at the given coordinates but don't change its value. More...
|
|
void | setActiveState (Index offset, bool on) |
| Set the active state of the voxel at the given offset but don't change its value. More...
|
|
void | setValueOnly (const Coord &xyz, const ValueType &val) |
| Set the value of the voxel at the given coordinates but don't change its active state. More...
|
|
void | setValueOnly (Index offset, const ValueType &val) |
| Set the value of the voxel at the given offset but don't change its active state. More...
|
|
void | setValueOff (const Coord &xyz) |
| Mark the voxel at the given coordinates as inactive but don't change its value. More...
|
|
void | setValueOff (Index offset) |
| Mark the voxel at the given offset as inactive but don't change its value. More...
|
|
void | setValueOff (const Coord &xyz, const ValueType &val) |
| Set the value of the voxel at the given coordinates and mark the voxel as inactive. More...
|
|
void | setValueOff (Index offset, const ValueType &val) |
| Set the value of the voxel at the given offset and mark the voxel as inactive. More...
|
|
void | setValueOn (const Coord &xyz) |
| Mark the voxel at the given coordinates as active but don't change its value. More...
|
|
void | setValueOn (Index offset) |
| Mark the voxel at the given offset as active but don't change its value. More...
|
|
void | setValueOn (const Coord &xyz, const ValueType &val) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More...
|
|
void | setValue (const Coord &xyz, const ValueType &val) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More...
|
|
void | setValueOn (Index offset, const ValueType &val) |
| Set the value of the voxel at the given offset and mark the voxel as active. More...
|
|
template<typename ModifyOp > |
void | modifyValue (Index offset, const ModifyOp &op) |
| Apply a functor to the value of the voxel at the given offset and mark the voxel as active. More...
|
|
template<typename ModifyOp > |
void | modifyValue (const Coord &xyz, const ModifyOp &op) |
| Apply a functor to the value of the voxel at the given coordinates and mark the voxel as active. More...
|
|
template<typename ModifyOp > |
void | modifyValueAndActiveState (const Coord &xyz, const ModifyOp &op) |
| Apply a functor to the voxel at the given coordinates. More...
|
|
void | setValuesOn () |
| Mark all voxels as active but don't change their values. More...
|
|
void | setValuesOff () |
| Mark all voxels as inactive but don't change their values. More...
|
|
bool | isValueOn (const Coord &xyz) const |
| Return true if the voxel at the given coordinates is active. More...
|
|
bool | isValueOn (Index offset) const |
| Return true if the voxel at the given offset is active. More...
|
|
void | clip (const CoordBBox &, const ValueType &background) |
| Set all voxels that lie outside the given axis-aligned box to the background. More...
|
|
void | fill (const CoordBBox &bbox, const ValueType &, bool active=true) |
| Set all voxels within an axis-aligned box to the specified value and active state. More...
|
|
void | denseFill (const CoordBBox &bbox, const ValueType &value, bool active=true) |
| Set all voxels within an axis-aligned box to the specified value and active state. More...
|
|
void | fill (const ValueType &value) |
| Set all voxels to the specified value but don't change their active states. More...
|
|
void | fill (const ValueType &value, bool active) |
| Set all voxels to the specified value and active state. More...
|
|
template<typename DenseT > |
void | copyToDense (const CoordBBox &bbox, DenseT &dense) const |
| Copy into a dense grid the values of the voxels that lie within a given bounding box. More...
|
|
template<typename DenseT > |
void | copyFromDense (const CoordBBox &bbox, const DenseT &dense, const ValueType &background, const ValueType &tolerance) |
| Copy from a dense grid into this node the values of the voxels that lie within a given bounding box. More...
|
|
template<typename AccessorT > |
const ValueType & | getValueAndCache (const Coord &xyz, AccessorT &) const |
| Return the value of the voxel at the given coordinates. More...
|
|
template<typename AccessorT > |
bool | isValueOnAndCache (const Coord &xyz, AccessorT &) const |
| Return true if the voxel at the given coordinates is active. More...
|
|
template<typename AccessorT > |
void | setValueAndCache (const Coord &xyz, const ValueType &val, AccessorT &) |
| Change the value of the voxel at the given coordinates and mark it as active. More...
|
|
template<typename AccessorT > |
void | setValueOnlyAndCache (const Coord &xyz, const ValueType &val, AccessorT &) |
| Change the value of the voxel at the given coordinates but preserve its state. More...
|
|
template<typename ModifyOp , typename AccessorT > |
void | modifyValueAndCache (const Coord &xyz, const ModifyOp &op, AccessorT &) |
| Apply a functor to the value of the voxel at the given coordinates and mark the voxel as active. More...
|
|
template<typename ModifyOp , typename AccessorT > |
void | modifyValueAndActiveStateAndCache (const Coord &xyz, const ModifyOp &op, AccessorT &) |
|
template<typename AccessorT > |
void | setValueOffAndCache (const Coord &xyz, const ValueType &value, AccessorT &) |
| Change the value of the voxel at the given coordinates and mark it as inactive. More...
|
|
template<typename AccessorT > |
void | setActiveStateAndCache (const Coord &xyz, bool on, AccessorT &) |
| Set the active state of the voxel at the given coordinates without changing its value. More...
|
|
template<typename AccessorT > |
bool | probeValueAndCache (const Coord &xyz, ValueType &val, AccessorT &) const |
| Return true if the voxel at the given coordinates is active and return the voxel value in val. More...
|
|
template<typename AccessorT > |
const ValueType & | getValue (const Coord &xyz, bool &state, int &level, AccessorT &) const |
| Return the value of the voxel at the given coordinates and return its active state and level (i.e., 0) in state and level. More...
|
|
const ValueType & | getFirstValue () const |
| Return a const reference to the first value in the buffer. More...
|
|
const ValueType & | getLastValue () const |
| Return a const reference to the last value in the buffer. More...
|
|
void | resetBackground (const ValueType &oldBackground, const ValueType &newBackground) |
| Replace inactive occurrences of oldBackground with newBackground, and inactive occurrences of -oldBackground with -newBackground. More...
|
|
void | negate () |
|
void | voxelizeActiveTiles (bool=true) |
| No-op. More...
|
|
template<MergePolicy Policy> |
void | merge (const LeafNode &) |
|
template<MergePolicy Policy> |
void | merge (const ValueType &tileValue, bool tileActive) |
|
template<MergePolicy Policy> |
void | merge (const LeafNode &other, const ValueType &, const ValueType &) |
|
template<typename OtherType > |
void | topologyUnion (const LeafNode< OtherType, Log2Dim > &other, const bool preserveTiles=false) |
| Union this node's set of active values with the active values of the other node, whose ValueType may be different. So a resulting voxel will be active if either of the original voxels were active. More...
|
|
template<typename OtherType > |
void | topologyIntersection (const LeafNode< OtherType, Log2Dim > &other, const ValueType &) |
| Intersect this node's set of active values with the active values of the other node, whose ValueType may be different. So a resulting voxel will be active only if both of the original voxels were active. More...
|
|
template<typename OtherType > |
void | topologyDifference (const LeafNode< OtherType, Log2Dim > &other, const ValueType &) |
| Difference this node's set of active values with the active values of the other node, whose ValueType may be different. So a resulting voxel will be active only if the original voxel is active in this LeafNode and inactive in the other LeafNode. More...
|
|
template<typename CombineOp > |
void | combine (const LeafNode &other, CombineOp &op) |
|
template<typename CombineOp > |
void | combine (const ValueType &value, bool valueIsActive, CombineOp &op) |
|
template<typename CombineOp , typename OtherType > |
void | combine2 (const LeafNode &other, const OtherType &, bool valueIsActive, CombineOp &) |
|
template<typename CombineOp , typename OtherNodeT > |
void | combine2 (const ValueType &, const OtherNodeT &other, bool valueIsActive, CombineOp &) |
|
template<typename CombineOp , typename OtherNodeT > |
void | combine2 (const LeafNode &b0, const OtherNodeT &b1, CombineOp &) |
|
void | addTile (Index level, const Coord &, const ValueType &, bool) |
|
void | addTile (Index offset, const ValueType &, bool) |
|
template<typename AccessorT > |
void | addTileAndCache (Index, const Coord &, const ValueType &, bool, AccessorT &) |
|
bool | isConstant (ValueType &firstValue, bool &state, const ValueType &tolerance=zeroVal< ValueType >()) const |
|
bool | isConstant (ValueType &minValue, ValueType &maxValue, bool &state, const ValueType &tolerance=zeroVal< ValueType >()) const |
|
ValueType | medianAll (ValueType *tmp=nullptr) const |
| Computes the median value of all the active AND inactive voxels in this node. More...
|
|
Index | medianOn (ValueType &value, ValueType *tmp=nullptr) const |
| Computes the median value of all the active voxels in this node. More...
|
|
Index | medianOff (ValueType &value, ValueType *tmp=nullptr) const |
| Computes the median value of all the inactive voxels in this node. More...
|
|
bool | isInactive () const |
| Return true if all of this node's values are inactive. More...
|
|
bool | isValueMaskOn (Index n) const |
|
bool | isValueMaskOn () const |
|
bool | isValueMaskOff (Index n) const |
|
bool | isValueMaskOff () const |
|
const NodeMaskType & | getValueMask () const |
|
NodeMaskType & | getValueMask () |
|
const NodeMaskType & | valueMask () const |
|
void | setValueMask (const NodeMaskType &mask) |
|
bool | isChildMaskOn (Index) const |
|
bool | isChildMaskOff (Index) const |
|
bool | isChildMaskOff () const |
|
const Coord & | origin () const |
| Return the grid index coordinates of this node's local origin. More...
|
|
void | getOrigin (Coord &origin) const |
| Return the grid index coordinates of this node's local origin. More...
|
|
void | getOrigin (Int32 &x, Int32 &y, Int32 &z) const |
| Return the grid index coordinates of this node's local origin. More...
|
|
void | prune (const ValueType &=zeroVal< ValueType >()) |
| This function exists only to enable template instantiation. More...
|
|
void | addLeaf (LeafNode *) |
| This function exists only to enable template instantiation. More...
|
|
template<typename AccessorT > |
void | addLeafAndCache (LeafNode *, AccessorT &) |
| This function exists only to enable template instantiation. More...
|
|
template<typename NodeT > |
NodeT * | stealNode (const Coord &, const ValueType &, bool) |
| This function exists only to enable template instantiation. More...
|
|
template<typename NodeT > |
NodeT * | probeNode (const Coord &) |
| This function exists only to enable template instantiation. More...
|
|
template<typename NodeT > |
const NodeT * | probeConstNode (const Coord &) const |
| This function exists only to enable template instantiation. More...
|
|
template<typename ArrayT > |
void | getNodes (ArrayT &) const |
| This function exists only to enable template instantiation. More...
|
|
template<typename ArrayT > |
void | stealNodes (ArrayT &, const ValueType &, bool) |
| This function exists only to enable template instantiation. More...
|
|
LeafNode * | touchLeaf (const Coord &) |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
LeafNode * | touchLeafAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
template<typename NodeT , typename AccessorT > |
NodeT * | probeNodeAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
LeafNode * | probeLeaf (const Coord &) |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
LeafNode * | probeLeafAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More...
|
|
const LeafNode * | probeConstLeaf (const Coord &) const |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
const LeafNode * | probeConstLeafAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
const LeafNode * | probeLeafAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|
const LeafNode * | probeLeaf (const Coord &) const |
| Return a pointer to this node. More...
|
|
template<typename NodeT , typename AccessorT > |
const NodeT * | probeConstNodeAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More...
|
|