|
HDK
|
#include <openvdb/openvdb.h>#include <openvdb/tools/PointIndexGrid.h>#include <openvdb/points/PointDataGrid.h>#include "UT_API.h"#include "UT_Assert.h"#include "UT_BoundingBox.h"#include "UT_Matrix4.h"#include "UT_Matrix3.h"#include "UT_Matrix2.h"#include <SYS/SYS_Math.h>
Include dependency graph for UT_VDBUtils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | UT_VDBMath< T > |
| struct | UT_VDBMath< bool > |
Namespaces | |
| UT_VDBUtils | |
Macros | |
| #define | UT_VDB_CALL(GRIDT, RETURN, FNAME, GRIDBASE,...) |
| #define | UT_VDB_DECL_PROCESS_TYPED_GRID(GRID_BASE_T) |
| Utility function that, given a generic grid pointer, calls a functor on the fully-resolved grid. More... | |
| #define | UTvdbCallRealType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallScalarType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallVec3Type(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallPointType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallBoolType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallAllType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbCallAllTopology(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnRealType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnScalarType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnVec3Type(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnPointType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnBoolType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnAllType(TYPE, FNAME, GRIDBASE,...) |
| #define | UTvdbReturnAllTopology(TYPE, FNAME, GRIDBASE,...) |
Enumerations | |
| enum | UT_VDBType { UT_VDB_INVALID, UT_VDB_FLOAT, UT_VDB_DOUBLE, UT_VDB_INT32, UT_VDB_INT64, UT_VDB_BOOL, UT_VDB_VEC3F, UT_VDB_VEC3D, UT_VDB_VEC3I, UT_VDB_POINTINDEX, UT_VDB_POINTDATA } |
Functions | |
| UT_API size_t | UTformatBuffer (char *buffer, size_t buffer_size, const UT_VDBType &v) |
| UT_API const char * | UTvdbType (UT_VDBType t) |
| UT_API UT_VDBType | UTvdbType (const char *n) |
| void | UTvdbInitialize () |
| Calls openvdb::initialize() More... | |
| UT_VDBType | UTvdbGetGridType (const openvdb::GridBase &grid) |
| Find the UT_VDBType from a grid. More... | |
| const char * | UTvdbGetGridTypeString (const openvdb::GridBase &grid) |
| Return the string representation of a grid's underlying value type. More... | |
| int | UTvdbGetGridTupleSize (UT_VDBType type) |
| Returns the tuple size of a grid given its value type. More... | |
| int | UTvdbGetGridTupleSize (const openvdb::GridBase &grid) |
| Returns the tuple size of a grid. More... | |
| template<typename GridType , typename OpType , typename GridBaseType > | |
| void | UT_VDBUtils::callTypedGrid (GridBaseType &grid, OpType &op) |
| UT_BoundingBoxD | UTvdbConvert (const openvdb::CoordBBox &bbox) |
| Bounding box conversion from openvdb to UT. More... | |
| openvdb::math::CoordBBox | UTvdbConvert (const UT_BoundingBoxI &bbox) |
| Bounding box conversion from openvdb to UT. More... | |
| openvdb::math::Transform::Ptr | UTvdbCreateTransform (const UT_Vector3 &orig, const UT_Vector3 &voxsize) |
| template<typename T > | |
| openvdb::math::Vec4< T > | SYSabs (const openvdb::math::Vec4< T > &v1) |
| template<typename T > | |
| openvdb::math::Vec3< T > | SYSabs (const openvdb::math::Vec3< T > &v1) |
| template<typename T > | |
| openvdb::math::Vec2< T > | SYSabs (const openvdb::math::Vec2< T > &v1) |
| template<typename T > | |
| openvdb::math::Vec4< T > | SYSmin (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec4< T > | SYSmax (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec4< T > | SYSmin (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2, const openvdb::math::Vec4< T > &v3) |
| template<typename T > | |
| openvdb::math::Vec4< T > | SYSmax (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2, const openvdb::math::Vec4< T > &v3) |
| template<typename T > | |
| openvdb::math::Vec3< T > | SYSmin (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec3< T > | SYSmax (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec3< T > | SYSmin (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2, const openvdb::math::Vec3< T > &v3) |
| template<typename T > | |
| openvdb::math::Vec3< T > | SYSmax (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2, const openvdb::math::Vec3< T > &v3) |
| template<typename T > | |
| openvdb::math::Vec2< T > | SYSmin (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec2< T > | SYSmax (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2) |
| template<typename T > | |
| openvdb::math::Vec2< T > | SYSmin (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2, const openvdb::math::Vec2< T > &v3) |
| template<typename T > | |
| openvdb::math::Vec2< T > | SYSmax (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2, const openvdb::math::Vec2< T > &v3) |
| template<typename GridType > | |
| const GridType * | UTvdbGridCast (const openvdb::GridBase *grid) |
| template<typename GridType > | |
| GridType * | UTvdbGridCast (openvdb::GridBase *grid) |
| template<typename GridType > | |
| const GridType & | UTvdbGridCast (const openvdb::GridBase &grid) |
| template<typename GridType > | |
| GridType & | UTvdbGridCast (openvdb::GridBase &grid) |
| template<typename GridType > | |
| GridType::ConstPtr | UTvdbGridCast (openvdb::GridBase::ConstPtr grid) |
| template<typename GridType > | |
| GridType::Ptr | UTvdbGridCast (openvdb::GridBase::Ptr grid) |
| template<typename S > | |
| UT_Matrix4T< S > | UTvdbConvert (const openvdb::math::Mat4< S > &src) |
| Matrix conversion from openvdb to UT. More... | |
| template<typename S > | |
| UT_Matrix3T< S > | UTvdbConvert (const openvdb::math::Mat3< S > &src) |
| Matrix conversion from openvdb to UT. More... | |
| template<typename S > | |
| UT_Matrix2T< S > | UTvdbConvert (const openvdb::math::Mat2< S > &src) |
| Matrix conversion from openvdb to UT. More... | |
| template<typename S > | |
| openvdb::math::Mat4< S > | UTvdbConvert (const UT_Matrix4T< S > &src) |
| Matrix conversion from UT to openvdb. More... | |
| template<typename S > | |
| openvdb::math::Mat3< S > | UTvdbConvert (const UT_Matrix3T< S > &src) |
| Matrix conversion from UT to openvdb. More... | |
| template<typename S > | |
| openvdb::math::Mat2< S > | UTvdbConvert (const UT_Matrix2T< S > &src) |
| Matrix conversion from UT to openvdb. More... | |
| template<typename S > | |
| UT_Vector4T< S > | UTvdbConvert (const openvdb::math::Vec4< S > &src) |
| Vector conversion from openvdb to UT. More... | |
| template<typename S > | |
| UT_Vector3T< S > | UTvdbConvert (const openvdb::math::Vec3< S > &src) |
| Vector conversion from openvdb to UT. More... | |
| template<typename S > | |
| UT_Vector2T< S > | UTvdbConvert (const openvdb::math::Vec2< S > &src) |
| Vector conversion from openvdb to UT. More... | |
| template<typename S > | |
| openvdb::math::Vec4< S > | UTvdbConvert (const UT_Vector4T< S > &src) |
| Vector conversion from UT to openvdb. More... | |
| template<typename S > | |
| openvdb::math::Vec3< S > | UTvdbConvert (const UT_Vector3T< S > &src) |
| Vector conversion from UT to openvdb. More... | |
| template<typename S > | |
| openvdb::math::Vec2< S > | UTvdbConvert (const UT_Vector2T< S > &src) |
| Vector conversion from UT to openvdb. More... | |
| #define UT_VDB_CALL | ( | GRIDT, | |
| RETURN, | |||
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Definition at line 357 of file UT_VDBUtils.h.
| #define UT_VDB_DECL_PROCESS_TYPED_GRID | ( | GRID_BASE_T | ) |
Utility function that, given a generic grid pointer, calls a functor on the fully-resolved grid.
false if the grid type is unknown or unhandled. Definition at line 244 of file UT_VDBUtils.h.
| #define UTvdbCallAllTopology | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 412 of file UT_VDBUtils.h.
| #define UTvdbCallAllType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 408 of file UT_VDBUtils.h.
| #define UTvdbCallBoolType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 404 of file UT_VDBUtils.h.
| #define UTvdbCallPointType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 398 of file UT_VDBUtils.h.
| #define UTvdbCallRealType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 377 of file UT_VDBUtils.h.
| #define UTvdbCallScalarType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 383 of file UT_VDBUtils.h.
| #define UTvdbCallVec3Type | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 390 of file UT_VDBUtils.h.
| #define UTvdbReturnAllTopology | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 472 of file UT_VDBUtils.h.
| #define UTvdbReturnAllType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 468 of file UT_VDBUtils.h.
| #define UTvdbReturnBoolType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 464 of file UT_VDBUtils.h.
| #define UTvdbReturnPointType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 458 of file UT_VDBUtils.h.
| #define UTvdbReturnRealType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 437 of file UT_VDBUtils.h.
| #define UTvdbReturnScalarType | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 443 of file UT_VDBUtils.h.
| #define UTvdbReturnVec3Type | ( | TYPE, | |
| FNAME, | |||
| GRIDBASE, | |||
| ... | |||
| ) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 450 of file UT_VDBUtils.h.
| enum UT_VDBType |
| Enumerator | |
|---|---|
| UT_VDB_INVALID | |
| UT_VDB_FLOAT | |
| UT_VDB_DOUBLE | |
| UT_VDB_INT32 | |
| UT_VDB_INT64 | |
| UT_VDB_BOOL | |
| UT_VDB_VEC3F | |
| UT_VDB_VEC3D | |
| UT_VDB_VEC3I | |
| UT_VDB_POINTINDEX | |
| UT_VDB_POINTDATA | |
Definition at line 25 of file UT_VDBUtils.h.
|
inline |
Definition at line 619 of file UT_VDBUtils.h.
|
inline |
Definition at line 627 of file UT_VDBUtils.h.
|
inline |
Definition at line 634 of file UT_VDBUtils.h.
|
inline |
Definition at line 649 of file UT_VDBUtils.h.
|
inline |
Definition at line 665 of file UT_VDBUtils.h.
|
inline |
Definition at line 680 of file UT_VDBUtils.h.
|
inline |
Definition at line 694 of file UT_VDBUtils.h.
|
inline |
Definition at line 707 of file UT_VDBUtils.h.
|
inline |
Definition at line 719 of file UT_VDBUtils.h.
|
inline |
Definition at line 641 of file UT_VDBUtils.h.
|
inline |
Definition at line 657 of file UT_VDBUtils.h.
|
inline |
Definition at line 673 of file UT_VDBUtils.h.
|
inline |
Definition at line 687 of file UT_VDBUtils.h.
|
inline |
Definition at line 701 of file UT_VDBUtils.h.
|
inline |
Definition at line 713 of file UT_VDBUtils.h.
| UT_API size_t UTformatBuffer | ( | char * | buffer, |
| size_t | buffer_size, | ||
| const UT_VDBType & | v | ||
| ) |
| UT_Matrix4T<S> UTvdbConvert | ( | const openvdb::math::Mat4< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 487 of file UT_VDBUtils.h.
| UT_Matrix3T<S> UTvdbConvert | ( | const openvdb::math::Mat3< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 497 of file UT_VDBUtils.h.
| UT_Matrix2T<S> UTvdbConvert | ( | const openvdb::math::Mat2< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 506 of file UT_VDBUtils.h.
| openvdb::math::Mat4<S> UTvdbConvert | ( | const UT_Matrix4T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 517 of file UT_VDBUtils.h.
| openvdb::math::Mat3<S> UTvdbConvert | ( | const UT_Matrix3T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 526 of file UT_VDBUtils.h.
| openvdb::math::Mat2<S> UTvdbConvert | ( | const UT_Matrix2T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 534 of file UT_VDBUtils.h.
| UT_Vector4T<S> UTvdbConvert | ( | const openvdb::math::Vec4< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 545 of file UT_VDBUtils.h.
| UT_Vector3T<S> UTvdbConvert | ( | const openvdb::math::Vec3< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 551 of file UT_VDBUtils.h.
| UT_Vector2T<S> UTvdbConvert | ( | const openvdb::math::Vec2< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 557 of file UT_VDBUtils.h.
| openvdb::math::Vec4<S> UTvdbConvert | ( | const UT_Vector4T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 567 of file UT_VDBUtils.h.
| openvdb::math::Vec3<S> UTvdbConvert | ( | const UT_Vector3T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 573 of file UT_VDBUtils.h.
| openvdb::math::Vec2<S> UTvdbConvert | ( | const UT_Vector2T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 579 of file UT_VDBUtils.h.
|
inline |
Bounding box conversion from openvdb to UT.
Definition at line 588 of file UT_VDBUtils.h.
|
inline |
Bounding box conversion from openvdb to UT.
Definition at line 596 of file UT_VDBUtils.h.
|
inline |
Utility method to construct a Transform that lines up with a cell-centered Houdini volume with specified origin and voxel size.
Definition at line 606 of file UT_VDBUtils.h.
|
inline |
Returns the tuple size of a grid given its value type.
Definition at line 115 of file UT_VDBUtils.h.
|
inline |
Returns the tuple size of a grid.
Definition at line 143 of file UT_VDBUtils.h.
|
inline |
Find the UT_VDBType from a grid.
Definition at line 50 of file UT_VDBUtils.h.
|
inline |
Return the string representation of a grid's underlying value type.
Definition at line 84 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 168 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 173 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 178 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 183 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 188 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 193 of file UT_VDBUtils.h.
|
inline |
Calls openvdb::initialize()
Definition at line 46 of file UT_VDBUtils.h.
| UT_API const char* UTvdbType | ( | UT_VDBType | t | ) |
| UT_API UT_VDBType UTvdbType | ( | const char * | n | ) |