HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType > Class Template Reference

#include <MultiResGrid.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >:

Classes

struct  MaskOp
 
struct  ProlongateOp
 
struct  RestrictOp
 

Public Types

typedef hboost::shared_ptr
< MultiResGrid
Ptr
 
typedef hboost::shared_ptr
< const MultiResGrid
ConstPtr
 
typedef TreeType::ValueType ValueType
 
typedef TreeType::ValueOnCIter ValueOnCIter
 
typedef TreeType::ValueOnIter ValueOnIter
 
typedef TreeType::Ptr TreePtr
 
typedef TreeType::ConstPtr ConstTreePtr
 
typedef Grid< TreeType >::Ptr GridPtr
 
typedef Grid< TreeType >::ConstPtr ConstGridPtr
 
- Public Types inherited from openvdb::OPENVDB_VERSION_NAME::MetaMap
using Ptr = SharedPtr< MetaMap >
 
using ConstPtr = SharedPtr< const MetaMap >
 
using MetadataMap = std::map< Name, Metadata::Ptr >
 
using MetaIterator = MetadataMap::iterator
 
using ConstMetaIterator = MetadataMap::const_iterator
 

Public Member Functions

 MultiResGrid (size_t levels, ValueType background, double voxelSize=1.0)
 Constructor of empty grids. More...
 
 MultiResGrid (size_t levels, const Grid< TreeType > &grid, bool useInjection=false)
 Given an initial high-resolution grid this constructor generates all the coarser grids by means of restriction. More...
 
 MultiResGrid (size_t levels, GridPtr grid, bool useInjection=false)
 Given an initial high-resolution grid this constructor generates all the coarser grids by means of restriction. More...
 
size_t numLevels () const
 Return the number of levels, i.e. trees, in this MultiResGrid. More...
 
size_t coarsestLevel () const
 Return the level of the coarsest grid, i.e. numLevels()-1. More...
 
TreeType & tree (size_t level)
 Return a reference to the tree at the specified level. More...
 
const TreeType & constTree (size_t level) const
 Return a const reference to the tree at the specified level. More...
 
TreePtr treePtr (size_t level)
 Return a shared pointer to the tree at the specified level. More...
 
ConstTreePtr constTreePtr (size_t level) const
 Return a const shared pointer to the tree at the specified level. More...
 
TreeType & finestTree ()
 Return a reference to the tree at the finest level. More...
 
const TreeType & finestConstTree () const
 Return a const reference to the tree at the finest level. More...
 
TreePtr finestTreePtr ()
 Return a shared pointer to the tree at the finest level. More...
 
ConstTreePtr finestConstTreePtr () const
 Return a const shared pointer to the tree at the finest level. More...
 
TreeType & coarsestTree ()
 Return a reference to the tree at the coarsest level. More...
 
const TreeType & coarsestConstTree () const
 Return a const reference to the tree at the coarsest level. More...
 
TreePtr coarsestTreePtr ()
 Return a shared pointer to the tree at the coarsest level. More...
 
ConstTreePtr coarsestConstTreePtr () const
 Return a const shared pointer to the tree at the coarsest level. More...
 
GridPtr grid (size_t level)
 Return a shared pointer to the grid at the specified integer level. More...
 
ConstGridPtr grid (size_t level) const
 Return a const shared pointer to the grid at the specified level. More...
 
template<Index Order>
GridPtr createGrid (float level, size_t grainSize=1) const
 Return a shared pointer to a new grid at the specified floating-point level. More...
 
GridPtrVecPtr grids ()
 Return a shared pointer to a vector of all the base grids in this instance of the MultiResGrid. More...
 
GridCPtrVecPtr grids () const
 Return a const shared pointer to a vector of all the base grids in this instance of the MultiResGrid. More...
 
template<Index Order>
ValueType sampleValue (const Coord &ijk, double level) const
 Return the value at the specified integer coordinate position and level using interpolation of the specified order. More...
 
