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 872 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 877 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 875 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 876 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 879 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 880 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 908 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 915 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 899 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 882 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 897 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 901 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 906 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 980 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 958 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 891 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 895 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 889 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 963 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 974 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 1001 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 1009 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 936 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 952 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 929 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 943 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 969 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 1023 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 986 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 1016 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 998 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 992 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 922 of file ValueAccessor.h.


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