|
| 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 &) |
|
PointDataLeafNode * | touchLeaf (const Coord &) |
| Return a pointer to this node. More...
|
|
template<typename AccessorT > |
PointDataLeafNode * | touchLeafAndCache (const Coord &, AccessorT &) |
|
template<typename NodeT , typename AccessorT > |
NodeT * | probeNodeAndCache (const Coord &, AccessorT &) |
|
PointDataLeafNode * | probeLeaf (const Coord &) |
|
template<typename AccessorT > |
PointDataLeafNode * | probeLeafAndCache (const Coord &, AccessorT &) |
|
const PointDataLeafNode * | probeConstLeaf (const Coord &) const |
| Return a const pointer to this node. More...
|
|
template<typename AccessorT > |
const PointDataLeafNode * | probeConstLeafAndCache (const Coord &, AccessorT &) const |
|
template<typename AccessorT > |
const PointDataLeafNode * | probeLeafAndCache (const Coord &, AccessorT &) const |
|
const PointDataLeafNode * | probeLeaf (const Coord &) const |
|
template<typename NodeT , typename AccessorT > |
const NodeT * | probeConstNodeAndCache (const Coord &, AccessorT &) const |
|
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 |
|