Loading...
Searching...
No Matches
Types.h
Go to the documentation of this file.
// Copyright Contributors to the OpenVDB Project
// SPDX-License-Identifier: MPL-2.0
#ifndef OPENVDB_TYPES_HAS_BEEN_INCLUDED
#define OPENVDB_TYPES_HAS_BEEN_INCLUDED
#include "version.h"
#include "Platform.h"
#include "TypeList.h" // backwards compat
#ifdef OPENVDB_USE_IMATH_HALF
#ifdef OPENVDB_IMATH_VERSION
#include <Imath/half.h>
#else
#include <OpenEXR/half.h>
#endif
namespace openvdb {
OPENVDB_USE_VERSION_NAMESPACE
namespace OPENVDB_VERSION_NAME {
namespace math {
using half = half;
}}}
#else
#include <openvdb/math/Half.h>
namespace openvdb {
OPENVDB_USE_VERSION_NAMESPACE
namespace OPENVDB_VERSION_NAME {
namespace math {
using half = internal::half;
}}}
#endif
#include <openvdb/math/Math.h>
#include <openvdb/math/BBox.h>
#include <openvdb/math/Quat.h>
#include <openvdb/math/Vec2.h>
#include <openvdb/math/Vec3.h>
#include <openvdb/math/Vec4.h>
#include <openvdb/math/Mat3.h>
#include <openvdb/math/Mat4.h>
#include <openvdb/math/Coord.h>
#include <cstdint>
#include <memory>
#include <type_traits>
namespace openvdb {
OPENVDB_USE_VERSION_NAMESPACE
namespace OPENVDB_VERSION_NAME {
// One-dimensional scalar types
using Index32 = uint32_t;
using Index64 = uint64_t;
using Index = Index32;
using Int16 = int16_t;
using Int32 = int32_t;
using Int64 = int64_t;
using Int = Int32;
using Byte = unsigned char;
using Real = double;
// Two-dimensional vector types
using Vec2R = math::Vec2<Real>;
using Vec2I = math::Vec2<Index32>;
using Vec2f = math::Vec2<float>;
using Vec2H = math::Vec2<math::half>;
using math::Vec2i;
using math::Vec2s;
using math::Vec2d;
// Three-dimensional vector types
using Vec3R = math::Vec3<Real>;
using Vec3I = math::Vec3<Index32>;
using Vec3f = math::Vec3<float>;
using Vec3H = math::Vec3<math::half>;
using Vec3U8 = math::Vec3<uint8_t>;
using Vec3U16 = math::Vec3<uint16_t>;
using math::Vec3i;
using math::Vec3s;
using math::Vec3d;
using math::Coord;
using math::CoordBBox;
using BBoxd = math::BBox<Vec3d>;
// Four-dimensional vector types
using Vec4R = math::Vec4<Real>;
using Vec4I = math::Vec4<Index32>;
using Vec4f = math::Vec4<float>;
using Vec4H = math::Vec4<math::half>;
using math::Vec4i;
using math::Vec4s;
using math::Vec4d;
// Three-dimensional matrix types
using Mat3R = math::Mat3<Real>;
using math::Mat3s;
using math::Mat3d;
// Four-dimensional matrix types
using Mat4R = math::Mat4<Real>;
using math::Mat4s;
using math::Mat4d;
// Quaternions
using QuatR = math::Quat<Real>;
using math::Quats;
using math::Quatd;
// Dummy type for a voxel with a binary mask value, e.g. the active state
class ValueMask {};
// Use STL shared pointers from OpenVDB 4 on.
template<typename T> using SharedPtr = std::shared_ptr<T>;
template<typename T> using WeakPtr = std::weak_ptr<T>;
/// @brief Return a new shared pointer that points to the same object
/// as the given pointer but with possibly different <TT>const</TT>-ness.
/// @par Example:
/// @code
/// FloatGrid::ConstPtr grid = ...;
/// FloatGrid::Ptr nonConstGrid = ConstPtrCast<FloatGrid>(grid);
/// FloatGrid::ConstPtr constGrid = ConstPtrCast<const FloatGrid>(nonConstGrid);
/// @endcode
template<typename T, typename U> inline SharedPtr<T>
ConstPtrCast(const SharedPtr<U>& ptr) { return std::const_pointer_cast<T, U>(ptr); }
/// @brief Return a new shared pointer that is either null or points to
/// the same object as the given pointer after a @c dynamic_cast.
/// @par Example:
/// @code
/// GridBase::ConstPtr grid = ...;
/// FloatGrid::ConstPtr floatGrid = DynamicPtrCast<const FloatGrid>(grid);
/// @endcode
template<typename T, typename U> inline SharedPtr<T>
DynamicPtrCast(const SharedPtr<U>& ptr) { return std::dynamic_pointer_cast<T, U>(ptr); }
/// @brief Return a new shared pointer that points to the same object
/// as the given pointer after a @c static_cast.
/// @par Example:
/// @code
/// FloatGrid::Ptr floatGrid = ...;
/// GridBase::Ptr grid = StaticPtrCast<GridBase>(floatGrid);
/// @endcode
template<typename T, typename U> inline SharedPtr<T>
StaticPtrCast(const SharedPtr<U>& ptr) { return std::static_pointer_cast<T, U>(ptr); }
////////////////////////////////////////
/// @brief Integer wrapper, required to distinguish PointIndexGrid and
/// PointDataGrid from Int32Grid and Int64Grid
/// @note @c Kind is a dummy parameter used to create distinct types.
template<typename IntType_, Index Kind>
struct PointIndex
{
static_assert(std::is_integral<IntType_>::value, "PointIndex requires an integer value type");
using IntType = IntType_;
PointIndex(IntType i = IntType(0)): mIndex(i) {}
/// Explicit type conversion constructor
template<typename T> explicit PointIndex(T i): mIndex(static_cast<IntType>(i)) {}
operator IntType() const { return mIndex; }
/// Needed to support the <tt>(zeroVal<PointIndex>() + val)</tt> idiom.
template<typename T>
PointIndex operator+(T x) { return PointIndex(mIndex + IntType(x)); }
private:
IntType mIndex;
};
using PointIndex32 = PointIndex<Index32, 0>;
using PointIndex64 = PointIndex<Index64, 0>;
using PointDataIndex32 = PointIndex<Index32, 1>;
using PointDataIndex64 = PointIndex<Index64, 1>;
////////////////////////////////////////
/// @brief Helper metafunction used to determine if the first template
/// parameter is a specialization of the class template given in the second
/// template parameter
template <typename T, template <typename...> class Template>
struct IsSpecializationOf: public std::false_type {};
template <typename... Args, template <typename...> class Template>
struct IsSpecializationOf<Template<Args...>, Template>: public std::true_type {};
////////////////////////////////////////
template<typename T, bool = IsSpecializationOf<T, math::Vec2>::value ||
IsSpecializationOf<T, math::Vec3>::value ||
IsSpecializationOf<T, math::Vec4>::value>
struct VecTraits
{
static const bool IsVec = true;
static const int Size = T::size;
using ElementType = typename T::ValueType;
};
template<typename T>
struct VecTraits<T, false>
{
static const bool IsVec = false;
static const int Size = 1;
using ElementType = T;
};
template<typename T, bool = IsSpecializationOf<T, math::Quat>::value>
struct QuatTraits
{
static const bool IsQuat = true;
static const int Size = T::size;
using ElementType = typename T::ValueType;
};
template<typename T>
struct QuatTraits<T, false>
{
static const bool IsQuat = false;
static const int Size = 1;
using ElementType = T;
};
template<typename T, bool = IsSpecializationOf<T, math::Mat3>::value ||
IsSpecializationOf<T, math::Mat4>::value>
struct MatTraits
{
static const bool IsMat = true;
static const int Size = T::size;
using ElementType = typename T::ValueType;
};
template<typename T>
struct MatTraits<T, false>
{
static const bool IsMat = false;
static const int Size = 1;
using ElementType = T;
};
template<typename T, bool = VecTraits<T>::IsVec ||
QuatTraits<T>::IsQuat ||
MatTraits<T>::IsMat>
struct ValueTraits
{
static const bool IsVec = VecTraits<T>::IsVec;
static const bool IsQuat = QuatTraits<T>::IsQuat;
static const bool IsMat = MatTraits<T>::IsMat;
static const bool IsScalar = false;
static const int Size = T::size;
static const int Elements = IsMat ? Size*Size : Size;
using ElementType = typename T::ValueType;
};
template<typename T>
struct ValueTraits<T, false>
{
static const bool IsVec = false;
static const bool IsQuat = false;
static const bool IsMat = false;
static const bool IsScalar = true;
static const int Size = 1;
static const int Elements = 1;
using ElementType = T;
};
/// @brief Conversion classes for changing the underlying type of VDB types
/// @{
template<typename T, typename SubT> struct ConvertElementType { using Type = SubT; };
template<typename T, typename SubT> struct ConvertElementType<math::Vec2<T>, SubT> { using Type = math::Vec2<SubT>; };
template<typename T, typename SubT> struct ConvertElementType<math::Vec3<T>, SubT> { using Type = math::Vec3<SubT>; };
template<typename T, typename SubT> struct ConvertElementType<math::Vec4<T>, SubT> { using Type = math::Vec4<SubT>; };
template<typename T, typename SubT> struct ConvertElementType<math::Quat<T>, SubT> { using Type = math::Quat<SubT>; };
template<typename T, typename SubT> struct ConvertElementType<math::Mat3<T>, SubT> { using Type = math::Mat3<SubT>; };
template<typename T, typename SubT> struct ConvertElementType<math::Mat4<T>, SubT> { using Type = math::Mat4<SubT>; };
/// @}
namespace types_internal
{
template <size_t Bits, bool Signed> struct int_t;
template <> struct int_t<8ul, true> { using type = int8_t; };
template <> struct int_t<16ul, true> { using type = int16_t; };
template <> struct int_t<32ul, true> { using type = int32_t; };
template <> struct int_t<64ul, true> { using type = int64_t; };
template <> struct int_t<8ul, false> { using type = uint8_t; };
template <> struct int_t<16ul, false> { using type = uint16_t; };
template <> struct int_t<32ul, false> { using type = uint32_t; };
template <> struct int_t<64ul, false> { using type = uint64_t; };
template <size_t Bits> struct flt_t;
template <> struct flt_t<16ul> { using type = math::half; };
template <> struct flt_t<32ul> { using type = float; };
template <> struct flt_t<64ul> { using type = double; };
}
/// @brief Promotion classes which provide an interface for elevating and
/// demoting a scalar or VDB type to a higher or lower precision. Integer
/// types preserve their sign. Types promotion are only valid between
/// 8 to 64 bits (long doubles are not supported).
/// @{
template<typename T>
struct PromoteType
{
private:
template <size_t bits>
using TypeT = typename std::conditional<std::is_integral<T>::value,
types_internal::int_t<bits, std::is_signed<T>::value>,
types_internal::flt_t<std::max(size_t(16), bits)>>::type;
public:
static_assert(sizeof(T) <= 8ul, "Unsupported source type for promotion");
#define OPENVDB_TARGET_BITS(SHIFT, PROMOTE) \
std::max(size_t(8), \
std::min(size_t(64), (PROMOTE ? size_t(8)*(sizeof(T)<<SHIFT) : \
size_t(8)*(sizeof(T)>>SHIFT))))
template <size_t Shift = ~0UL> using Promote = typename TypeT<OPENVDB_TARGET_BITS(Shift, true)>::type;
template <size_t Shift = ~0UL> using Demote = typename TypeT<OPENVDB_TARGET_BITS(Shift, false)>::type;
#undef OPENVDB_TARGET_BITS
using Highest = typename TypeT<64ul>::type;
using Lowest = typename TypeT<8ul>::type;
using Next = Promote<1>;
using Previous = Demote<1>;
};
template <typename T, template <typename> class ContainerT>
struct PromoteContainerType
{
template <size_t Shift = ~0UL> using Promote = ContainerT<typename PromoteType<T>::template Promote<Shift>>;
template <size_t Shift = ~0UL> using Demote = ContainerT<typename PromoteType<T>::template Demote<Shift>>;
using Highest = ContainerT<typename PromoteType<T>::Highest>;
using Lowest = ContainerT<typename PromoteType<T>::Lowest>;
using Next = ContainerT<typename PromoteType<T>::Next>;
using Previous = ContainerT<typename PromoteType<T>::Previous>;
};
template<typename T> struct PromoteType<math::Vec2<T>> : public PromoteContainerType<T, math::Vec2> {};
template<typename T> struct PromoteType<math::Vec3<T>> : public PromoteContainerType<T, math::Vec3> {};
template<typename T> struct PromoteType<math::Vec4<T>> : public PromoteContainerType<T, math::Vec4> {};
template<typename T> struct PromoteType<math::Quat<T>> : public PromoteContainerType<T, math::Quat> {};
template<typename T> struct PromoteType<math::Mat3<T>> : public PromoteContainerType<T, math::Mat3> {};
template<typename T> struct PromoteType<math::Mat4<T>> : public PromoteContainerType<T, math::Mat4> {};
/// @}
////////////////////////////////////////
/// @brief CanConvertType<FromType, ToType>::value is @c true if a value
/// of type @a ToType can be constructed from a value of type @a FromType.
template<typename FromType, typename ToType>
struct CanConvertType { enum { value = std::is_constructible<ToType, FromType>::value }; };
// Specializations for vector types, which can be constructed from values
// of their own ValueTypes (or values that can be converted to their ValueTypes),
// but only explicitly
template<typename T> struct CanConvertType<T, math::Vec2<T> > { enum { value = true }; };
template<typename T> struct CanConvertType<T, math::Vec3<T> > { enum { value = true }; };
template<typename T> struct CanConvertType<T, math::Vec4<T> > { enum { value = true }; };
template<typename T> struct CanConvertType<math::Vec2<T>, math::Vec2<T> > { enum {value = true}; };
template<typename T> struct CanConvertType<math::Vec3<T>, math::Vec3<T> > { enum {value = true}; };
template<typename T> struct CanConvertType<math::Vec4<T>, math::Vec4<T> > { enum {value = true}; };
template<typename T0, typename T1>
struct CanConvertType<T0, math::Vec2<T1> > { enum { value = CanConvertType<T0, T1>::value }; };
template<typename T0, typename T1>
struct CanConvertType<T0, math::Vec3<T1> > { enum { value = CanConvertType<T0, T1>::value }; };
template<typename T0, typename T1>
struct CanConvertType<T0, math::Vec4<T1> > { enum { value = CanConvertType<T0, T1>::value }; };
template<> struct CanConvertType<PointIndex32, PointDataIndex32> { enum {value = true}; };
template<> struct CanConvertType<PointDataIndex32, PointIndex32> { enum {value = true}; };
template<typename T>
struct CanConvertType<T, ValueMask> { enum {value = CanConvertType<T, bool>::value}; };
template<typename T>
struct CanConvertType<ValueMask, T> { enum {value = CanConvertType<bool, T>::value}; };
////////////////////////////////////////
/// @brief CopyConstness<T1, T2>::Type is either <tt>const T2</tt>
/// or @c T2 with no @c const qualifier, depending on whether @c T1 is @c const.
/// @details For example,
/// - CopyConstness<int, int>::Type is @c int
/// - CopyConstness<int, const int>::Type is @c int
/// - CopyConstness<const int, int>::Type is <tt>const int</tt>
/// - CopyConstness<const int, const int>::Type is <tt>const int</tt>
template<typename FromType, typename ToType> struct CopyConstness {
using Type = typename std::remove_const<ToType>::type;
};
/// @cond OPENVDB_DOCS_INTERNAL
template<typename FromType, typename ToType> struct CopyConstness<const FromType, ToType> {
using Type = const ToType;
};
/// @endcond
////////////////////////////////////////
// Add new items to the *end* of this list, and update NUM_GRID_CLASSES.
enum GridClass {
GRID_UNKNOWN = 0,
GRID_LEVEL_SET,
GRID_FOG_VOLUME,
GRID_STAGGERED
};
enum { NUM_GRID_CLASSES = GRID_STAGGERED + 1 };
static const Real LEVEL_SET_HALF_WIDTH = 3;
/// The type of a vector determines how transforms are applied to it:
/// <dl>
/// <dt><b>Invariant</b>
/// <dd>Does not transform (e.g., tuple, uvw, color)
///
/// <dt><b>Covariant</b>
/// <dd>Apply inverse-transpose transformation: @e w = 0, ignores translation
/// (e.g., gradient/normal)
///
/// <dt><b>Covariant Normalize</b>
/// <dd>Apply inverse-transpose transformation: @e w = 0, ignores translation,
/// vectors are renormalized (e.g., unit normal)
///
/// <dt><b>Contravariant Relative</b>
/// <dd>Apply "regular" transformation: @e w = 0, ignores translation
/// (e.g., displacement, velocity, acceleration)
///
/// <dt><b>Contravariant Absolute</b>
/// <dd>Apply "regular" transformation: @e w = 1, vector translates (e.g., position)
/// </dl>
enum VecType {
VEC_INVARIANT = 0,
VEC_COVARIANT,
VEC_COVARIANT_NORMALIZE,
VEC_CONTRAVARIANT_RELATIVE,
VEC_CONTRAVARIANT_ABSOLUTE
};
enum { NUM_VEC_TYPES = VEC_CONTRAVARIANT_ABSOLUTE + 1 };
/// Specify how grids should be merged during certain (typically multithreaded) operations.
/// <dl>
/// <dt><b>MERGE_ACTIVE_STATES</b>
/// <dd>The output grid is active wherever any of the input grids is active.
///
/// <dt><b>MERGE_NODES</b>
/// <dd>The output grid's tree has a node wherever any of the input grids' trees
/// has a node, regardless of any active states.
///
/// <dt><b>MERGE_ACTIVE_STATES_AND_NODES</b>
/// <dd>The output grid is active wherever any of the input grids is active,
/// and its tree has a node wherever any of the input grids' trees has a node.
/// </dl>
enum MergePolicy {
MERGE_ACTIVE_STATES = 0,
MERGE_NODES,
MERGE_ACTIVE_STATES_AND_NODES
};
////////////////////////////////////////
template<typename T> const char* typeNameAsString() { return typeid(T).name(); }
template<> inline const char* typeNameAsString<bool>() { return "bool"; }
template<> inline const char* typeNameAsString<ValueMask>() { return "mask"; }
template<> inline const char* typeNameAsString<math::half>() { return "half"; }
template<> inline const char* typeNameAsString<float>() { return "float"; }
template<> inline const char* typeNameAsString<double>() { return "double"; }
template<> inline const char* typeNameAsString<int8_t>() { return "int8"; }
template<> inline const char* typeNameAsString<uint8_t>() { return "uint8"; }
template<> inline const char* typeNameAsString<int16_t>() { return "int16"; }
template<> inline const char* typeNameAsString<uint16_t>() { return "uint16"; }
template<> inline const char* typeNameAsString<int32_t>() { return "int32"; }
template<> inline const char* typeNameAsString<uint32_t>() { return "uint32"; }
template<> inline const char* typeNameAsString<int64_t>() { return "int64"; }
template<> inline const char* typeNameAsString<Vec2i>() { return "vec2i"; }
template<> inline const char* typeNameAsString<Vec2s>() { return "vec2s"; }
template<> inline const char* typeNameAsString<Vec2d>() { return "vec2d"; }
template<> inline const char* typeNameAsString<Vec3U8>() { return "vec3u8"; }
template<> inline const char* typeNameAsString<Vec3U16>() { return "vec3u16"; }
template<> inline const char* typeNameAsString<Vec3i>() { return "vec3i"; }
template<> inline const char* typeNameAsString<Vec3f>() { return "vec3s"; }
template<> inline const char* typeNameAsString<Vec3d>() { return "vec3d"; }
template<> inline const char* typeNameAsString<Vec4i>() { return "vec4i"; }
template<> inline const char* typeNameAsString<Vec4f>() { return "vec4s"; }
template<> inline const char* typeNameAsString<Vec4d>() { return "vec4d"; }
template<> inline const char* typeNameAsString<std::string>() { return "string"; }
template<> inline const char* typeNameAsString<Mat3s>() { return "mat3s"; }
template<> inline const char* typeNameAsString<Mat3d>() { return "mat3d"; }
template<> inline const char* typeNameAsString<Mat4s>() { return "mat4s"; }
template<> inline const char* typeNameAsString<Mat4d>() { return "mat4d"; }
template<> inline const char* typeNameAsString<math::Quats>() { return "quats"; }
template<> inline const char* typeNameAsString<math::Quatd>() { return "quatd"; }
template<> inline const char* typeNameAsString<PointIndex32>() { return "ptidx32"; }
template<> inline const char* typeNameAsString<PointIndex64>() { return "ptidx64"; }
template<> inline const char* typeNameAsString<PointDataIndex32>() { return "ptdataidx32"; }
template<> inline const char* typeNameAsString<PointDataIndex64>() { return "ptdataidx64"; }
////////////////////////////////////////
/// @brief This struct collects both input and output arguments to "grid combiner" functors
/// used with the tree::TypedGrid::combineExtended() and combine2Extended() methods.
/// AValueType and BValueType are the value types of the two grids being combined.
///
/// @see openvdb/tree/Tree.h for usage information.
///
/// Setter methods return references to this object, to facilitate the following usage:
/// @code
/// CombineArgs<float> args;
/// myCombineOp(args.setARef(aVal).setBRef(bVal).setAIsActive(true).setBIsActive(false));
/// @endcode
template<typename AValueType, typename BValueType = AValueType>
class CombineArgs
{
public:
using AValueT = AValueType;
using BValueT = BValueType;
CombineArgs()
: mAValPtr(nullptr)
, mBValPtr(nullptr)
, mResultValPtr(&mResultVal)
, mAIsActive(false)
, mBIsActive(false)
, mResultIsActive(false)
{
}
/// Use this constructor when the result value is stored externally.
CombineArgs(const AValueType& a, const BValueType& b, AValueType& result,
bool aOn = false, bool bOn = false)
: mAValPtr(&a)
, mBValPtr(&b)
, mResultValPtr(&result)
, mAIsActive(aOn)
, mBIsActive(bOn)
{
this->updateResultActive();
}
/// Use this constructor when the result value should be stored in this struct.
CombineArgs(const AValueType& a, const BValueType& b, bool aOn = false, bool bOn = false)
: mAValPtr(&a)
, mBValPtr(&b)
, mResultValPtr(&mResultVal)
, mAIsActive(aOn)
, mBIsActive(bOn)
{
this->updateResultActive();
}
/// Get the A input value.
const AValueType& a() const { return *mAValPtr; }
/// Get the B input value.
const BValueType& b() const { return *mBValPtr; }
//@{
/// Get the output value.
const AValueType& result() const { return *mResultValPtr; }
AValueType& result() { return *mResultValPtr; }
//@}
/// Set the output value.
CombineArgs& setResult(const AValueType& val) { *mResultValPtr = val; return *this; }
/// Redirect the A value to a new external source.
CombineArgs& setARef(const AValueType& a) { mAValPtr = &a; return *this; }
/// Redirect the B value to a new external source.
CombineArgs& setBRef(const BValueType& b) { mBValPtr = &b; return *this; }
/// Redirect the result value to a new external destination.
CombineArgs& setResultRef(AValueType& val) { mResultValPtr = &val; return *this; }
/// @return true if the A value is active
bool aIsActive() const { return mAIsActive; }
/// @return true if the B value is active
bool bIsActive() const { return mBIsActive; }
/// @return true if the output value is active
bool resultIsActive() const { return mResultIsActive; }
/// Set the active state of the A value.
CombineArgs& setAIsActive(bool b) { mAIsActive = b; updateResultActive(); return *this; }
/// Set the active state of the B value.
CombineArgs& setBIsActive(bool b) { mBIsActive = b; updateResultActive(); return *this; }
/// Set the active state of the output value.
CombineArgs& setResultIsActive(bool b) { mResultIsActive = b; return *this; }
protected:
/// By default, the result value is active if either of the input values is active,
/// but this behavior can be overridden by calling setResultIsActive().
void updateResultActive() { mResultIsActive = mAIsActive || mBIsActive; }
const AValueType* mAValPtr; // pointer to input value from A grid
const BValueType* mBValPtr; // pointer to input value from B grid
AValueType mResultVal; // computed output value (unused if stored externally)
AValueType* mResultValPtr; // pointer to either mResultVal or an external value
bool mAIsActive, mBIsActive; // active states of A and B values
bool mResultIsActive; // computed active state (default: A active || B active)
};
/// This struct adapts a "grid combiner" functor to swap the A and B grid values
/// (e.g., so that if the original functor computes a + 2 * b, the adapted functor
/// will compute b + 2 * a).
template<typename ValueType, typename CombineOp>
struct SwappedCombineOp
{
SwappedCombineOp(CombineOp& _op): op(_op) {}
void operator()(CombineArgs<ValueType>& args)
{
CombineArgs<ValueType> swappedArgs(args.b(), args.a(), args.result(),
args.bIsActive(), args.aIsActive());
op(swappedArgs);
args.setResultIsActive(swappedArgs.resultIsActive());
}
CombineOp& op;
};
////////////////////////////////////////
/// @brief Tag dispatch class that distinguishes shallow copy constructors
/// from deep copy constructors
class ShallowCopy {};
/// @brief Tag dispatch class that distinguishes topology copy constructors
/// from deep copy constructors
class TopologyCopy {};
/// @brief Tag dispatch class that distinguishes constructors that deep copy
class DeepCopy {};
/// @brief Tag dispatch class that distinguishes constructors that steal
class Steal {};
/// @brief Tag dispatch class that distinguishes constructors during file input
class PartialCreate {};
} // namespace OPENVDB_VERSION_NAME
} // namespace openvdb
#endif // OPENVDB_TYPES_HAS_BEEN_INCLUDED
BBox.h
Coord.h
Half.h
Mat3.h
Mat4.h
Math.h
General-purpose arithmetic and comparison routines, most of which accept arbitrary value types (or at...
Platform.h
Quat.h
TypeList.h
A TypeList provides a compile time sequence of heterogeneous types which can be accessed,...
Vec2.h
Vec3.h
Vec4.h
openvdb::v10_0::CombineArgs
This struct collects both input and output arguments to "grid combiner" functors used with the tree::...
Definition Types.h:530
openvdb::v10_0::CombineArgs::setARef
CombineArgs & setARef(const AValueType &a)
Redirect the A value to a new external source.
Definition Types.h:582
openvdb::v10_0::CombineArgs::bIsActive
bool bIsActive() const
Definition Types.h:591
openvdb::v10_0::CombineArgs::result
const AValueType & result() const
Get the output value.
Definition Types.h:574
openvdb::v10_0::CombineArgs::CombineArgs
CombineArgs(const AValueType &a, const BValueType &b, AValueType &result, bool aOn=false, bool bOn=false)
Use this constructor when the result value is stored externally.
Definition Types.h:546
openvdb::v10_0::CombineArgs::mAIsActive
bool mAIsActive
Definition Types.h:611
openvdb::v10_0::CombineArgs::mResultValPtr
AValueType * mResultValPtr
Definition Types.h:610
openvdb::v10_0::CombineArgs::updateResultActive
void updateResultActive()
Definition Types.h:605
openvdb::v10_0::CombineArgs::setResultIsActive
CombineArgs & setResultIsActive(bool b)
Set the active state of the output value.
Definition Types.h:600
openvdb::v10_0::CombineArgs::mAValPtr
const AValueType * mAValPtr
Definition Types.h:607
openvdb::v10_0::CombineArgs::mResultVal
AValueType mResultVal
Definition Types.h:609
openvdb::v10_0::CombineArgs::aIsActive
bool aIsActive() const
Definition Types.h:589
openvdb::v10_0::CombineArgs::mBIsActive
bool mBIsActive
Definition Types.h:611
openvdb::v10_0::CombineArgs::setBIsActive
CombineArgs & setBIsActive(bool b)
Set the active state of the B value.
Definition Types.h:598
openvdb::v10_0::CombineArgs::b
const BValueType & b() const
Get the B input value.
Definition Types.h:571
openvdb::v10_0::CombineArgs::mBValPtr
const BValueType * mBValPtr
Definition Types.h:608
openvdb::v10_0::CombineArgs::CombineArgs
CombineArgs(const AValueType &a, const BValueType &b, bool aOn=false, bool bOn=false)
Use this constructor when the result value should be stored in this struct.
Definition Types.h:558
openvdb::v10_0::CombineArgs::setResultRef
CombineArgs & setResultRef(AValueType &val)
Redirect the result value to a new external destination.
Definition Types.h:586
openvdb::v10_0::CombineArgs::result
AValueType & result()
Definition Types.h:575
openvdb::v10_0::CombineArgs::AValueT
AValueType AValueT
Definition Types.h:532
openvdb::v10_0::CombineArgs::setBRef
CombineArgs & setBRef(const BValueType &b)
Redirect the B value to a new external source.
Definition Types.h:584
openvdb::v10_0::CombineArgs::a
const AValueType & a() const
Get the A input value.
Definition Types.h:569
openvdb::v10_0::CombineArgs::resultIsActive
bool resultIsActive() const
Definition Types.h:593
openvdb::v10_0::CombineArgs::mResultIsActive
bool mResultIsActive
Definition Types.h:612
openvdb::v10_0::CombineArgs::BValueT
BValueType BValueT
Definition Types.h:533
openvdb::v10_0::CombineArgs::CombineArgs
CombineArgs()
Definition Types.h:535
openvdb::v10_0::CombineArgs::setResult
CombineArgs & setResult(const AValueType &val)
Set the output value.
Definition Types.h:579
openvdb::v10_0::CombineArgs::setAIsActive
CombineArgs & setAIsActive(bool b)
Set the active state of the A value.
Definition Types.h:596
openvdb::v10_0::DeepCopy
Tag dispatch class that distinguishes constructors that deep copy.
Definition Types.h:646
openvdb::v10_0::PartialCreate
Tag dispatch class that distinguishes constructors during file input.
Definition Types.h:650
openvdb::v10_0::ShallowCopy
Tag dispatch class that distinguishes shallow copy constructors from deep copy constructors.
Definition Types.h:641
openvdb::v10_0::Steal
Tag dispatch class that distinguishes constructors that steal.
Definition Types.h:648
openvdb::v10_0::TopologyCopy
Tag dispatch class that distinguishes topology copy constructors from deep copy constructors.
Definition Types.h:644
openvdb::v10_0::ValueMask
Definition Types.h:111
openvdb::v10_0::math::BBox
Axis-aligned bounding box.
Definition BBox.h:24
openvdb::v10_0::math::CoordBBox
Axis-aligned bounding box of signed integer coordinates.
Definition Coord.h:249
openvdb::v10_0::math::Coord
Signed (x, y, z) 32-bit integer coordinates.
Definition Coord.h:25
openvdb::v10_0::math::Mat3
3x3 matrix class.
Definition Mat3.h:29
openvdb::v10_0::math::Mat4
4x4 -matrix class.
Definition Mat4.h:31
openvdb::v10_0::math::Quat
Definition Quat.h:79
openvdb::v10_0::math::Vec2
Definition Vec2.h:24
openvdb::v10_0::math::Vec3
Definition Vec3.h:24
openvdb::v10_0::math::Vec4
Definition Vec4.h:25
openvdb::v10_0::math::internal::half
Definition Half.h:99
openvdb::v10_0::math
Definition Types.h:28
openvdb::v10_0::math::Vec2i
Vec2< int32_t > Vec2i
Definition Vec2.h:530
openvdb::v10_0::math::Mat4s
Mat4< float > Mat4s
Definition Mat4.h:1353
openvdb::v10_0::math::Vec2d
Vec2< double > Vec2d
Definition Vec2.h:533
openvdb::v10_0::math::Mat3d
Mat3< double > Mat3d
Definition Mat3.h:834
openvdb::v10_0::math::Vec2s
Vec2< float > Vec2s
Definition Vec2.h:532
openvdb::v10_0::math::Vec4s
Vec4< float > Vec4s
Definition Vec4.h:561
openvdb::v10_0::math::Mat3s
Mat3< float > Mat3s
Definition Mat3.h:833
openvdb::v10_0::math::Vec3d
Vec3< double > Vec3d
Definition Vec3.h:664
openvdb::v10_0::math::Mat4d
Mat4< double > Mat4d
Definition Mat4.h:1354
openvdb::v10_0::math::Vec4i
Vec4< int32_t > Vec4i
Definition Vec4.h:559
openvdb::v10_0::math::Quatd
Quat< double > Quatd
Definition Quat.h:601
openvdb::v10_0::math::half
internal::half half
Definition Types.h:29
openvdb::v10_0::math::Vec3i
Vec3< int32_t > Vec3i
Definition Vec3.h:661
openvdb::v10_0::math::Vec4d
Vec4< double > Vec4d
Definition Vec4.h:562
openvdb::v10_0::math::Quats
Quat< float > Quats
Definition Quat.h:600
openvdb::v10_0::math::Vec3s
Vec3< float > Vec3s
Definition Vec3.h:663
openvdb::v10_0::types_internal
Definition Types.h:291
openvdb::v10_0::LEVEL_SET_HALF_WIDTH
static const Real LEVEL_SET_HALF_WIDTH
Definition Types.h:422
openvdb::v10_0::Vec4f
math::Vec4< float > Vec4f
Definition Types.h:89
openvdb::v10_0::Vec2H
math::Vec2< math::half > Vec2H
Definition Types.h:66
openvdb::v10_0::Index
Index32 Index
Definition Types.h:54
openvdb::v10_0::Vec4I
math::Vec4< Index32 > Vec4I
Definition Types.h:88
openvdb::v10_0::Vec3U16
math::Vec3< uint16_t > Vec3U16
Definition Types.h:77
openvdb::v10_0::PointDataIndex64
PointIndex< Index64, 1 > PointDataIndex64
Definition Types.h:182
openvdb::v10_0::Vec2R
math::Vec2< Real > Vec2R
Definition Types.h:63
openvdb::v10_0::Int16
int16_t Int16
Definition Types.h:55
openvdb::v10_0::Vec3H
math::Vec3< math::half > Vec3H
Definition Types.h:75
openvdb::v10_0::PointIndex64
PointIndex< Index64, 0 > PointIndex64
Definition Types.h:179
openvdb::v10_0::Byte
unsigned char Byte
Definition Types.h:59
openvdb::v10_0::Vec3f
math::Vec3< float > Vec3f
Definition Types.h:74
openvdb::v10_0::Real
double Real
Definition Types.h:60
openvdb::v10_0::GridClass
GridClass
Definition Types.h:414
openvdb::v10_0::GRID_FOG_VOLUME
@ GRID_FOG_VOLUME
Definition Types.h:417
openvdb::v10_0::GRID_STAGGERED
@ GRID_STAGGERED
Definition Types.h:418
openvdb::v10_0::GRID_LEVEL_SET
@ GRID_LEVEL_SET
Definition Types.h:416
openvdb::v10_0::GRID_UNKNOWN
@ GRID_UNKNOWN
Definition Types.h:415
openvdb::v10_0::Int64
int64_t Int64
Definition Types.h:57
openvdb::v10_0::PointIndex32
PointIndex< Index32, 0 > PointIndex32
Definition Types.h:178
openvdb::v10_0::Int
Int32 Int
Definition Types.h:58
openvdb::v10_0::Vec2I
math::Vec2< Index32 > Vec2I
Definition Types.h:64
openvdb::v10_0::WeakPtr
std::weak_ptr< T > WeakPtr
Definition Types.h:115
openvdb::v10_0::Mat4R
math::Mat4< Real > Mat4R
Definition Types.h:101
openvdb::v10_0::Index32
uint32_t Index32
Definition Types.h:52
openvdb::v10_0::ConstPtrCast
SharedPtr< T > ConstPtrCast(const SharedPtr< U > &ptr)
Return a new shared pointer that points to the same object as the given pointer but with possibly dif...
Definition Types.h:126
openvdb::v10_0::BBoxd
math::BBox< Vec3d > BBoxd
Definition Types.h:84
openvdb::v10_0::Mat3R
math::Mat3< Real > Mat3R
Definition Types.h:96
openvdb::v10_0::Vec3I
math::Vec3< Index32 > Vec3I
Definition Types.h:73
openvdb::v10_0::Vec3R
math::Vec3< Real > Vec3R
Definition Types.h:72
openvdb::v10_0::DynamicPtrCast
SharedPtr< T > DynamicPtrCast(const SharedPtr< U > &ptr)
Return a new shared pointer that is either null or points to the same object as the given pointer aft...
Definition Types.h:136
openvdb::v10_0::Vec4H
math::Vec4< math::half > Vec4H
Definition Types.h:90
openvdb::v10_0::Int32
int32_t Int32
Definition Types.h:56
openvdb::v10_0::Index64
uint64_t Index64
Definition Types.h:53
openvdb::v10_0::NUM_GRID_CLASSES
@ NUM_GRID_CLASSES
Definition Types.h:420
openvdb::v10_0::Vec2f
math::Vec2< float > Vec2f
Definition Types.h:65
openvdb::v10_0::SharedPtr
std::shared_ptr< T > SharedPtr
Definition Types.h:114
openvdb::v10_0::MergePolicy
MergePolicy
Definition Types.h:467
openvdb::v10_0::MERGE_ACTIVE_STATES
@ MERGE_ACTIVE_STATES
Definition Types.h:468
openvdb::v10_0::MERGE_NODES
@ MERGE_NODES
Definition Types.h:469
openvdb::v10_0::MERGE_ACTIVE_STATES_AND_NODES
@ MERGE_ACTIVE_STATES_AND_NODES
Definition Types.h:470
openvdb::v10_0::Vec4R
math::Vec4< Real > Vec4R
Definition Types.h:87
openvdb::v10_0::Vec3U8
math::Vec3< uint8_t > Vec3U8
Definition Types.h:76
openvdb::v10_0::VecType
VecType
Definition Types.h:444
openvdb::v10_0::VEC_CONTRAVARIANT_ABSOLUTE
@ VEC_CONTRAVARIANT_ABSOLUTE
Definition Types.h:449
openvdb::v10_0::VEC_CONTRAVARIANT_RELATIVE
@ VEC_CONTRAVARIANT_RELATIVE
Definition Types.h:448
openvdb::v10_0::VEC_COVARIANT
@ VEC_COVARIANT
Definition Types.h:446
openvdb::v10_0::VEC_COVARIANT_NORMALIZE
@ VEC_COVARIANT_NORMALIZE
Definition Types.h:447
openvdb::v10_0::VEC_INVARIANT
@ VEC_INVARIANT
Definition Types.h:445
openvdb::v10_0::NUM_VEC_TYPES
@ NUM_VEC_TYPES
Definition Types.h:451
openvdb::v10_0::StaticPtrCast
SharedPtr< T > StaticPtrCast(const SharedPtr< U > &ptr)
Return a new shared pointer that points to the same object as the given pointer after a static_cast.
Definition Types.h:146
openvdb::v10_0::QuatR
math::Quat< Real > QuatR
Definition Types.h:106
openvdb::v10_0::typeNameAsString
const char * typeNameAsString()
Definition Types.h:477
openvdb::v10_0::PointDataIndex32
PointIndex< Index32, 1 > PointDataIndex32
Definition Types.h:181
openvdb
Definition Exceptions.h:13
OPENVDB_TARGET_BITS
#define OPENVDB_TARGET_BITS(SHIFT, PROMOTE)
Definition Types.h:324
openvdb::v10_0::CanConvertType< PointDataIndex32, PointIndex32 >::value
@ value
Definition Types.h:382
openvdb::v10_0::CanConvertType< PointIndex32, PointDataIndex32 >::value
@ value
Definition Types.h:381
openvdb::v10_0::CanConvertType< T0, math::Vec2< T1 > >::value
@ value
Definition Types.h:376
openvdb::v10_0::CanConvertType< T0, math::Vec3< T1 > >::value
@ value
Definition Types.h:378
openvdb::v10_0::CanConvertType< T0, math::Vec4< T1 > >::value
@ value
Definition Types.h:380
openvdb::v10_0::CanConvertType< T, ValueMask >::value
@ value
Definition Types.h:384
openvdb::v10_0::CanConvertType< T, math::Vec2< T > >::value
@ value
Definition Types.h:369
openvdb::v10_0::CanConvertType< T, math::Vec3< T > >::value
@ value
Definition Types.h:370
openvdb::v10_0::CanConvertType< T, math::Vec4< T > >::value
@ value
Definition Types.h:371
openvdb::v10_0::CanConvertType< ValueMask, T >::value
@ value
Definition Types.h:386
openvdb::v10_0::CanConvertType< math::Vec2< T >, math::Vec2< T > >::value
@ value
Definition Types.h:372
openvdb::v10_0::CanConvertType< math::Vec3< T >, math::Vec3< T > >::value
@ value
Definition Types.h:373
openvdb::v10_0::CanConvertType< math::Vec4< T >, math::Vec4< T > >::value
@ value
Definition Types.h:374
openvdb::v10_0::CanConvertType
CanConvertType<FromType, ToType>::value is true if a value of type ToType can be constructed from a v...
Definition Types.h:364
openvdb::v10_0::CanConvertType::value
@ value
Definition Types.h:364
openvdb::v10_0::ConvertElementType< math::Mat3< T >, SubT >::Type
math::Mat3< SubT > Type
Definition Types.h:286
openvdb::v10_0::ConvertElementType< math::Mat4< T >, SubT >::Type
math::Mat4< SubT > Type
Definition Types.h:287
openvdb::v10_0::ConvertElementType< math::Quat< T >, SubT >::Type
math::Quat< SubT > Type
Definition Types.h:285
openvdb::v10_0::ConvertElementType< math::Vec2< T >, SubT >::Type
math::Vec2< SubT > Type
Definition Types.h:282
openvdb::v10_0::ConvertElementType< math::Vec3< T >, SubT >::Type
math::Vec3< SubT > Type
Definition Types.h:283
openvdb::v10_0::ConvertElementType< math::Vec4< T >, SubT >::Type
math::Vec4< SubT > Type
Definition Types.h:284
openvdb::v10_0::ConvertElementType
Conversion classes for changing the underlying type of VDB types.
Definition Types.h:281
openvdb::v10_0::ConvertElementType::Type
SubT Type
Definition Types.h:281
openvdb::v10_0::CopyConstness
CopyConstness<T1, T2>::Type is either const T2 or T2 with no const qualifier, depending on whether T1...
Definition Types.h:399
openvdb::v10_0::CopyConstness::Type
typename std::remove_const< ToType >::type Type
Definition Types.h:400
openvdb::v10_0::IsSpecializationOf
Helper metafunction used to determine if the first template parameter is a specialization of the clas...
Definition Types.h:192
openvdb::v10_0::MatTraits< T, false >::ElementType
T ElementType
Definition Types.h:249
openvdb::v10_0::MatTraits< T, false >::Size
static const int Size
Definition Types.h:248
openvdb::v10_0::MatTraits< T, false >::IsMat
static const bool IsMat
Definition Types.h:247
openvdb::v10_0::MatTraits
Definition Types.h:238
openvdb::v10_0::MatTraits::Size
static const int Size
Definition Types.h:240
openvdb::v10_0::MatTraits::ElementType
typename T::ValueType ElementType
Definition Types.h:241
openvdb::v10_0::MatTraits::IsMat
static const bool IsMat
Definition Types.h:239
openvdb::v10_0::PointIndex
Integer wrapper, required to distinguish PointIndexGrid and PointDataGrid from Int32Grid and Int64Gri...
Definition Types.h:157
openvdb::v10_0::PointIndex::PointIndex
PointIndex(T i)
Explicit type conversion constructor.
Definition Types.h:165
openvdb::v10_0::PointIndex::PointIndex
PointIndex(IntType i=IntType(0))
Definition Types.h:162
openvdb::v10_0::PointIndex::operator+
PointIndex operator+(T x)
Needed to support the (zeroVal<PointIndex>() + val) idiom.
Definition Types.h:171
openvdb::v10_0::PointIndex::IntType
IntType_ IntType
Definition Types.h:160
openvdb::v10_0::PromoteContainerType
Definition Types.h:340
openvdb::v10_0::PromoteContainerType::Previous
ContainerT< typename PromoteType< T >::Previous > Previous
Definition Types.h:346
openvdb::v10_0::PromoteContainerType::Demote
ContainerT< typename PromoteType< T >::template Demote< Shift > > Demote
Definition Types.h:342
openvdb::v10_0::PromoteContainerType::Highest
ContainerT< typename PromoteType< T >::Highest > Highest
Definition Types.h:343
openvdb::v10_0::PromoteContainerType::Lowest
ContainerT< typename PromoteType< T >::Lowest > Lowest
Definition Types.h:344
openvdb::v10_0::PromoteContainerType::Next
ContainerT< typename PromoteType< T >::Next > Next
Definition Types.h:345
openvdb::v10_0::PromoteContainerType::Promote
ContainerT< typename PromoteType< T >::template Promote< Shift > > Promote
Definition Types.h:341
openvdb::v10_0::PromoteType
Promotion classes which provide an interface for elevating and demoting a scalar or VDB type to a hig...
Definition Types.h:315
openvdb::v10_0::PromoteType::Next
Promote< 1 > Next
Definition Types.h:334
openvdb::v10_0::PromoteType::Promote
typename TypeT< std::max(size_t(8), std::min(size_t(64),(true ? size_t(8) *(sizeof(T)<< Shift) : size_t(8) *(sizeof(T)> >Shift)))) >::type Promote
Definition Types.h:328
openvdb::v10_0::PromoteType::Previous
Demote< 1 > Previous
Definition Types.h:335
openvdb::v10_0::PromoteType::Lowest
typename TypeT< 8ul >::type Lowest
Definition Types.h:333
openvdb::v10_0::PromoteType::Demote
typename TypeT< std::max(size_t(8), std::min(size_t(64),(false ? size_t(8) *(sizeof(T)<< Shift) : size_t(8) *(sizeof(T)> >Shift)))) >::type Demote
Definition Types.h:329
openvdb::v10_0::PromoteType::Highest
typename TypeT< 64ul >::type Highest
Definition Types.h:332
openvdb::v10_0::QuatTraits< T, false >::ElementType
T ElementType
Definition Types.h:232
openvdb::v10_0::QuatTraits< T, false >::Size
static const int Size
Definition Types.h:231
openvdb::v10_0::QuatTraits< T, false >::IsQuat
static const bool IsQuat
Definition Types.h:230
openvdb::v10_0::QuatTraits
Definition Types.h:221
openvdb::v10_0::QuatTraits::Size
static const int Size
Definition Types.h:223
openvdb::v10_0::QuatTraits::ElementType
typename T::ValueType ElementType
Definition Types.h:224
openvdb::v10_0::QuatTraits::IsQuat
static const bool IsQuat
Definition Types.h:222
openvdb::v10_0::SwappedCombineOp::SwappedCombineOp
SwappedCombineOp(CombineOp &_op)
Definition Types.h:622
openvdb::v10_0::SwappedCombineOp::operator()
void operator()(CombineArgs< ValueType > &args)
Definition Types.h:624
openvdb::v10_0::SwappedCombineOp::op
CombineOp & op
Definition Types.h:632
openvdb::v10_0::ValueTraits< T, false >::ElementType
T ElementType
Definition Types.h:275
openvdb::v10_0::ValueTraits< T, false >::Elements
static const int Elements
Definition Types.h:274
openvdb::v10_0::ValueTraits< T, false >::IsVec
static const bool IsVec
Definition Types.h:269
openvdb::v10_0::ValueTraits< T, false >::Size
static const int Size
Definition Types.h:273
openvdb::v10_0::ValueTraits< T, false >::IsQuat
static const bool IsQuat
Definition Types.h:270
openvdb::v10_0::ValueTraits< T, false >::IsScalar
static const bool IsScalar
Definition Types.h:272
openvdb::v10_0::ValueTraits< T, false >::IsMat
static const bool IsMat
Definition Types.h:271
openvdb::v10_0::ValueTraits
Definition Types.h:256
openvdb::v10_0::ValueTraits::Elements
static const int Elements
Definition Types.h:262
openvdb::v10_0::ValueTraits::IsVec
static const bool IsVec
Definition Types.h:257
openvdb::v10_0::ValueTraits::Size
static const int Size
Definition Types.h:261
openvdb::v10_0::ValueTraits::ElementType
typename T::ValueType ElementType
Definition Types.h:263
openvdb::v10_0::ValueTraits::IsQuat
static const bool IsQuat
Definition Types.h:258
openvdb::v10_0::ValueTraits::IsScalar
static const bool IsScalar
Definition Types.h:260
openvdb::v10_0::ValueTraits::IsMat
static const bool IsMat
Definition Types.h:259
openvdb::v10_0::VecTraits< T, false >::ElementType
T ElementType
Definition Types.h:216
openvdb::v10_0::VecTraits< T, false >::IsVec
static const bool IsVec
Definition Types.h:214
openvdb::v10_0::VecTraits< T, false >::Size
static const int Size
Definition Types.h:215
openvdb::v10_0::VecTraits
Definition Types.h:205
openvdb::v10_0::VecTraits::IsVec
static const bool IsVec
Definition Types.h:206
openvdb::v10_0::VecTraits::Size
static const int Size
Definition Types.h:207
openvdb::v10_0::VecTraits::ElementType
typename T::ValueType ElementType
Definition Types.h:208
openvdb::v10_0::types_internal::flt_t< 16ul >::type
math::half type
Definition Types.h:303
openvdb::v10_0::types_internal::flt_t< 32ul >::type
float type
Definition Types.h:304
openvdb::v10_0::types_internal::flt_t< 64ul >::type
double type
Definition Types.h:305
openvdb::v10_0::types_internal::flt_t
Definition Types.h:302
openvdb::v10_0::types_internal::int_t< 16ul, false >::type
uint16_t type
Definition Types.h:298
openvdb::v10_0::types_internal::int_t< 16ul, true >::type
int16_t type
Definition Types.h:294
openvdb::v10_0::types_internal::int_t< 32ul, false >::type
uint32_t type
Definition Types.h:299
openvdb::v10_0::types_internal::int_t< 32ul, true >::type
int32_t type
Definition Types.h:295
openvdb::v10_0::types_internal::int_t< 64ul, false >::type
uint64_t type
Definition Types.h:300
openvdb::v10_0::types_internal::int_t< 64ul, true >::type
int64_t type
Definition Types.h:296
openvdb::v10_0::types_internal::int_t< 8ul, false >::type
uint8_t type
Definition Types.h:297
openvdb::v10_0::types_internal::int_t< 8ul, true >::type
int8_t type
Definition Types.h:293
openvdb::v10_0::types_internal::int_t
Definition Types.h:292
OPENVDB_VERSION_NAME
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
OPENVDB_USE_VERSION_NAMESPACE
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:212