HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true > Class Template Reference

The tail of a compile-time list of cached node pointers, ordered from LeafNode to RootNode. More...

#include <ValueAccessor.h>

Public Types

using RootNodeType = typename hboost::mpl::front< NodeVecT >::type
 
using ValueType = typename RootNodeType::ValueType
 
using LeafNodeType = typename RootNodeType::LeafNodeType
 

Public Member Functions

 CacheItem (TreeCacheT &parent)
 
 CacheItem (TreeCacheT &parent, const CacheItem &other)
 
CacheItemcopy (TreeCacheT &parent, const CacheItem &other)
 
bool isCached (const Coord &xyz) const
 
void insert (const Coord &, const RootNodeType *root)
 
template<typename OtherNodeType >
void insert (const Coord &, const OtherNodeType *)
 
void erase (const RootNodeType *)
 
void clear ()
 
void getNode (RootNodeType *&node)
 
void getNode (const RootNodeType *&node) const
 
void addLeaf (LeafNodeType *leaf)
 
void addTile (Index level, const Coord &xyz, const ValueType &value, bool state)
 
LeafNodeTypetouchLeaf (const Coord &xyz)
 
LeafNodeTypeprobeLeaf (const Coord &xyz)
 
const LeafNodeTypeprobeConstLeaf (const Coord &xyz)
 
template<typename NodeType >
NodeType * probeNode (const Coord &xyz)
 
template<typename NodeType >
const NodeType * probeConstNode (const Coord &xyz)
 
int getValueDepth (const Coord &xyz)
 
bool isValueOn (const Coord &xyz)
 
bool probeValue (const Coord &xyz, ValueType &value)
 
bool isVoxel (const Coord &xyz)
 
const ValueTypegetValue (const Coord &xyz)
 
void setValue (const Coord &xyz, const ValueType &value)
 
void setValueOnly (const Coord &xyz, const ValueType &value)
 
void setValueOn (const Coord &xyz, const ValueType &value)
 
template<typename ModifyOp >
void modifyValue (const Coord &xyz, const ModifyOp &op)
 
template<typename ModifyOp >
void modifyValueAndActiveState (const Coord &xyz, const ModifyOp &op)
 
void setValueOff (const Coord &xyz, const ValueType &value)
 
void setActiveState (const Coord &xyz, bool on)
 

Detailed Description

template<typename TreeCacheT, typename NodeVecT>
class openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >

The tail of a compile-time list of cached node pointers, ordered from LeafNode to RootNode.

Definition at line 864 of file ValueAccessor.h.

Member Typedef Documentation

template<typename TreeCacheT , typename NodeVecT >
using openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::LeafNodeType = typename RootNodeType::LeafNodeType

Definition at line 869 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
using openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::RootNodeType = typename hboost::mpl::front<NodeVecT>::type

Definition at line 867 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
using openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::ValueType = typename RootNodeType::ValueType

Definition at line 868 of file ValueAccessor.h.

Constructor & Destructor Documentation

template<typename TreeCacheT , typename NodeVecT >
openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::CacheItem ( TreeCacheT &  parent)
inline

Definition at line 871 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::CacheItem ( TreeCacheT &  parent,
const CacheItem< TreeCacheT, NodeVecT, true > &  other 
)
inline

Definition at line 872 of file ValueAccessor.h.

Member Function Documentation

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::addLeaf ( LeafNodeType leaf)
inline

Definition at line 900 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::addTile ( Index  level,
const Coord &  xyz,
const ValueType value,
bool  state 
)
inline

Definition at line 907 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::clear ( void  )
inline

Definition at line 891 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
CacheItem& openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::copy ( TreeCacheT &  parent,
const CacheItem< TreeCacheT, NodeVecT, true > &  other 
)
inline

Definition at line 874 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::erase ( const RootNodeType )
inline

Definition at line 889 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::getNode ( RootNodeType *&  node)
inline

Definition at line 893 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::getNode ( const RootNodeType *&  node) const
inline

Definition at line 898 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
const ValueType& openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::getValue ( const Coord &  xyz)
inline

Definition at line 972 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
int openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::getValueDepth ( const Coord &  xyz)
inline

Definition at line 950 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::insert ( const Coord &  ,
const RootNodeType root 
)
inline

Definition at line 883 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
template<typename OtherNodeType >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::insert ( const Coord &  ,
const OtherNodeType *   
)
inline

Definition at line 887 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
bool openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::isCached ( const Coord &  xyz) const
inline

Definition at line 881 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
bool openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::isValueOn ( const Coord &  xyz)
inline

Definition at line 955 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
bool openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::isVoxel ( const Coord &  xyz)
inline

Definition at line 966 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
template<typename ModifyOp >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::modifyValue ( const Coord &  xyz,
const ModifyOp &  op 
)
inline

Definition at line 993 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
template<typename ModifyOp >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::modifyValueAndActiveState ( const Coord &  xyz,
const ModifyOp &  op 
)
inline

Definition at line 1001 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
const LeafNodeType* openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::probeConstLeaf ( const Coord &  xyz)
inline

Definition at line 928 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
template<typename NodeType >
const NodeType* openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::probeConstNode ( const Coord &  xyz)
inline

Definition at line 944 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
LeafNodeType* openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::probeLeaf ( const Coord &  xyz)
inline

Definition at line 921 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
template<typename NodeType >
NodeType* openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::probeNode ( const Coord &  xyz)
inline

Definition at line 935 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
bool openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::probeValue ( const Coord &  xyz,
ValueType value 
)
inline

Definition at line 961 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::setActiveState ( const Coord &  xyz,
bool  on 
)
inline

Definition at line 1015 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::setValue ( const Coord &  xyz,
const ValueType value 
)
inline

Definition at line 978 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::setValueOff ( const Coord &  xyz,
const ValueType value 
)
inline

Definition at line 1008 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::setValueOn ( const Coord &  xyz,
const ValueType value 
)
inline

Definition at line 990 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
void openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::setValueOnly ( const Coord &  xyz,
const ValueType value 
)
inline

Definition at line 984 of file ValueAccessor.h.

template<typename TreeCacheT , typename NodeVecT >
LeafNodeType* openvdb::OPENVDB_VERSION_NAME::tree::CacheItem< TreeCacheT, NodeVecT, true >::touchLeaf ( const Coord &  xyz)
inline

Definition at line 914 of file ValueAccessor.h.


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