HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 > Class Template Reference

Value accessor with three levels of node caching. More...

#include <ValueAccessor.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >:

Public Types

typedef _TreeType TreeType
 
typedef TreeType::ValueType ValueType
 
typedef TreeType::RootNodeType RootNodeT
 
typedef TreeType::LeafNodeType LeafNodeT
 
typedef ValueAccessorBase
< TreeType, IsSafe > 
BaseT
 
typedef RootNodeT::NodeChainType InvTreeT
 
typedef hboost::mpl::at
< InvTreeT, hboost::mpl::int_
< L0 > >::type 
NodeT0
 
typedef hboost::mpl::at
< InvTreeT, hboost::mpl::int_
< L1 > >::type 
NodeT1
 
typedef hboost::mpl::at
< InvTreeT, hboost::mpl::int_
< L2 > >::type 
NodeT2
 

Public Member Functions

 HBOOST_STATIC_ASSERT (_TreeType::DEPTH >=4)
 
 HBOOST_STATIC_ASSERT (L0< L1 &&L1< L2 &&L2< _TreeType::RootNodeType::LEVEL)
 
 ValueAccessor3 (TreeType &tree)
 Constructor from a tree. More...
 
 ValueAccessor3 (const ValueAccessor3 &other)
 Copy constructor. More...
 
ValueAccessor3operator= (const ValueAccessor3 &other)
 Asignment operator. More...
 
virtual ~ValueAccessor3 ()
 Virtual destructor. More...
 
bool isCached (const Coord &xyz) const
 
const ValueTypegetValue (const Coord &xyz) const
 Return the value of the voxel at the given coordinates. More...
 
bool isValueOn (const Coord &xyz) const
 Return the active state of the voxel at the given coordinates. More...
 
bool probeValue (const Coord &xyz, ValueType &value) const
 Return the active state of the voxel as well as its value. More...
 
int getValueDepth (const Coord &xyz) const
 
bool isVoxel (const Coord &xyz) const
 
void setValueOnly (const Coord &xyz, const ValueType &value)
 Set the value of the voxel at the given coordinate but preserves its active state. More...
 
void setValueOff (const Coord &xyz, const ValueType &value)
 Set the value of the voxel at the given coordinates and mark the voxel as inactive. 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 setActiveState (const Coord &xyz, bool on=true)
 Set the active state of the voxel at the given coordinates without changing its value. More...
 
void setValueOn (const Coord &xyz)
 Mark the voxel at the given coordinates as active without changing its value. More...
 
void setValueOff (const Coord &xyz)
 Mark the voxel at the given coordinates as inactive without changing its value. More...
 
template<typename NodeT >
NodeT * getNode ()
 Return the cached node of type NodeType. [Mainly for internal use]. More...
 
template<typename NodeT >
void insertNode (const Coord &xyz, NodeT &node)
 
template<typename NodeT >
void eraseNode ()
 
void addLeaf (LeafNodeT *leaf)
 Add the specified leaf to this tree, possibly creating a child branch in the process. If the leaf node already exists, replace it. More...
 
void addTile (Index level, const Coord &xyz, const ValueType &value, bool state)
 Add a tile at the specified tree level that contains voxel (x, y, z), possibly deleting existing nodes or creating new nodes in the process. More...
 
LeafNodeTtouchLeaf (const Coord &xyz)
 
template<typename NodeT >
NodeT * probeNode (const Coord &xyz)
 
LeafNodeTprobeLeaf (const Coord &xyz)
 
template<typename NodeT >
const NodeT * probeConstNode (const Coord &xyz) const
 
const LeafNodeTprobeConstLeaf (const Coord &xyz) const
 
const LeafNodeTprobeLeaf (const Coord &xyz) const
 
virtual void clear ()
 Remove all the cached nodes and invalidate the corresponding hash-keys. More...
 
void setValue (const Coord &xyz, const ValueType &value)
 Set the value of the voxel at the given coordinates and mark the voxel as active. More...
 
void setValueOn (const Coord &xyz, const ValueType &value)
 Set the value of the voxel at the given coordinates and mark the voxel as active. More...
 
- Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessorBase< _TreeType, IsSafe >
 ValueAccessorBase (_TreeType &tree)
 
 ValueAccessorBase (const ValueAccessorBase &other)
 
virtual ~ValueAccessorBase ()
 
_TreeType * getTree () const
 Return a pointer to the tree associated with this accessor. More...
 
_TreeType & tree () const
 Return a reference to the tree associated with this accessor. More...
 
ValueAccessorBaseoperator= (const ValueAccessorBase &other)
 

Static Public Member Functions

static Index numCacheLevels ()
 Return the number of cache levels employed by this ValueAccessor. More...
 
