HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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

typedef hboost::mpl::front
< NodeVecT >::type 
RootNodeType
 
typedef RootNodeType::ValueType ValueType
 
typedef RootNodeType::LeafNodeType 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 871 of file ValueAccessor.h.

Member Typedef Documentation

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

Definition at line 876 of file ValueAccessor.h.

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

Definition at line 874 of file ValueAccessor.h.

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

Definition at line 875 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 878 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 879 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 907 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 914 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 898 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 881 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 896 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 900 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 905 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 978 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 956 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 890 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 894 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 888 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 961 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 972 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 999 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 1007 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 935 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 950 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 928 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 942 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 967 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 1021 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 984 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 1014 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 996 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 990 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 921 of file ValueAccessor.h.


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