OpenVDB 3.2.0

Classes | Namespaces | Typedefs | Functions
Grid.h File Reference
`#include <iostream>`
`#include <set>`
`#include <vector>`
`#include <boost/static_assert.hpp>`
`#include <boost/type_traits/remove_const.hpp>`
`#include <boost/type_traits/is_floating_point.hpp>`
`#include <openvdb/Types.h>`
`#include <openvdb/util/Name.h>`
`#include <openvdb/math/Transform.h>`
`#include <openvdb/tree/Tree.h>`
`#include <openvdb/metadata/MetaMap.h>`
`#include <openvdb/Exceptions.h>`

Go to the source code of this file.

## Classes
class | Grid< _TreeType >
| Container class that associates a tree with a transform and metadata. More...
class | GridBase
| Abstract base class for typed grids. More...
struct | GridNamePred
| Predicate functor that returns `true` for grids that have a specified name. More...
class | Grid< _TreeType >
| Container class that associates a tree with a transform and metadata. More...
struct | Grid< _TreeType >::ValueConverter< OtherValueType >
| ValueConverter<T>::Type is the type of a grid having the same hierarchy as this grid but a different value type, T. More...
struct | TreeAdapter< _TreeType >
| This adapter allows code that is templated on a Tree type to accept either a Tree type or a Grid type. More...
struct | TreeAdapter< Grid< _TreeType > >
| Partial specialization for Grid types. More...
struct | TreeAdapter< tree::ValueAccessor< _TreeType > >
| Partial specialization for ValueAccessor types. More...

## Namespaces
| openvdb
| openvdb::v3_2_0

## Typedefs
typedef tree::TreeBase | TreeBase
typedef std::vector< GridBase::Ptr > | GridPtrVec
typedef GridPtrVec::iterator | GridPtrVecIter
typedef GridPtrVec::const_iterator | GridPtrVecCIter
typedef boost::shared_ptr< GridPtrVec > | GridPtrVecPtr
typedef std::vector< GridBase::ConstPtr > | GridCPtrVec
typedef GridCPtrVec::iterator | GridCPtrVecIter
typedef GridCPtrVec::const_iterator | GridCPtrVecCIter
typedef boost::shared_ptr< GridCPtrVec > | GridCPtrVecPtr
typedef std::set< GridBase::Ptr > | GridPtrSet
typedef GridPtrSet::iterator | GridPtrSetIter
typedef GridPtrSet::const_iterator | GridPtrSetCIter
typedef boost::shared_ptr< GridPtrSet > | GridPtrSetPtr
typedef std::set< GridBase::ConstPtr > | GridCPtrSet
typedef GridCPtrSet::iterator | GridCPtrSetIter
typedef GridCPtrSet::const_iterator | GridCPtrSetCIter
typedef boost::shared_ptr< GridCPtrSet > | GridCPtrSetPtr

## Functions
template<typename GridType >
GridType::Ptr | createGrid (const typename GridType::ValueType &background)
| Create a new grid of type `GridType` with a given background value. More...
template<typename GridType >
GridType::Ptr | createGrid ()
| Create a new grid of type `GridType` with background value zero. More...
template<typename TreePtrType >
Grid< typename TreePtrType::element_type >::Ptr | createGrid (TreePtrType)
| Create a new grid of the appropriate type that wraps the given tree. More...
template<typename GridType >
GridType::Ptr | createLevelSet (Real voxelSize=1.0, Real halfWidth=LEVEL_SET_HALF_WIDTH)
| Create a new grid of type `GridType` classified as a "Level Set", i.e., a narrow-band level set. More...
template<typename GridPtrContainerT >
GridPtrContainerT::value_type | findGridByName (const GridPtrContainerT &container, const Name &name)
| Return the first grid in the given container whose name is name. More...
template<typename KeyT , typename GridPtrT >
GridPtrT | findGridByName (const std::map< KeyT, GridPtrT > &container, const Name &name)
| Return the first grid in the given map whose name is name. More...
template<typename GridType >
GridType::Ptr | gridPtrCast (const GridBase::Ptr &grid)
| Cast a generic grid pointer to a pointer to a grid of a concrete class. More...
template<typename GridType >
GridType::ConstPtr | gridConstPtrCast (const GridBase::ConstPtr &grid)
| Cast a generic const grid pointer to a const pointer to a grid of a concrete class. More...
template<typename GridType >
GridType::Ptr | deepCopyTypedGrid (const GridBase::ConstPtr &grid)
| Return a pointer to a deep copy of the given grid, provided that the grid's concrete type is `GridType`. More...
template<typename GridType >
GridType::Ptr | deepCopyTypedGrid (const GridBase &grid)
| Return a pointer to a deep copy of the given grid, provided that the grid's concrete type is `GridType`. More...