|
__hostdev__ ValueOnIterator | beginValueOn () const |
|
__hostdev__ ValueOnIterator | cbeginValueOn () const |
|
__hostdev__ ValueOffIterator | beginValueOff () const |
|
__hostdev__ ValueOffIterator | cbeginValueOff () const |
|
__hostdev__ ValueIterator | beginValue () const |
|
__hostdev__ ValueIterator | cbeginValueAll () const |
|
__hostdev__ DataType * | data () |
|
__hostdev__ const DataType * | data () const |
|
__hostdev__ const MaskType
< LOG2DIM > & | valueMask () const |
| Return a const reference to the bit mask of active voxels in this leaf node. More...
|
|
__hostdev__ const MaskType
< LOG2DIM > & | getValueMask () const |
|
__hostdev__ ValueType | minimum () const |
| Return a const reference to the minimum active value encoded in this leaf node. More...
|
|
__hostdev__ ValueType | maximum () const |
| Return a const reference to the maximum active value encoded in this leaf node. More...
|
|
__hostdev__ FloatType | average () const |
| Return a const reference to the average of all the active values encoded in this leaf node. More...
|
|
__hostdev__ FloatType | variance () const |
| Return the variance of all the active values encoded in this leaf node. More...
|
|
__hostdev__ FloatType | stdDeviation () const |
| Return a const reference to the standard deviation of all the active values encoded in this leaf node. More...
|
|
__hostdev__ uint8_t | flags () const |
|
__hostdev__ CoordT | origin () const |
| Return the origin in index space of this leaf node. More...
|
|
__hostdev__ void | localToGlobalCoord (Coord &ijk) const |
| Converts (in place) a local index coordinate to a global index coordinate. More...
|
|
__hostdev__ CoordT | offsetToGlobalCoord (uint32_t n) const |
|
__hostdev__ BBox< CoordT > | bbox () const |
| Return the bounding box in index space of active values in this leaf node. More...
|
|
__hostdev__ uint64_t | memUsage () const |
| return memory usage in bytes for the leaf node More...
|
|
| LeafNode ()=delete |
| This class cannot be constructed or deleted. More...
|
|
| LeafNode (const LeafNode &)=delete |
|
LeafNode & | operator= (const LeafNode &)=delete |
|
| ~LeafNode ()=delete |
|
__hostdev__ ValueType | getValue (uint32_t offset) const |
| Return the voxel value at the given offset. More...
|
|
__hostdev__ ValueType | getValue (const CoordT &ijk) const |
| Return the voxel value at the given coordinate. More...
|
|
__hostdev__ ValueType | getFirstValue () const |
| Return the first value in this leaf node. More...
|
|
__hostdev__ ValueType | getLastValue () const |
| Return the last value in this leaf node. More...
|
|
__hostdev__ void | setValue (const CoordT &ijk, const ValueType &v) |
| Sets the value at the specified location and activate its state. More...
|
|
__hostdev__ void | setValueOnly (uint32_t offset, const ValueType &v) |
| Sets the value at the specified location but leaves its state unchanged. More...
|
|
__hostdev__ void | setValueOnly (const CoordT &ijk, const ValueType &v) |
|
__hostdev__ bool | isActive (const CoordT &ijk) const |
| Return true if the voxel value at the given coordinate is active. More...
|
|
__hostdev__ bool | isActive (uint32_t n) const |
|
__hostdev__ bool | isActive () const |
| Return true if any of the voxel value are active in this leaf node. More...
|
|
__hostdev__ bool | hasBBox () const |
|
__hostdev__ bool | probeValue (const CoordT &ijk, ValueType &v) const |
| Return true if the voxel value at the given coordinate is active and updates v with the value. More...
|
|
__hostdev__ const LeafNode * | probeLeaf (const CoordT &) const |
|
__hostdev__ bool | updateBBox () |
| Updates the local bounding box of active voxels in this node. Return true if bbox was updated. More...
|
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | get (const CoordType &ijk, ArgsT &&...args) const |
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | get (const uint32_t n, ArgsT &&...args) const |
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | set (const CoordType &ijk, ArgsT &&...args) |
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | set (const uint32_t n, ArgsT &&...args) |
|
template<typename BuildT, typename CoordT = Coord, template< uint32_t > class MaskT = Mask, uint32_t Log2Dim = 3>
class nanovdb::LeafNode< BuildT, CoordT, MaskT, Log2Dim >
Leaf nodes of the VDB tree. (defaults to 8x8x8 = 512 voxels)
Definition at line 6013 of file NanoVDB.h.
template<typename BuildT, typename CoordT = Coord, template< uint32_t > class MaskT = Mask, uint32_t Log2Dim = 3>
Return the dimension, in index space, of this leaf node (typically 8 as for openvdb leaf nodes!)
Definition at line 6207 of file NanoVDB.h.
template<typename ValueT , typename CoordT , template< uint32_t > class MaskT, uint32_t LOG2DIM>
Updates the local bounding box of active voxels in this node. Return true if bbox was updated.
- Warning
- It assumes that the origin and value mask have already been set.
This method is based on few (intrinsic) bit operations and hence is relatively fast. However, it should only only be called if either the value mask has changed or if the active bounding box is still undefined. e.g. during construction of this node.
Definition at line 6387 of file NanoVDB.h.
template<typename BuildT, typename CoordT = Coord, template< uint32_t > class MaskT = Mask, uint32_t Log2Dim = 3>
template<typename , int , int , int >