- Static Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessorBase< _TreeType, IsSafe >
static bool isSafe ()
 Return true if this accessor is safe, i.e. registered by the tree from which it is constructed. Un-registered accessors can in rare cases be faster because it avoids the (small) overhead of registration, but they are unsafe if the tree is modified. So unless you're an expert it is highly recommended to set IsSafe = true (which is the default). More...
 

Friends

template<typename >
class RootNode
 
template<typename , Index >
class InternalNode
 
template<typename , Index >
class LeafNode
 
template<typename >
class Tree
 

Additional Inherited Members

- Static Public Attributes inherited from openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessorBase< _TreeType, IsSafe >
static const bool IsConstTree
 
- Protected Attributes inherited from openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessorBase< _TreeType, IsSafe >
_TreeType * mTree
 

Detailed Description

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
class openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >

Value accessor with three levels of node caching.

The node cache levels are specified by L0, L1, and L2 with the default values 0, 1 and 2 (defined in the forward declaration) corresponding to a LeafNode, its parent InternalNode, and its parent InternalNode. Since the default configuration of all typed trees and grids, e.g., FloatTree or FloatGrid, has a depth of four, this value accessor is the one used by default.

Note
This class is for experts only and should rarely be used directly. Instead use ValueAccessor with its default template arguments

Definition at line 93 of file ValueAccessor.h.

Member Typedef Documentation

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef ValueAccessorBase<TreeType, IsSafe> openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::BaseT

Definition at line 2129 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef RootNodeT::NodeChainType openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::InvTreeT

Definition at line 2130 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef TreeType::LeafNodeType openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::LeafNodeT

Definition at line 2128 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef hboost::mpl::at<InvTreeT, hboost::mpl::int_<L0> >::type openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::NodeT0

Definition at line 2131 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef hboost::mpl::at<InvTreeT, hboost::mpl::int_<L1> >::type openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::NodeT1

Definition at line 2132 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef hboost::mpl::at<InvTreeT, hboost::mpl::int_<L2> >::type openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::NodeT2

Definition at line 2133 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef TreeType::RootNodeType openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::RootNodeT

Definition at line 2127 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef _TreeType openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::TreeType

Definition at line 2125 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
typedef TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::ValueType

Definition at line 2126 of file ValueAccessor.h.

Constructor & Destructor Documentation

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::ValueAccessor3 ( TreeType tree)
inline

Constructor from a tree.

Definition at line 2136 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::ValueAccessor3 ( const ValueAccessor3< TreeType, IsSafe, L0, L1, L2 > &  other)
inline

Copy constructor.

Definition at line 2142 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
virtual openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::~ValueAccessor3 ( )
inlinevirtual

Virtual destructor.

Definition at line 2158 of file ValueAccessor.h.

Member Function Documentation

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::addLeaf ( LeafNodeT leaf)
inline

Add the specified leaf to this tree, possibly creating a child branch in the process. If the leaf node already exists, replace it.

Definition at line 2409 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::addTile ( Index  level,
const Coord &  xyz,
const ValueType value,
bool  state 
)
inline

Add a tile at the specified tree level that contains voxel (x, y, z), possibly deleting existing nodes or creating new nodes in the process.

Definition at line 2425 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
virtual void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::clear ( void  )
inlinevirtual

Remove all the cached nodes and invalidate the corresponding hash-keys.

Implements openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessorBase< _TreeType, IsSafe >.

Definition at line 2551 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename NodeT >
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::eraseNode ( )
inline

If a node of the given type exists in the cache, remove it, so that isCached(xyz) returns false for any voxel (x, y, z) contained in that node. [Mainly for internal use]

Definition at line 2401 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename NodeT >
NodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::getNode ( void  )
inline

Return the cached node of type NodeType. [Mainly for internal use].

Definition at line 2385 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
const ValueType& openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::getValue ( const Coord &  xyz) const
inline

Return the value of the voxel at the given coordinates.

Definition at line 2169 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
int openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::getValueDepth ( const Coord &  xyz) const
inline

Return the tree depth (0 = root) at which the value of voxel (x, y, z) resides, or -1 if (x, y, z) isn't explicitly represented in the tree (i.e., if it is implicitly a background voxel).

Definition at line 2222 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::HBOOST_STATIC_ASSERT ( _TreeType::DEPTH >=  4)
template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::HBOOST_STATIC_ASSERT ( )
template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename NodeT >
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::insertNode ( const Coord &  xyz,
NodeT &  node 
)
inline

Cache the given node, which should lie along the path from the root node to the node containing voxel (x, y, z). [Mainly for internal use]

