OpenVDB  0.104.0
Public Types | Public Member Functions | List of all members
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 boost::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
 
LeafNodeTypetouchLeaf (const Coord &xyz)
 
LeafNodeTypeprobeLeaf (const Coord &xyz)
 
const LeafNodeTypeprobeConstLeaf (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)
 
OPENVDB_DEPRECATED const
ValueType
newGetValue (const Coord &xyz)
 
OPENVDB_DEPRECATED const
ValueType
getValue (const Coord &xyz, bool &state, int &level)
 
template<bool State, bool Level>
OPENVDB_DEPRECATED const
ValueType
probe (const Coord &xyz, bool &state, int &level)
 
template<typename ValueProbeType >
OPENVDB_DEPRECATED const
ValueType
probe (const Coord &xyz, ValueProbeType &p)
 
OPENVDB_DEPRECATED void newSetValue (const Coord &xyz, const ValueType &value)
 
void setValue (const Coord &xyz, const ValueType &value)
 
void setValueOnly (const Coord &xyz, const ValueType &value)
 
void setValueOn (const Coord &xyz, const ValueType &value)
 
void setValueOnSum (const Coord &xyz, const ValueType &value)
 
void setValueOff (const Coord &xyz, const ValueType &value)
 
void setActiveState (const Coord &xyz, bool on)
 

Detailed Description

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

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

Member Typedef Documentation

typedef RootNodeType::LeafNodeType LeafNodeType
typedef boost::mpl::front<NodeVecT>::type RootNodeType
typedef RootNodeType::ValueType ValueType

Constructor & Destructor Documentation

CacheItem ( TreeCacheT &  parent)
inline
CacheItem ( TreeCacheT &  parent,
const CacheItem< TreeCacheT, NodeVecT, true > &  other 
)
inline

Member Function Documentation

void clear ( )
inline
CacheItem& copy ( TreeCacheT &  parent,
const CacheItem< TreeCacheT, NodeVecT, true > &  other 
)
inline
void erase ( const RootNodeType )
inline
void getNode ( RootNodeType *&  node)
inline
void getNode ( const RootNodeType *&  node) const
inline
const ValueType& getValue ( const Coord xyz)
inline
OPENVDB_DEPRECATED const ValueType& getValue ( const Coord xyz,
bool &  state,
int &  level 
)
inline
int getValueDepth ( const Coord xyz)
inline
void insert ( const Coord ,
const RootNodeType root 
)
inline
void insert ( const Coord ,
const OtherNodeType *   
)
inline
bool isCached ( const Coord xyz) const
inline
bool isValueOn ( const Coord xyz)
inline
bool isVoxel ( const Coord xyz)
inline
OPENVDB_DEPRECATED const ValueType& newGetValue ( const Coord xyz)
inline
OPENVDB_DEPRECATED void newSetValue ( const Coord xyz,
const ValueType value 
)
inline
OPENVDB_DEPRECATED const ValueType& probe ( const Coord xyz,
bool &  state,
int &  level 
)
inline
OPENVDB_DEPRECATED const ValueType& probe ( const Coord xyz,
ValueProbeType &  p 
)
inline
const LeafNodeType* probeConstLeaf ( const Coord xyz)
inline
LeafNodeType* probeLeaf ( const Coord xyz)
inline
bool probeValue ( const Coord xyz,
ValueType value 
)
inline
void setActiveState ( const Coord xyz,
bool  on 
)
inline
void setValue ( const Coord xyz,
const ValueType value 
)
inline
void setValueOff ( const Coord xyz,
const ValueType value 
)
inline
void setValueOn ( const Coord xyz,
const ValueType value 
)
inline
void setValueOnly ( const Coord xyz,
const ValueType value 
)
inline
void setValueOnSum ( const Coord xyz,
const ValueType value 
)
inline
LeafNodeType* touchLeaf ( const Coord xyz)
inline

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