template<Index Order>
ValueType sampleValue (const Vec3R &xyz, double level) const
 Return the value at the specified floating-point coordinate position and level using interpolation of the specified order. More...
 
ValueType prolongateVoxel (const Coord &coords, const size_t level) const
 Return the value at coordinate location in level tree from the coarser tree at level+1 using trilinear interpolation. More...
 
void prolongateActiveVoxels (size_t destlevel, size_t grainSize=1)
 
ValueType restrictVoxel (Coord ijk, const size_t level, bool useInjection=false) const
 
void restrictActiveVoxels (size_t destlevel, size_t grainSize=1)
 
void print (std::ostream &=std::cout, int verboseLevel=1) const
 Output a human-readable description of this MultiResGrid. More...
 
std::string getName () const
 Return a string with the name of this MultiResGrid. More...
 
void setName (const std::string &name)
 Set the name of this MultiResGrid. More...
 
GridClass getGridClass () const
 Return the class of volumetric data (level set, fog volume, etc.) stored in this grid. More...
 
void setGridClass (GridClass cls)
 Specify the class of volumetric data (level set, fog volume, etc.) stored in this grid. More...
 
void clearGridClass ()
 Remove the setting specifying the class of this grid's volumetric data. More...
 
template<Index Order>
Grid< TreeType >::Ptr createGrid (float level, size_t grainSize) const
 
template<Index Order>
TreeType::ValueType sampleValue (const Coord &in_ijk, size_t in_level, size_t out_level) const
 
template<Index Order>
TreeType::ValueType sampleValue (const Vec3R &in_xyz, size_t in_level, size_t out_level) const
 
template<Index Order>
TreeType::ValueType sampleValue (const Coord &ijk, double level) const
 
template<Index Order>
TreeType::ValueType sampleValue (const Vec3R &xyz, double level) const
 
math::Transformtransform ()
 Return a reference to the finest grid's transform, which might be shared with other grids. More...
 
const math::Transformtransform () const
 Return a reference to the finest grid's transform, which might be shared with other grids. More...
 
const math::TransformconstTransform () const
 Return a reference to the finest grid's transform, which might be shared with other grids. More...
 
template<Index Order>
ValueType sampleValue (const Coord &in_ijk, size_t in_level, size_t out_level) const
 Return the value at the specified coordinate position using interpolation of the specified order into the tree at the out_level. More...
 
template<Index Order>
ValueType sampleValue (const Vec3R &in_ijk, size_t in_level, size_t out_level) const
 Return the value at the specified coordinate position using interpolation of the specified order into the tree at the out_level. More...
 
- Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::MetaMap
 MetaMap ()
 
 MetaMap (const MetaMap &other)
 
virtual ~MetaMap ()
 
MetaMap::Ptr copyMeta () const
 Return a copy of this map whose fields are shared with this map. More...
 
MetaMap::Ptr deepCopyMeta () const
 Return a deep copy of this map that shares no data with this map. More...
 
MetaMapoperator= (const MetaMap &)
 Assign a deep copy of another map to this map. More...
 
void readMeta (std::istream &)
 Unserialize metadata from the given stream. More...
 
void writeMeta (std::ostream &) const
 Serialize metadata to the given stream. More...
 
void insertMeta (const Name &, const Metadata &value)
 Insert a new metadata field or overwrite the value of an existing field. More...
 
void insertMeta (const MetaMap &)
 Deep copy all of the metadata fields from the given map into this map. More...
 
void removeMeta (const Name &)
 Remove the given metadata field if it exists. More...
 
template<typename T >
T & metaValue (const Name &)
 Return a reference to the value of type T stored in the given metadata field. More...
 
template<typename T >
const T & metaValue (const Name &) const
 
MetaIterator beginMeta ()
 
MetaIterator endMeta ()
 
ConstMetaIterator beginMeta () const
 
ConstMetaIterator endMeta () const
 
void clearMetadata ()
 
size_t metaCount () const
 
std::string str (const std::string &indent="") const
 Return a string describing this metadata map. Prefix each line with indent. More...
 