Definition at line 2395 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
bool openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::isCached ( const Coord &  xyz) const
inline

Return true if any of the nodes along the path to the given voxel have been cached.

Definition at line 2162 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
bool openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::isValueOn ( const Coord &  xyz) const
inline

Return the active state of the voxel at the given coordinates.

Definition at line 2186 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
bool openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::isVoxel ( const Coord &  xyz) const
inline

Return true if the value of voxel (x, y, z) resides at the leaf level of the tree, i.e., if it is not a tile value.

Definition at line 2240 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename ModifyOp >
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::modifyValue ( const Coord &  xyz,
const ModifyOp &  op 
)
inline

Apply a functor to the value of the voxel at the given coordinates and mark the voxel as active.

See Tree::modifyValue() for details.

Definition at line 2321 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename ModifyOp >
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::modifyValueAndActiveState ( const Coord &  xyz,
const ModifyOp &  op 
)
inline

Apply a functor to the voxel at the given coordinates.

See Tree::modifyValueAndActiveState() for details.

Definition at line 2342 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
static Index openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::numCacheLevels ( )
inlinestatic

Return the number of cache levels employed by this ValueAccessor.

Definition at line 2155 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
ValueAccessor3& openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::operator= ( const ValueAccessor3< TreeType, IsSafe, L0, L1, L2 > &  other)
inline

Asignment operator.

Definition at line 2145 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
const LeafNodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeConstLeaf ( const Coord &  xyz) const
inline
Returns
a const pointer to the leaf node that contains voxel (x, y, z) and if it doesn't exist, return nullptr.

Definition at line 2544 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename NodeT >
const NodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeConstNode ( const Coord &  xyz) const
inline
Returns
a const pointer to the node of the specified type that contains voxel (x, y, z) and if it doesn't exist, return nullptr.

Definition at line 2507 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
LeafNodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeLeaf ( const Coord &  xyz)
inline
Returns
a pointer to the leaf node that contains voxel (x, y, z) and if it doesn't exist, return nullptr.

Definition at line 2502 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
const LeafNodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeLeaf ( const Coord &  xyz) const
inline

Definition at line 2548 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename NodeT >
NodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeNode ( const Coord &  xyz)
inline
Returns
a pointer to the node of the specified type that contains voxel (x, y, z) and if it doesn't exist, return nullptr.

Definition at line 2464 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
bool openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::probeValue ( const Coord &  xyz,
ValueType value 
) const
inline

Return the active state of the voxel as well as its value.

Definition at line 2203 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setActiveState ( const Coord &  xyz,
bool  on = true 
)
inline

Set the active state of the voxel at the given coordinates without changing its value.

Definition at line 2361 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValue ( const Coord &  xyz,
const ValueType value 
)
inline

Set the value of the voxel at the given coordinates and mark the voxel as active.

Definition at line 2259 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValueOff ( const Coord &  xyz,
const ValueType value 
)
inline

Set the value of the voxel at the given coordinates and mark the voxel as inactive.

Definition at line 2299 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValueOff ( const Coord &  xyz)
inline

Mark the voxel at the given coordinates as inactive without changing its value.

Definition at line 2381 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValueOn ( const Coord &  xyz,
const ValueType value 
)
inline

Set the value of the voxel at the given coordinates and mark the voxel as active.

Definition at line 2276 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValueOn ( const Coord &  xyz)
inline

Mark the voxel at the given coordinates as active without changing its value.

Definition at line 2379 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
void openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::setValueOnly ( const Coord &  xyz,
const ValueType value 
)
inline

Set the value of the voxel at the given coordinate but preserves its active state.

Definition at line 2280 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
LeafNodeT* openvdb::OPENVDB_VERSION_NAME::tree::ValueAccessor3< TreeType, IsSafe, L0, L1, L2 >::touchLeaf ( const Coord &  xyz)
inline
Returns
the leaf node that contains voxel (x, y, z) and if it doesn't exist, create it, but preserve the values and active states of all voxels.

Use this method to preallocate a static tree topology over which to safely perform multithreaded processing.

Definition at line 2445 of file ValueAccessor.h.

Friends And Related Function Documentation

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename , Index >
friend class InternalNode
friend

Definition at line 2564 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename , Index >
friend class LeafNode
friend

Definition at line 2565 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename >
friend class RootNode
friend

Definition at line 2563 of file ValueAccessor.h.

template<typename TreeType, bool IsSafe = true, Index L0 = 0, Index L1 = 1, Index L2 = 2>
template<typename >
friend class Tree
friend

Definition at line 2567 of file ValueAccessor.h.


The documentation for this class was generated from the following file: