|
HDK
|
LeafNode specialization for values of type ValueMask that encodes both the active states and the boolean values of (2^Log2Dim)^3 voxels in a single bit mask, i.e. voxel values and states are indistinguishable! More...
#include <LeafNodeMask.h>
Classes | |
| struct | ChildIter |
| Leaf nodes have no children, so their child iterators have no get/set accessors. More... | |
| struct | DenseIter |
| struct | SameConfiguration |
SameConfiguration<OtherNodeType>::value is true if and only if OtherNodeType is the type of a LeafNode with the same dimensions as this node. More... | |
| struct | ValueConverter |
| ValueConverter<T>::Type is the type of a LeafNode having the same dimensions as this node but a different value type, T. More... | |
| struct | ValueIter |
Public Types | |
| using | LeafNodeType = LeafNode< ValueMask, Log2Dim > |
| using | BuildType = ValueMask |
| using | ValueType = bool |
| using | Buffer = LeafBuffer< ValueType, Log2Dim > |
| using | NodeMaskType = util::NodeMask< Log2Dim > |
| using | Ptr = SharedPtr< LeafNodeType > |
| using | ValueOnIter = ValueIter< MaskOnIter, LeafNode, const bool > |
| using | ValueOnCIter = ValueIter< MaskOnIter, const LeafNode, const bool > |
| using | ValueOffIter = ValueIter< MaskOffIter, LeafNode, const bool > |
| using | ValueOffCIter = ValueIter< MaskOffIter, const LeafNode, const bool > |
| using | ValueAllIter = ValueIter< MaskDenseIter, LeafNode, const bool > |
| using | ValueAllCIter = ValueIter< MaskDenseIter, const LeafNode, const bool > |
| using | ChildOnIter = ChildIter< MaskOnIter, LeafNode > |
| using | ChildOnCIter = ChildIter< MaskOnIter, const LeafNode > |
| using | ChildOffIter = ChildIter< MaskOffIter, LeafNode > |
| using | ChildOffCIter = ChildIter< MaskOffIter, const LeafNode > |
| using | ChildAllIter = DenseIter< LeafNode, bool > |
| using | ChildAllCIter = DenseIter< const LeafNode, const bool > |
Public Member Functions | |
| LeafNode () | |
| Default constructor. More... | |
| LeafNode (const Coord &xyz, bool value=false, bool dummy=false) | |
| LeafNode (PartialCreate, const Coord &xyz, bool value=false, bool dummy=false) | |
| "Partial creation" constructor used during file input More... | |
| LeafNode (const LeafNode &) | |
| Deep copy constructor. More... | |
| template<typename OtherValueType > | |
| LeafNode (const LeafNode< OtherValueType, Log2Dim > &other) | |
| Value conversion copy constructor. More... | |
| template<typename ValueType > | |
| LeafNode (const LeafNode< ValueType, Log2Dim > &other, TopologyCopy) | |
| Topology copy constructor. More... | |
| ~LeafNode () | |
| Destructor. More... | |
| void | nodeCount (std::vector< Index64 > &) const |
| no-op More... | |
| void | nodeCount (std::vector< Index32 > &) const |
| Index64 | onVoxelCount () const |
| Return the number of active voxels. More... | |
| Index64 | offVoxelCount () const |
| Return the number of inactive voxels. 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 only contains 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 &) const |
| Check for buffer equivalence by value. More... | |
| bool | operator!= (const LeafNode &) const |
| 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 &, bool fromHalf=false) |
| Read in just the topology. More... | |
| void | writeTopology (std::ostream &, bool toHalf=false) const |
| Write out just the topology. More... | |
| void | readBuffers (std::istream &, bool fromHalf=false) |
| Read in the topology and the origin. More... | |
| void | readBuffers (std::istream &is, const CoordBBox &, bool fromHalf=false) |
| void | writeBuffers (std::ostream &, bool toHalf=false) const |
| Write out the topology and the origin. More... | |
| const bool & | getValue (const Coord &xyz) const |
| Return the value of the voxel at the given coordinates. More... | |
| const bool & | getValue (Index offset) const |
| Return the value of the voxel at the given offset. More... | |
| bool | probeValue (const Coord &xyz, bool &val) const |
Return true if the voxel at the given coordinates is active. More... | |
| bool | probeValue (Index offset, bool &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, bool val) |
| Set the value of the voxel at the given coordinates but don't change its active state. More... | |
| void | setValueOnly (Index offset, bool 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, bool val) |
| Set the value of the voxel at the given coordinates and mark the voxel as inactive. More... | |
| void | setValueOff (Index offset, bool 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, bool val) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More... | |
| void | setValue (const Coord &xyz, bool val) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More... | |
| void | setValueOn (Index offset, bool 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... | |
| bool | isValueOff (const Coord &xyz) const |
Return true if the voxel at the given coordinates is inactive. More... | |
| bool | isValueOff (Index offset) const |
Return true if the voxel at the given offset is inactive. More... | |
| void | clip (const CoordBBox &, bool background) |
| Set all voxels that lie outside the given axis-aligned box to the background. More... | |
| void | fill (const CoordBBox &bbox, bool value, bool=false) |
| Set all voxels within an axis-aligned box to the specified value. More... | |
| void | denseFill (const CoordBBox &bbox, bool value, bool=false) |
| Set all voxels within an axis-aligned box to the specified value. More... | |
| void | fill (const bool &value, bool dummy=false) |
| Set the state of all voxels to the specified 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, bool background, bool 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 bool & | 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, bool 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, bool val, AccessorT &) |
| Change the value of the voxel at the given coordinates but preserve its state. More... | |
| template<typename AccessorT > | |
| void | setValueOffAndCache (const Coord &xyz, bool value, AccessorT &) |
| Change the value of the voxel at the given coordinates and mark it as inactive. 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 | 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, bool &val, AccessorT &) const |
Return true if the voxel at the given coordinates is active and return the voxel value in val. More... | |
| const bool & | getFirstValue () const |
| Return a const reference to the first entry in the buffer. More... | |
| const bool & | getLastValue () const |
| Return a const reference to the last entry in the buffer. More... | |
| bool | isConstant (bool &constValue, bool &state, bool tolerance=0) const |
| bool | medianAll () const |
| Computes the median value of all the active and inactive voxels in this node. More... | |
| Index | medianOn (ValueType &value) const |
| Computes the median value of all the active voxels in this node. More... | |
| Index | medianOff (ValueType &value) 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... | |
| const bool & | getValueUnsafe (Index offset) const |
| Return the value of the voxel at the given offset. More... | |
| bool | getValueUnsafe (Index offset, bool &value) const |
| Return true if the voxel at the given offset is active and set value. More... | |
| void | setActiveStateUnsafe (Index offset, bool on) |
| Set the active state of the voxel at the given offset but don't change its value. More... | |
| void | setValueOnlyUnsafe (Index offset, const bool &value) |
| Set the value of the voxel at the given coordinates but don't change its active state. More... | |
| void | setValueOnUnsafe (Index offset) |
| Mark the voxel at the given offset as active but don't change its value. More... | |
| void | setValueOnUnsafe (Index offset, const bool &value) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More... | |
| void | setValueOffUnsafe (Index offset) |
| Mark the voxel at the given offset as inactive but don't change its value. More... | |
| void | setValueOffUnsafe (Index offset, const bool &value) |
| Set the value of the voxel at the given coordinates and mark the voxel as active. More... | |
| void | resetBackground (bool, bool) |
| no-op since for this template specialization voxel values and states are indistinguishable. More... | |
| void | negate () |
| Invert the bits of the voxels, i.e. states and values. More... | |
| template<MergePolicy Policy> | |
| void | merge (const LeafNode &other, bool bg=false, bool otherBG=false) |
| template<MergePolicy Policy> | |
| void | merge (bool tileValue, bool tileActive=false) |
| void | voxelizeActiveTiles (bool=true) |
| No-op. More... | |
| 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 bool &) |
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 bool &) |
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 (bool, 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 (bool, 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 &, bool val, bool active) |
| void | addTile (Index offset, bool val, bool active) |
| template<typename AccessorT > | |
| void | addTileAndCache (Index level, const Coord &, bool val, bool active, AccessorT &) |
| 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 () |
| bool | isValueMaskOn (Index n) const |
| bool | isValueMaskOn () const |
| bool | isValueMaskOff (Index n) const |
| bool | isValueMaskOff () const |
| const NodeMaskType & | getValueMask () const |
| const NodeMaskType & | valueMask () const |
| NodeMaskType & | getValueMask () |
| void | setValueMask (const NodeMaskType &mask) |
| bool | isChildMaskOn (Index) const |
| bool | isChildMaskOff (Index) const |
| bool | isChildMaskOff () const |
| template<typename ValueT > | |
| LeafNode (const LeafNode< ValueT, Log2Dim > &other) | |
| template<typename ValueT > | |
| LeafNode (const LeafNode< ValueT, Log2Dim > &other, bool, TopologyCopy) | |
| template<typename ValueT > | |
| LeafNode (const LeafNode< ValueT, Log2Dim > &other, TopologyCopy) | |
| template<typename ValueT > | |
| LeafNode (const LeafNode< ValueT, Log2Dim > &other, bool offValue, bool onValue, TopologyCopy) | |
| template<typename ValueType > | |
| LeafNode (const LeafNode< ValueType, Log2Dim > &other, bool offValue, bool onValue, TopologyCopy) | |
| Topology copy constructor. More... | |
| template<typename ValueType > | |
| LeafNode (const LeafNode< ValueType, Log2Dim > &other, bool background, TopologyCopy) | |
| Topology copy constructor. More... | |
| 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... | |
| 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... | |
| template<typename NodeT , typename AccessorT > | |
| NodeT * | probeNodeAndCache (const Coord &, AccessorT &) |
| Return a pointer to this node. More... | |
| const LeafNode * | probeLeaf (const Coord &) 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 * | 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 NodeT , typename AccessorT > | |
| const NodeT * | probeConstNodeAndCache (const Coord &, AccessorT &) const |
| Return a pointer to this node. More... | |
Static Public Member Functions | |
| static Index | log2dim () |
| Return log2 of the size of the buffer storage. More... | |
| static Index | dim () |
| Return the number of voxels in each dimension. More... | |
| static Index | size () |
| Return the total number of voxels represented by this LeafNode. More... | |
| static Index | numValues () |
| Return the total number of voxels represented by this LeafNode. More... | |
| static Index | getLevel () |
| Return the level of this node, which by definition is zero for LeafNodes. More... | |
| static void | getNodeLog2Dims (std::vector< Index > &dims) |
| Append the Log2Dim of this LeafNode to the specified vector. More... | |
| static Index | getChildDim () |
| Return the dimension of child nodes of this LeafNode, which is one for voxels. More... | |
| static Index64 | leafCount () |
| Return the leaf count for this node, which is one. More... | |
| static Index64 | nonLeafCount () |
| Return the non-leaf count for this node, which is zero. More... | |
| static Index64 | onTileCount () |
| static Index64 | offTileCount () |
| static Index | coordToOffset (const Coord &xyz) |
| Return the linear table offset of the given global or local coordinates. More... | |
| static Coord | offsetToLocalCoord (Index n) |
| Return the local coordinates for a linear table offset, where offset 0 has coordinates (0, 0, 0). More... | |
| static Index | getValueLevel (const Coord &) |
| Return the level (0) at which leaf node values reside. More... | |
| static bool | hasActiveTiles () |
Return false since leaf nodes never contain tiles. More... | |
| template<typename AccessorT > | |
| static Index | getValueLevelAndCache (const Coord &, AccessorT &) |
| Return the LEVEL (=0) at which leaf node values reside. More... | |
Static Public Attributes | |
| static const Index | LOG2DIM = Log2Dim |
| static const Index | TOTAL = Log2Dim |
| static const Index | DIM = 1 << TOTAL |
| static const Index | NUM_VALUES = 1 << 3 * Log2Dim |
| static const Index | NUM_VOXELS = NUM_VALUES |
| static const Index | SIZE = NUM_VALUES |
| static const Index | LEVEL = 0 |
Protected Types | |
| using | MaskOnIter = typename NodeMaskType::OnIterator |
| using | MaskOffIter = typename NodeMaskType::OffIterator |
| using | MaskDenseIter = typename NodeMaskType::DenseIterator |
Protected Member Functions | |
| void | setValueMask (Index n, bool on) |
| void | setValueMaskOn (Index n) |
| void | setValueMaskOff (Index n) |
Static Protected Member Functions | |
| static void | evalNodeOrigin (Coord &xyz) |
| Compute the origin of the leaf node that contains the voxel with the given coordinates. More... | |
Protected Attributes | |
| Buffer | mBuffer |
| Bitmask representing the values AND state of voxels. More... | |
| Coord | mOrigin |
| Global grid index coordinates (x,y,z) of the local origin of this node. More... | |
| Index32 | mTransientData = 0 |
| Transient data (not serialized) More... | |
Friends | |
| template<typename , Index > | |
| class | LeafNode |
| During topology-only construction, access is needed to protected/private members of other template instances. More... | |
| struct | ValueIter< MaskOnIter, LeafNode, bool > |
| struct | ValueIter< MaskOffIter, LeafNode, bool > |
| struct | ValueIter< MaskDenseIter, LeafNode, bool > |
| struct | ValueIter< MaskOnIter, const LeafNode, bool > |
| struct | ValueIter< MaskOffIter, const LeafNode, bool > |
| struct | ValueIter< MaskDenseIter, const LeafNode, bool > |
| template<typename , Index > | |
| class | LeafBuffer |
| class | IteratorBase< MaskOnIter, LeafNode > |
| class | IteratorBase< MaskOffIter, LeafNode > |
| class | IteratorBase< MaskDenseIter, LeafNode > |
LeafNode specialization for values of type ValueMask that encodes both the active states and the boolean values of (2^Log2Dim)^3 voxels in a single bit mask, i.e. voxel values and states are indistinguishable!
Definition at line 31 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::Buffer = LeafBuffer<ValueType, Log2Dim> |
Definition at line 37 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::BuildType = ValueMask |
Definition at line 35 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildAllCIter = DenseIter<const LeafNode, const bool> |
Definition at line 677 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildAllIter = DenseIter<LeafNode, bool> |
Definition at line 676 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildOffCIter = ChildIter<MaskOffIter, const LeafNode> |
Definition at line 675 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildOffIter = ChildIter<MaskOffIter, LeafNode> |
Definition at line 674 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildOnCIter = ChildIter<MaskOnIter, const LeafNode> |
Definition at line 673 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ChildOnIter = ChildIter<MaskOnIter, LeafNode> |
Definition at line 672 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::LeafNodeType = LeafNode<ValueMask, Log2Dim> |
Definition at line 34 of file LeafNodeMask.h.
|
protected |
Definition at line 602 of file LeafNodeMask.h.
|
protected |
Definition at line 601 of file LeafNodeMask.h.
|
protected |
Definition at line 600 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::NodeMaskType = util::NodeMask<Log2Dim> |
Definition at line 38 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::Ptr = SharedPtr<LeafNodeType> |
Definition at line 39 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueAllCIter = ValueIter<MaskDenseIter, const LeafNode, const bool> |
Definition at line 671 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueAllIter = ValueIter<MaskDenseIter, LeafNode, const bool> |
Definition at line 670 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueOffCIter = ValueIter<MaskOffIter, const LeafNode, const bool> |
Definition at line 669 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueOffIter = ValueIter<MaskOffIter, LeafNode, const bool> |
Definition at line 668 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueOnCIter = ValueIter<MaskOnIter, const LeafNode, const bool> |
Definition at line 667 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueOnIter = ValueIter<MaskOnIter, LeafNode, const bool> |
Definition at line 666 of file LeafNodeMask.h.
| using openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::ValueType = bool |
Definition at line 36 of file LeafNodeMask.h.
|
inline |
Default constructor.
Definition at line 780 of file LeafNodeMask.h.
|
inlineexplicit |
Constructor
| xyz | the coordinates of a voxel that lies within the node |
| value | the initial value = state for all of this node's voxels |
| dummy | dummy value |
Definition at line 787 of file LeafNodeMask.h.
|
inline |
"Partial creation" constructor used during file input
Definition at line 796 of file LeafNodeMask.h.
|
inline |
Deep copy constructor.
Definition at line 805 of file LeafNodeMask.h.
|
explicit |
Value conversion copy constructor.
| openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::LeafNode | ( | const LeafNode< ValueType, Log2Dim > & | other, |
| TopologyCopy | |||
| ) |
Topology copy constructor.
| openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::LeafNode | ( | const LeafNode< ValueType, Log2Dim > & | other, |
| bool | offValue, | ||
| bool | onValue, | ||
| TopologyCopy | |||
| ) |
Topology copy constructor.
| openvdb::OPENVDB_VERSION_NAME::tree::LeafNode< ValueMask, Log2Dim >::LeafNode | ( | const LeafNode< ValueType, Log2Dim > & | other, |
| bool | background, | ||
| TopologyCopy | |||
| ) |
Topology copy constructor.
|
inline |
Destructor.
Definition at line 869 of file LeafNodeMask.h.
|
inline |
Definition at line 817 of file LeafNodeMask.h.
|
inline |
Definition at line 828 of file LeafNodeMask.h.
|
inline |
Definition at line 840 of file LeafNodeMask.h.
|
inline |
Definition at line 851 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 543 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 545 of file LeafNodeMask.h.
|
inline |
Definition at line 1095 of file LeafNodeMask.h.
|
inline |
Definition at line 1102 of file LeafNodeMask.h.
|
inline |
Definition at line 1112 of file LeafNodeMask.h.
|
inline |
Allocate memory for this node's buffer if it has not already been allocated.
Currently, boolean leaf nodes don't support partial creation, so this has no effect.
Definition at line 143 of file LeafNodeMask.h.
|
inline |
Definition at line 708 of file LeafNodeMask.h.
|
inline |
Definition at line 709 of file LeafNodeMask.h.
|
inline |
Definition at line 705 of file LeafNodeMask.h.
|
inline |
Definition at line 706 of file LeafNodeMask.h.
|
inline |
Definition at line 702 of file LeafNodeMask.h.
|
inline |
Definition at line 703 of file LeafNodeMask.h.
|
inline |
Definition at line 686 of file LeafNodeMask.h.
|
inline |
Definition at line 687 of file LeafNodeMask.h.
|
inline |
Definition at line 683 of file LeafNodeMask.h.
|
inline |
Definition at line 684 of file LeafNodeMask.h.
|
inline |
Definition at line 680 of file LeafNodeMask.h.
|
inline |
Definition at line 681 of file LeafNodeMask.h.
|
inline |
Definition at line 198 of file LeafNodeMask.h.
|
inline |
Definition at line 199 of file LeafNodeMask.h.
|
inline |
Definition at line 707 of file LeafNodeMask.h.
|
inline |
Definition at line 704 of file LeafNodeMask.h.
|
inline |
Definition at line 701 of file LeafNodeMask.h.
|
inline |
Definition at line 685 of file LeafNodeMask.h.
|
inline |
Definition at line 682 of file LeafNodeMask.h.
|
inline |
Definition at line 679 of file LeafNodeMask.h.
|
inline |
Definition at line 717 of file LeafNodeMask.h.
|
inline |
Definition at line 714 of file LeafNodeMask.h.
|
inline |
Definition at line 711 of file LeafNodeMask.h.
|
inline |
Definition at line 695 of file LeafNodeMask.h.
|
inline |
Definition at line 692 of file LeafNodeMask.h.
|
inline |
Definition at line 689 of file LeafNodeMask.h.
|
inline |
Set all voxels that lie outside the given axis-aligned box to the background.
Definition at line 1303 of file LeafNodeMask.h.
|
inline |
Definition at line 1437 of file LeafNodeMask.h.
|
inline |
Definition at line 1455 of file LeafNodeMask.h.
|
inline |
Definition at line 1475 of file LeafNodeMask.h.
|
inline |
Definition at line 1493 of file LeafNodeMask.h.
|
inline |
Definition at line 1511 of file LeafNodeMask.h.
|
inlinestatic |
Return the linear table offset of the given global or local coordinates.
Definition at line 938 of file LeafNodeMask.h.
|
inline |
Copy from a dense grid into this node the values of the voxels that lie within a given bounding box.
Only values that are different (by more than the given tolerance) from the background value will be active. Other values are inactive and truncated to the background value.
| bbox | inclusive bounding box of the voxels to be copied into this node |
| dense | dense grid with a stride in z of one (see tools::Dense in tools/Dense.h for the required API) |
| background | background value of the tree that this node belongs to |
| tolerance | tolerance within which a value equals the background value |
Definition at line 1400 of file LeafNodeMask.h.
|
inline |
Copy into a dense grid the values of the voxels that lie within a given bounding box.
| bbox | inclusive bounding box of the voxels to be copied into the dense grid |
| dense | dense grid with a stride in z of one (see tools::Dense in tools/Dense.h for the required API) |
Definition at line 1375 of file LeafNodeMask.h.
|
inline |
Set all voxels within an axis-aligned box to the specified value.
Definition at line 303 of file LeafNodeMask.h.
|
inlinestatic |
Return the number of voxels in each dimension.
Definition at line 103 of file LeafNodeMask.h.
|
inline |
Definition at line 718 of file LeafNodeMask.h.
|
inline |
Definition at line 719 of file LeafNodeMask.h.
|
inline |
Definition at line 715 of file LeafNodeMask.h.
|
inline |
Definition at line 716 of file LeafNodeMask.h.
|
inline |
Definition at line 712 of file LeafNodeMask.h.
|
inline |
Definition at line 713 of file LeafNodeMask.h.
|
inline |
Definition at line 696 of file LeafNodeMask.h.
|
inline |
Definition at line 697 of file LeafNodeMask.h.
|
inline |
Definition at line 693 of file LeafNodeMask.h.
|
inline |
Definition at line 694 of file LeafNodeMask.h.
|
inline |
Definition at line 690 of file LeafNodeMask.h.
|
inline |
Definition at line 691 of file LeafNodeMask.h.
|
inline |
Expand the given bounding box so that it includes this leaf node's active voxels. If visitVoxels is false this LeafNode will be approximated as dense, i.e. with all voxels active. Else the individual active voxels are visited to produce a tight bbox.
Definition at line 897 of file LeafNodeMask.h.
|
inlinestaticprotected |
Compute the origin of the leaf node that contains the voxel with the given coordinates.
Definition at line 741 of file LeafNodeMask.h.
|
inline |
Set all voxels within an axis-aligned box to the specified value.
Definition at line 1343 of file LeafNodeMask.h.
|
inline |
Set the state of all voxels to the specified active state.
Definition at line 1363 of file LeafNodeMask.h.
|
inlinestatic |
Return the dimension of child nodes of this LeafNode, which is one for voxels.
Definition at line 113 of file LeafNodeMask.h.
|
inline |
Return a const reference to the first entry in the buffer.
Definition at line 413 of file LeafNodeMask.h.
|
inline |
Return a const reference to the last entry in the buffer.
Definition at line 417 of file LeafNodeMask.h.
|
inlinestatic |
Return the level of this node, which by definition is zero for LeafNodes.
Definition at line 109 of file LeafNodeMask.h.
|
inline |
Return the bounding box of this node, i.e., the full index space spanned by this leaf node.
Definition at line 156 of file LeafNodeMask.h.
|
inlinestatic |
Append the Log2Dim of this LeafNode to the specified vector.
Definition at line 111 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 552 of file LeafNodeMask.h.
|
inline |
Return the grid index coordinates of this node's local origin.
Definition at line 163 of file LeafNodeMask.h.
|
inline |
Return the grid index coordinates of this node's local origin.
Definition at line 164 of file LeafNodeMask.h.
|
inline |
Return the value of the voxel at the given coordinates.
Definition at line 1124 of file LeafNodeMask.h.
|
inline |
Return the value of the voxel at the given offset.
Definition at line 1133 of file LeafNodeMask.h.
|
inline |
Return the value of the voxel at the given coordinates.
Definition at line 344 of file LeafNodeMask.h.
|
inlinestatic |
Return the level (0) at which leaf node values reside.
Definition at line 233 of file LeafNodeMask.h.
|
inlinestatic |
Return the LEVEL (=0) at which leaf node values reside.
Definition at line 408 of file LeafNodeMask.h.
|
inline |
Definition at line 728 of file LeafNodeMask.h.
|
inline |
Definition at line 730 of file LeafNodeMask.h.
|
inline |
Return the value of the voxel at the given offset.
Definition at line 460 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given offset is active and set value.
Definition at line 462 of file LeafNodeMask.h.
|
inlinestatic |
Return false since leaf nodes never contain tiles.
Definition at line 295 of file LeafNodeMask.h.
|
inline |
Return true if the given node (which may have a different ValueType than this node) has the same active value topology as this node.
Definition at line 915 of file LeafNodeMask.h.
|
inline |
Return true if memory for this node's buffer has been allocated.
Currently, boolean leaf nodes don't support partial creation, so this always returns true.
Definition at line 139 of file LeafNodeMask.h.
|
inline |
Definition at line 733 of file LeafNodeMask.h.
|
inline |
Definition at line 734 of file LeafNodeMask.h.
|
inline |
Definition at line 732 of file LeafNodeMask.h.
|
inline |
Return true if all of this node's voxels have the same active state and are equal to within the given tolerance, and return the value in constValue and the active state in state.
Definition at line 1052 of file LeafNodeMask.h.
|
inline |
Return true if this node only contains active voxels.
Definition at line 135 of file LeafNodeMask.h.
|
inline |
Return true if this node has no active voxels.
Definition at line 133 of file LeafNodeMask.h.
|
inline |
Return true if all of this node's values are inactive.
Definition at line 451 of file LeafNodeMask.h.
|
inline |
Definition at line 726 of file LeafNodeMask.h.
|
inline |
Definition at line 727 of file LeafNodeMask.h.
|
inline |
Definition at line 724 of file LeafNodeMask.h.
|
inline |
Definition at line 725 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given coordinates is inactive.
Definition at line 290 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given offset is inactive.
Definition at line 292 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given coordinates is active.
Definition at line 286 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given offset is active.
Definition at line 288 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given coordinates is active.
Definition at line 349 of file LeafNodeMask.h.
|
inlinestatic |
Return the leaf count for this node, which is one.
Definition at line 115 of file LeafNodeMask.h.
|
inlinestatic |
Return log2 of the size of the buffer storage.
Definition at line 101 of file LeafNodeMask.h.
|
inline |
Computes the median value of all the active and inactive voxels in this node.
The median for boolean values is defined as the mode of the values, i.e. the value that occurs most often.
Definition at line 1065 of file LeafNodeMask.h.
|
inline |
Computes the median value of all the inactive voxels in this node.
| value | Updated with the median value of all the inactive voxels. |
Definition at line 1082 of file LeafNodeMask.h.
|
inline |
Computes the median value of all the active voxels in this node.
| value | Updated with the median value of all the active voxels. |
Definition at line 1073 of file LeafNodeMask.h.
|
inline |
Return the memory in bytes occupied by this node.
Definition at line 879 of file LeafNodeMask.h.
|
inline |
Definition at line 888 of file LeafNodeMask.h.
|
inline |
Definition at line 1246 of file LeafNodeMask.h.
|
inline |
Definition at line 1257 of file LeafNodeMask.h.
|
inline |
Apply a functor to the value of the voxel at the given offset and mark the voxel as active.
Definition at line 1211 of file LeafNodeMask.h.
|
inline |
Apply a functor to the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 1222 of file LeafNodeMask.h.
|
inline |
Apply a functor to the voxel at the given coordinates.
Definition at line 1231 of file LeafNodeMask.h.
|
inline |
Apply a functor to the voxel at the given coordinates.
Definition at line 382 of file LeafNodeMask.h.
|
inline |
Apply a functor to the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 374 of file LeafNodeMask.h.
|
inline |
Invert the bits of the voxels, i.e. states and values.
Definition at line 481 of file LeafNodeMask.h.
|
inline |
no-op
Definition at line 117 of file LeafNodeMask.h.
|
inline |
Definition at line 119 of file LeafNodeMask.h.
|
inlinestatic |
Return the non-leaf count for this node, which is zero.
Definition at line 121 of file LeafNodeMask.h.
|
inlinestatic |
Return the total number of voxels represented by this LeafNode.
Definition at line 107 of file LeafNodeMask.h.
|
inline |
Definition at line 128 of file LeafNodeMask.h.
|
inline |
Return the global coordinates for a linear table offset.
Definition at line 963 of file LeafNodeMask.h.
|
inlinestatic |
Return the local coordinates for a linear table offset, where offset 0 has coordinates (0, 0, 0).
Definition at line 949 of file LeafNodeMask.h.
|
inlinestatic |
Definition at line 130 of file LeafNodeMask.h.
|
inline |
Return the number of inactive voxels.
Definition at line 126 of file LeafNodeMask.h.
|
inline |
Definition at line 127 of file LeafNodeMask.h.
|
inlinestatic |
Definition at line 129 of file LeafNodeMask.h.
|
inline |
Return the number of active voxels.
Definition at line 124 of file LeafNodeMask.h.
|
inline |
Definition at line 1041 of file LeafNodeMask.h.
|
inline |
Check for buffer equivalence by value.
Definition at line 1033 of file LeafNodeMask.h.
|
inline |
Return the grid index coordinates of this node's local origin.
Definition at line 162 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 583 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 585 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 551 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 587 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 566 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 580 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 568 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 582 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 549 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 570 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given coordinates is active.
| xyz | the coordinates of the voxel to be probed | |
| [out] | val | the value of the voxel at the given coordinates |
Definition at line 1143 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given offset is active.
| offset | the linear offset of the voxel to be probed | |
| [out] | val | the value of the voxel at the given coordinates |
Definition at line 1151 of file LeafNodeMask.h.
|
inline |
Return true if the voxel at the given coordinates is active and return the voxel value in val.
Definition at line 400 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 542 of file LeafNodeMask.h.
|
inline |
Read in the topology and the origin.
Definition at line 1008 of file LeafNodeMask.h.
|
inline |
Definition at line 990 of file LeafNodeMask.h.
|
inline |
Read in just the topology.
Definition at line 974 of file LeafNodeMask.h.
|
inline |
no-op since for this template specialization voxel values and states are indistinguishable.
Definition at line 478 of file LeafNodeMask.h.
|
inline |
Set the active state of the voxel at the given coordinates but don't change its value.
Definition at line 1185 of file LeafNodeMask.h.
|
inline |
Set the active state of the voxel at the given offset but don't change its value.
Definition at line 238 of file LeafNodeMask.h.
|
inline |
Set the active state of the voxel at the given coordinates without changing its value.
Definition at line 391 of file LeafNodeMask.h.
|
inline |
Set the active state of the voxel at the given offset but don't change its value.
Definition at line 464 of file LeafNodeMask.h.
|
inline |
Set the grid index coordinates of this node's local origin.
Definition at line 159 of file LeafNodeMask.h.
|
inline |
Set the transient data value.
Definition at line 178 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 263 of file LeafNodeMask.h.
|
inline |
Change the value of the voxel at the given coordinates and mark it as active.
Definition at line 354 of file LeafNodeMask.h.
|
inline |
Definition at line 731 of file LeafNodeMask.h.
|
inlineprotected |
Definition at line 736 of file LeafNodeMask.h.
|
inlineprotected |
Definition at line 738 of file LeafNodeMask.h.
|
inlineprotected |
Definition at line 737 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given coordinates as inactive but don't change its value.
Definition at line 246 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given offset as inactive but don't change its value.
Definition at line 248 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates and mark the voxel as inactive.
Definition at line 1193 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given offset and mark the voxel as inactive.
Definition at line 1201 of file LeafNodeMask.h.
|
inline |
Change the value of the voxel at the given coordinates and mark it as inactive.
Definition at line 365 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given offset as inactive but don't change its value.
Definition at line 472 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 474 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given coordinates as active but don't change its value.
Definition at line 256 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given offset as active but don't change its value.
Definition at line 258 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 1160 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given offset and mark the voxel as active.
Definition at line 1168 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates but don't change its active state.
Definition at line 1177 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given offset but don't change its active state.
Definition at line 243 of file LeafNodeMask.h.
|
inline |
Change the value of the voxel at the given coordinates but preserve its state.
Definition at line 360 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates but don't change its active state.
Definition at line 466 of file LeafNodeMask.h.
|
inline |
Mark the voxel at the given offset as active but don't change its value.
Definition at line 468 of file LeafNodeMask.h.
|
inline |
Set the value of the voxel at the given coordinates and mark the voxel as active.
Definition at line 470 of file LeafNodeMask.h.
|
inline |
Mark all voxels as inactive but don't change their values.
Definition at line 283 of file LeafNodeMask.h.
|
inline |
Mark all voxels as active but don't change their values.
Definition at line 281 of file LeafNodeMask.h.
|
inlinestatic |
Return the total number of voxels represented by this LeafNode.
Definition at line 105 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 547 of file LeafNodeMask.h.
|
inline |
This function exists only to enable template instantiation.
Definition at line 553 of file LeafNodeMask.h.
|
inline |
Return a string representation of this node.
Definition at line 924 of file LeafNodeMask.h.
|
inline |
Exchange this node's data buffer with the given data buffer without changing the active states of the values.
Definition at line 197 of file LeafNodeMask.h.
|
inline |
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.
The last dummy argument is required to match the signature for InternalNode::topologyDifference.
Definition at line 1291 of file LeafNodeMask.h.
|
inline |
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.
The last dummy argument is required to match the signature for InternalNode::topologyIntersection.
Definition at line 1281 of file LeafNodeMask.h.
|
inline |
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.
Definition at line 1272 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 563 of file LeafNodeMask.h.
|
inline |
Return a pointer to this node.
Definition at line 565 of file LeafNodeMask.h.
|
inline |
Return the transient data value.
Definition at line 176 of file LeafNodeMask.h.
|
inline |
Definition at line 729 of file LeafNodeMask.h.
|
inline |
No-op.
This function exists only to enable template instantiation.
Definition at line 489 of file LeafNodeMask.h.
|
inline |
Write out the topology and the origin.
Definition at line 1019 of file LeafNodeMask.h.
|
inline |
Write out just the topology.
Definition at line 982 of file LeafNodeMask.h.
|
friend |
Allow iterators to call mask accessor methods (see below).
Definition at line 767 of file LeafNodeMask.h.
|
friend |
Allow iterators to call mask accessor methods (see below).
Definition at line 766 of file LeafNodeMask.h.
|
friend |
Allow iterators to call mask accessor methods (see below).
Definition at line 765 of file LeafNodeMask.h.
Definition at line 770 of file LeafNodeMask.h.
During topology-only construction, access is needed to protected/private members of other template instances.
Definition at line 753 of file LeafNodeMask.h.
|
friend |
Definition at line 760 of file LeafNodeMask.h.
|
friend |
Definition at line 757 of file LeafNodeMask.h.
|
friend |
Definition at line 759 of file LeafNodeMask.h.
|
friend |
Definition at line 756 of file LeafNodeMask.h.
|
friend |
Definition at line 758 of file LeafNodeMask.h.
|
friend |
Definition at line 755 of file LeafNodeMask.h.
|
static |
Definition at line 44 of file LeafNodeMask.h.
|
static |
Definition at line 48 of file LeafNodeMask.h.
|
static |
Definition at line 42 of file LeafNodeMask.h.
|
protected |
Bitmask representing the values AND state of voxels.
Definition at line 744 of file LeafNodeMask.h.
|
protected |
Global grid index coordinates (x,y,z) of the local origin of this node.
Definition at line 746 of file LeafNodeMask.h.
|
protected |
Transient data (not serialized)
Definition at line 748 of file LeafNodeMask.h.
|
static |
Definition at line 45 of file LeafNodeMask.h.
|
static |
Definition at line 46 of file LeafNodeMask.h.
|
static |
Definition at line 47 of file LeafNodeMask.h.
|
static |
Definition at line 43 of file LeafNodeMask.h.