bool operator== (const MetaMap &other) const
 Return true if the given map is equivalent to this map. More...
 
bool operator!= (const MetaMap &other) const
 Return true if the given map is different from this map. More...
 
Metadata::Ptr operator[] (const Name &)
 Return a pointer to the metadata with the given name. If no such field exists, return a null pointer. More...
 
Metadata::ConstPtr operator[] (const Name &) const
 Return a pointer to the metadata with the given name. If no such field exists, return a null pointer. More...
 
template<typename T >
T::Ptr getMetadata (const Name &)
 Return a pointer to a TypedMetadata object of type T and with the given name. If no such field exists or if there is a type mismatch, return a null pointer. More...
 
template<typename T >
T::ConstPtr getMetadata (const Name &) const
 Return a pointer to a TypedMetadata object of type T and with the given name. If no such field exists or if there is a type mismatch, return a null pointer. More...
 

Static Public Member Functions

static size_t finestLevel ()
 Return the level of the finest grid (always 0) More...
 
static Vec3R xyz (const Coord &in_ijk, size_t in_level, size_t out_level)
 Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level. More...
 
static Vec3R xyz (const Vec3R &in_xyz, size_t in_level, size_t out_level)
 Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level. More...
 
static Vec3R xyz (const Vec3R &in_xyz, double in_level, double out_level)
 Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level. More...
 

Detailed Description

template<typename TreeType>
class openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >

Definition at line 81 of file MultiResGrid.h.

Member Typedef Documentation

template<typename TreeType >
typedef Grid<TreeType>::ConstPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ConstGridPtr

Definition at line 94 of file MultiResGrid.h.

template<typename TreeType >
typedef hboost::shared_ptr<const MultiResGrid> openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ConstPtr

Definition at line 86 of file MultiResGrid.h.

template<typename TreeType >
typedef TreeType::ConstPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ConstTreePtr

Definition at line 92 of file MultiResGrid.h.

template<typename TreeType >
typedef Grid<TreeType>::Ptr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::GridPtr

Definition at line 93 of file MultiResGrid.h.

template<typename TreeType >
typedef hboost::shared_ptr<MultiResGrid> openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::Ptr

Definition at line 85 of file MultiResGrid.h.

template<typename TreeType >
typedef TreeType::Ptr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::TreePtr

Definition at line 91 of file MultiResGrid.h.

template<typename TreeType >
typedef TreeType::ValueOnCIter openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ValueOnCIter

Definition at line 89 of file MultiResGrid.h.

template<typename TreeType >
typedef TreeType::ValueOnIter openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ValueOnIter

Definition at line 90 of file MultiResGrid.h.

template<typename TreeType >
typedef TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::ValueType

Definition at line 88 of file MultiResGrid.h.

Constructor & Destructor Documentation

template<typename TreeType >
openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::MultiResGrid ( size_t  levels,
ValueType  background,
double  voxelSize = 1.0 
)

Constructor of empty grids.

Parameters
levelsThe number of trees in this MultiResGrid
backgroundBackground value
voxelSizeSize of a (uniform voxel). Defaults to one.
Note
The multiple grids are all empty.

Definition at line 383 of file MultiResGrid.h.

template<typename TreeType >
openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::MultiResGrid ( size_t  levels,
const Grid< TreeType > &  grid,
bool  useInjection = false 
)

Given an initial high-resolution grid this constructor generates all the coarser grids by means of restriction.

Parameters
levelsThe number of trees in this MultiResGrid
gridHigh-resolution input grid
useInjectionUse restriction by injection, vs full-weighting. It defaults to false and should rarely be used.
Note
This constructor will perform a deep copy of the input grid and use it as the highest level grid.

Definition at line 393 of file MultiResGrid.h.

template<typename TreeType >
openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::MultiResGrid ( size_t  levels,
GridPtr  grid,
bool  useInjection = false 
)

Given an initial high-resolution grid this constructor generates all the coarser grids by means of restriction.

Parameters
levelsThe number of trees in this MultiResGrid
gridHigh-resolution input grid
useInjectionUse restriction by injection, vs full-weighting. It defaults to false and should rarely be used.
Note
This constructor will steal the input input grid and use it as the highest level grid. On output the grid is empty.

Definition at line 406 of file MultiResGrid.h.

Member Function Documentation

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::clearGridClass ( )
inline

Remove the setting specifying the class of this grid's volumetric data.

Definition at line 343 of file MultiResGrid.h.

template<typename TreeType >
const TreeType& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::coarsestConstTree ( ) const
inline

Return a const reference to the tree at the coarsest level.

Definition at line 177 of file MultiResGrid.h.

template<typename TreeType >
ConstTreePtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::coarsestConstTreePtr ( ) const
inline

Return a const shared pointer to the tree at the coarsest level.

Definition at line 183 of file MultiResGrid.h.

template<typename TreeType >
size_t openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::coarsestLevel ( ) const
inline

Return the level of the coarsest grid, i.e. numLevels()-1.

Definition at line 137 of file MultiResGrid.h.

template<typename TreeType >
TreeType& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::coarsestTree ( )
inline

Return a reference to the tree at the coarsest level.

Definition at line 174 of file MultiResGrid.h.

template<typename TreeType >
TreePtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::coarsestTreePtr ( )
inline

Return a shared pointer to the tree at the coarsest level.

Definition at line 180 of file MultiResGrid.h.

template<typename TreeType >
const math::Transform& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::constTransform ( ) const
inline

Return a reference to the finest grid's transform, which might be shared with other grids.

Note
Calling setTransform() on this grid invalidates all references previously returned by this method.
Warning
The transform is relative to the finest level (=0) grid!

Definition at line 227 of file MultiResGrid.h.

template<typename TreeType >
const TreeType & openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::constTree ( size_t  level) const
inline

Return a const reference to the tree at the specified level.

Parameters
levelThe level of the tree to be returned
Note
Level 0 is by definition the finest tree.

Definition at line 428 of file MultiResGrid.h.

template<typename TreeType >
TreeType::ConstPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::constTreePtr ( size_t  level) const
inline

Return a const shared pointer to the tree at the specified level.

Parameters
levelThe level of the tree to be returned
Note
Level 0 is by definition the finest tree.

Definition at line 444 of file MultiResGrid.h.

template<typename TreeType >
template<Index Order>
GridPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::createGrid ( float  level,
size_t  grainSize = 1 
) const

Return a shared pointer to a new grid at the specified floating-point level.

Parameters
levelFloating-point level of the grid to be returned
grainSizeGrain size for the multi-threading

Interpolation of the specified order is performed between the bracketing integer levels.

Note
Level 0 is by definition the finest grid.
template<typename TreeType >
template<Index Order>
Grid<TreeType>::Ptr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::createGrid ( float  level,
size_t  grainSize 
) const

Definition at line 476 of file MultiResGrid.h.

template<typename TreeType >
const TreeType& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::finestConstTree ( ) const
inline

Return a const reference to the tree at the finest level.

Definition at line 165 of file MultiResGrid.h.

template<typename TreeType >
ConstTreePtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::finestConstTreePtr ( ) const
inline

Return a const shared pointer to the tree at the finest level.

Definition at line 171 of file MultiResGrid.h.

template<typename TreeType >
static size_t openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::finestLevel ( )
inlinestatic

Return the level of the finest grid (always 0)

Definition at line 134 of file MultiResGrid.h.

template<typename TreeType >
TreeType& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::finestTree ( )
inline

Return a reference to the tree at the finest level.

Definition at line 162 of file MultiResGrid.h.

template<typename TreeType >
TreePtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::finestTreePtr ( )
inline

Return a shared pointer to the tree at the finest level.

Definition at line 168 of file MultiResGrid.h.

template<typename TreeType >
GridClass openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::getGridClass ( ) const
inline

Return the class of volumetric data (level set, fog volume, etc.) stored in this grid.

Definition at line 329 of file MultiResGrid.h.

