OpenVDB
11.0.0
|
#include <nanovdb/util/GridBuilder.h>
Inherits Tree< BuildT >.
Public Types | |
using | BuildType = BuildT |
using | ValueType = typename BuildToValueMap< BuildT >::type |
using | TreeType = Tree< BuildT > |
using | Node0 = build::LeafNode< BuildT > |
using | Node1 = build::InternalNode< Node0 > |
using | Node2 = build::InternalNode< Node1 > |
using | RootNodeType = build::RootNode< Node2 > |
using | LeafNodeType = typename RootNodeType::LeafNodeType |
Public Member Functions | |
Grid (const ValueType &background, const std::string &name="", GridClass gClass=GridClass::Unknown) | |
TreeType & | tree () |
const GridType & | gridType () const |
const GridClass & | gridClass () const |
const Map & | map () const |
void | setTransform (double scale=1.0, const Vec3d &translation=Vec3d(0.0)) |
const std::string & | gridName () const |
const std::string & | getName () const |
void | setName (const std::string &name) |
template<typename Func > | |
void | operator() (const Func &func, const CoordBBox &bbox, ValueType delta=ValueType(0)) |
Sets grids values in domain of the bbox to those returned by the specified func with the expected signature [](const Coord&)->ValueType. More... | |
RootNodeType & | root () |
ValueType | getValue (const Coord &ijk) const |
ValueType | getValue (int i, int j, int k) const |
void | setValue (const Coord &ijk, const ValueType &value) |
std::array< size_t, 3 > | nodeCount () const |
ValueAccessor< BuildT > | getAccessor () |
regular accessor for thread-safe reading and non-thread-safe writing More... | |
WriteAccessor | getWriteAccessor () |
special accessor for thread-safe writing only More... | |
Public Attributes | |
GridClass | mGridClass |
GridType | mGridType |
Map | mMap |
std::string | mName |
RootNodeType | mRoot |
std::mutex | mMutex |
using BuildType = BuildT |
|
inherited |
using Node0 = build::LeafNode<BuildT> |
using Node1 = build::InternalNode<Node0> |
using Node2 = build::InternalNode<Node1> |
using RootNodeType = build::RootNode<Node2> |
using ValueType = typename BuildToValueMap<BuildT>::type |
|
inline |
|
inlineinherited |
regular accessor for thread-safe reading and non-thread-safe writing
|
inline |
|
inlineinherited |
|
inlineinherited |
special accessor for thread-safe writing only
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Sets grids values in domain of the bbox to those returned by the specified func with the expected signature [](const Coord&)->ValueType.
func | Functor used to evaluate the grid values in the bbox |
bbox | Coordinate bounding-box over which the grid values will be set. |
delta | Specifies a lower threshold value for rendering (optional). Typically equals the voxel size for level sets and otherwise it's zero. |
|
inlineinherited |
|
inline |
|
inline |
GridClass mGridClass |
GridType mGridType |
Map mMap |
|
inherited |
std::string mName |
|
inherited |