OpenVDB
1.1.0
|
Abstract base class for maps. More...
#include <Maps.h>
Inherited by AffineMap, NonlinearFrustumMap, ScaleMap, ScaleTranslateMap, TranslationMap, and UnitaryMap.
Public Types | |
typedef boost::shared_ptr < MapBase > | Ptr |
typedef boost::shared_ptr < const MapBase > | ConstPtr |
typedef Ptr(* | MapFactory )() |
Public Member Functions | |
virtual | ~MapBase () |
virtual boost::shared_ptr < AffineMap > | getAffineMap () const =0 |
virtual Name | type () const =0 |
Return the name of this map's concrete type (e.g., "AffineMap" ). More... | |
template<typename MapT > | |
bool | isType () const |
Return true if this map is of concrete type MapT (e.g., AffineMap). More... | |
virtual bool | isEqual (const MapBase &other) const =0 |
Return true if this map is equal to the given map. More... | |
virtual bool | isLinear () const =0 |
Return true if this map is linear. More... | |
virtual bool | hasUniformScale () const =0 |
Return true if the spacing between the image of latice is uniform in all directions. More... | |
virtual Vec3d | applyMap (const Vec3d &in) const =0 |
virtual Vec3d | applyInverseMap (const Vec3d &in) const =0 |
virtual Vec3d | applyIJT (const Vec3d &in) const =0 |
virtual Vec3d | applyIJT (const Vec3d &in, const Vec3d &pos) const =0 |
virtual Mat3d | applyIJC (const Mat3d &m) const =0 |
virtual Mat3d | applyIJC (const Mat3d &m, const Vec3d &v, const Vec3d &pos) const =0 |
virtual double | determinant () const =0 |
virtual double | determinant (const Vec3d &) const =0 |
virtual void | read (std::istream &)=0 |
virtual void | write (std::ostream &) const =0 |
virtual std::string | str () const =0 |
virtual MapBase::Ptr | copy () const =0 |
virtual Vec3d | voxelSize () const =0 |
Method to return the local size of a voxel. More... | |
virtual Vec3d | voxelSize (const Vec3d &) const =0 |
Method to return the local size of a voxel. More... | |
virtual MapBase::Ptr | preRotate (double radians, Axis axis=X_AXIS) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | preTranslate (const Vec3d &) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | preScale (const Vec3d &) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | preShear (double shear, Axis axis0, Axis axis1) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | postRotate (double radians, Axis axis=X_AXIS) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | postTranslate (const Vec3d &) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | postScale (const Vec3d &) const =0 |
Methods to update the map. More... | |
virtual MapBase::Ptr | postShear (double shear, Axis axis0, Axis axis1) const =0 |
Methods to update the map. More... | |
Protected Member Functions | |
MapBase () | |
Static Protected Member Functions | |
template<typename MapT > | |
static bool | isEqualBase (const MapT &self, const MapBase &other) |
Abstract base class for maps.
typedef Ptr(* MapFactory)() |
|
inlinevirtual |
|
inlineprotected |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, UniformScaleTranslateMap, ScaleTranslateMap, TranslationMap, UniformScaleMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Return true
if the spacing between the image of latice is uniform in all directions.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Return true
if this map is equal to the given map.
Implemented in NonlinearFrustumMap, UnitaryMap, UniformScaleTranslateMap, ScaleTranslateMap, TranslationMap, UniformScaleMap, ScaleMap, and AffineMap.
|
inlinestaticprotected |
|
pure virtual |
Return true
if this map is linear.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
inline |
Return true
if this map is of concrete type MapT
(e.g., AffineMap).
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, UniformScaleTranslateMap, ScaleTranslateMap, TranslationMap, UniformScaleMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Methods to update the map.
Implemented in NonlinearFrustumMap, UnitaryMap, UniformScaleTranslateMap, ScaleTranslateMap, TranslationMap, UniformScaleMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Return the name of this map's concrete type (e.g., "AffineMap"
).
Implemented in NonlinearFrustumMap, UnitaryMap, UniformScaleTranslateMap, ScaleTranslateMap, TranslationMap, UniformScaleMap, ScaleMap, and AffineMap.
|
pure virtual |
Method to return the local size of a voxel.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
Method to return the local size of a voxel.
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.
|
pure virtual |
Implemented in NonlinearFrustumMap, UnitaryMap, ScaleTranslateMap, TranslationMap, ScaleMap, and AffineMap.