template<typename TreeType >
std::string openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::getName ( void  ) const
inline

Return a string with the name of this MultiResGrid.

Definition at line 315 of file MultiResGrid.h.

template<typename TreeType >
Grid< TreeType >::Ptr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::grid ( size_t  level)

Return a shared pointer to the grid at the specified integer level.

Parameters
levelInteger level of the grid to be returned
Note
Level 0 is by definition the finest grid.

Definition at line 452 of file MultiResGrid.h.

template<typename TreeType >
Grid< TreeType >::ConstPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::grid ( size_t  level) const
inline

Return a const shared pointer to the grid at the specified level.

Parameters
levelThe level of the grid to be returned
Note
Level 0 is by definition the finest grid.

Definition at line 468 of file MultiResGrid.h.

template<typename TreeType >
GridPtrVecPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::grids ( )

Return a shared pointer to a vector of all the base grids in this instance of the MultiResGrid.

This method is useful for I/O

Definition at line 505 of file MultiResGrid.h.

template<typename TreeType >
GridCPtrVecPtr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::grids ( ) const

Return a const shared pointer to a vector of all the base grids in this instance of the MultiResGrid.

This method is useful for I/O

Definition at line 514 of file MultiResGrid.h.

template<typename TreeType >
size_t openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::numLevels ( ) const
inline

Return the number of levels, i.e. trees, in this MultiResGrid.

Note
level 0 is the finest level and numLevels()-1 is the coarsest level.

Definition at line 131 of file MultiResGrid.h.

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::print ( std::ostream &  os = std::cout,
int  verboseLevel = 1 
) const

Output a human-readable description of this MultiResGrid.

Definition at line 637 of file MultiResGrid.h.

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::prolongateActiveVoxels ( size_t  destlevel,
size_t  grainSize = 1 
)

(coarse->fine) Populates all the active voxel values in a fine (level) tree from the coarse (level+1) tree using linear interpolation This transforms multiple values of the tree in parallel

Definition at line 606 of file MultiResGrid.h.

template<typename TreeType >
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::prolongateVoxel ( const Coord &  coords,
const size_t  level 
) const

Return the value at coordinate location in level tree from the coarser tree at level+1 using trilinear interpolation.

Parameters
coordsinput coords relative to the fine tree at level
levelThe fine level to receive values from the coarser level-1
Note
Prolongation means to interpolation from coarse -> fine

Definition at line 597 of file MultiResGrid.h.

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::restrictActiveVoxels ( size_t  destlevel,
size_t  grainSize = 1 
)

(fine->coarse) Populates all the active voxel values in the coarse (level) tree from the fine (level-1) tree using trilinear interpolation. For cell-centered data, this is equivalent to an average For vertex-centered data this is equivalent to transferring the data from the fine vertex directly above the coarse vertex. This transforms multiple values of the tree in parallel

Definition at line 627 of file MultiResGrid.h.

template<typename TreeType >
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::restrictVoxel ( Coord  ijk,
const size_t  level,
bool  useInjection = false 
) const

Populate a coordinate location in level (coarse) tree from the level-1 (fine) tree using trilinear interpolation input coords are relative to the mTree[level] (coarse)

Note
Restriction means remapping from fine -> coarse

Definition at line 616 of file MultiResGrid.h.

template<typename TreeType >
template<Index Order>
ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Coord &  in_ijk,
size_t  in_level,
size_t  out_level 
) const

Return the value at the specified coordinate position using interpolation of the specified order into the tree at the out_level.

First in_ijk is mapped from index space at in_level to out_level, and then a value is interpolated from the tree at out_level.

Parameters
in_ijkIndex coordinate position relative to tree at in_level
in_levelInteger level of the input coordinate in_ijk
out_levelInteger level of the interpolated value
template<typename TreeType >
template<Index Order>
ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Vec3R in_ijk,
size_t  in_level,
size_t  out_level 
) const

Return the value at the specified coordinate position using interpolation of the specified order into the tree at the out_level.

First in_ijk is mapped from index space at in_level to out_level, and then a value is interpolated from the tree at out_level.

Parameters
in_ijkIndex coordinate position relative to tree at in_level
in_levelInteger level of the input coordinate in_ijk
out_levelInteger level of the interpolated value
template<typename TreeType >
template<Index Order>
ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Coord &  ijk,
double  level 
) const

Return the value at the specified integer coordinate position and level using interpolation of the specified order.

Parameters
ijkInteger coordinate position relative to the highest level (=0) grid
levelFloating-point level from which to interpolate the value. Non-integer values of the level will use linear-interpolation between the neighboring integer levels.
template<typename TreeType >
template<Index Order>
ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Vec3R xyz,
double  level 
) const

Return the value at the specified floating-point coordinate position and level using interpolation of the specified order.

Parameters
xyzFloating-point coordinate position relative to the highest level grid
levelFloating-point level from which to interpolate the value. Non-integer values of the level will use linear-interpolation between the neighboring integer levels.
template<typename TreeType >
template<Index Order>
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Coord &  in_ijk,
size_t  in_level,
size_t  out_level 
) const

Definition at line 546 of file MultiResGrid.h.

template<typename TreeType >
template<Index Order>
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Vec3R in_xyz,
size_t  in_level,
size_t  out_level 
) const

Definition at line 557 of file MultiResGrid.h.

template<typename TreeType >
template<Index Order>
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Coord &  ijk,
double  level 
) const

Definition at line 568 of file MultiResGrid.h.

template<typename TreeType >
template<Index Order>
TreeType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::sampleValue ( const Vec3R xyz,
double  level 
) const

Definition at line 583 of file MultiResGrid.h.

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::setGridClass ( GridClass  cls)
inline

Specify the class of volumetric data (level set, fog volume, etc.) stored in this grid.

Definition at line 337 of file MultiResGrid.h.

template<typename TreeType >
void openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::setName ( const std::string name)
inline

Set the name of this MultiResGrid.

Definition at line 322 of file MultiResGrid.h.

template<typename TreeType >
math::Transform& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::transform ( )
inline

Return a reference to the finest grid's transform, which might be shared with other grids.

Note
Calling setTransform() on this grid invalidates all references previously returned by this method.
Warning
The transform is relative to the finest level (=0) grid!

Definition at line 225 of file MultiResGrid.h.

template<typename TreeType >
const math::Transform& openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::transform ( ) const
inline

Return a reference to the finest grid's transform, which might be shared with other grids.

Note
Calling setTransform() on this grid invalidates all references previously returned by this method.
Warning
The transform is relative to the finest level (=0) grid!

Definition at line 226 of file MultiResGrid.h.

template<typename TreeType >
TreeType & openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::tree ( size_t  level)
inline

Return a reference to the tree at the specified level.

Parameters
levelThe level of the tree to be returned
Note
Level 0 is by definition the finest tree.

Definition at line 420 of file MultiResGrid.h.

template<typename TreeType >
TreeType::Ptr openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::treePtr ( size_t  level)
inline

Return a shared pointer to the tree at the specified level.

Parameters
levelThe level of the tree to be returned
Note
Level 0 is by definition the finest tree.

Definition at line 436 of file MultiResGrid.h.

template<typename TreeType >
Vec3R openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::xyz ( const Coord &  in_ijk,
size_t  in_level,
size_t  out_level 
)
static

Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level.

Definition at line 523 of file MultiResGrid.h.

template<typename TreeType >
Vec3R openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::xyz ( const Vec3R in_xyz,
size_t  in_level,
size_t  out_level 
)
static

Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level.

Definition at line 530 of file MultiResGrid.h.

template<typename TreeType >
Vec3R openvdb::OPENVDB_VERSION_NAME::tools::MultiResGrid< TreeType >::xyz ( const Vec3R in_xyz,
double  in_level,
double  out_level 
)
static

Return the floating-point index coordinate at out_level given the index coordinate in_xyz at in_level.

Definition at line 537 of file MultiResGrid.h.


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