HDK
|
#include <GABC_Util.h>
Classes | |
class | ArchiveEventHandler |
Event functor called when an archive is flushed from the cache. More... | |
class | CollisionResolver |
Class to efficiently find a new name when a collision is detected. More... | |
class | Walker |
Public Types | |
typedef Alembic::Abc::index_t | index_t |
typedef Alembic::Abc::chrono_t | chrono_t |
typedef Alembic::Abc::TimeSamplingPtr | TimeSamplingPtr |
typedef Alembic::Abc::V3d | V3d |
typedef Alembic::Abc::Box3d | Box3d |
typedef Alembic::Abc::M44d | M44d |
typedef Alembic::Abc::ICompoundProperty | ICompoundProperty |
typedef Alembic::Abc::OCompoundProperty | OCompoundProperty |
typedef Alembic::Abc::OScalarProperty | OScalarProperty |
typedef Alembic::Abc::OArrayProperty | OArrayProperty |
typedef Alembic::Abc::ObjectReaderPtr | ObjectReaderPtr |
typedef UT_SharedPtr < ArchiveEventHandler > | ArchiveEventHandlerPtr |
typedef UT_Map< std::string, GABC_OProperty * > | PropertyMap |
typedef std::pair< std::string, GABC_OProperty * > | PropertyMapInsert |
typedef std::vector< std::string > | PathList |
Static Public Member Functions | |
static const char * | getAlembicCompileNamespace () |
Get Alembic namespace name as string. More... | |
static Box3d | getBox (const UT_BoundingBox &box) |
Create a Box3d from a UT_BoundingBox. More... | |
static UT_BoundingBox | getBox (const Box3d &box) |
Create a UT_BoundingBox from a Box3d. More... | |
static void | clearCache (const char *filename=NULL) |
static void | setFileCacheSize (int nfiles) |
Set the cache size. More... | |
static int | fileCacheSize () |
Get the file cache size. More... | |
static bool | addEventHandler (const std::vector< std::string > &filenames, const ArchiveEventHandlerPtr &handler) |
static GABC_IObject | findObject (const std::vector< std::string > &filenames, const std::string &objectpath) |
Find a given GABC_IObject in an Alembic file. More... | |
static GABC_IObject | findObject (const std::vector< std::string > &filenames, ObjectReaderPtr reader) |
static void | getObjectList (PathList &objectpaths, const std::vector< std::string > &filenames, bool include_face_sets=false) |
Return a list of all the objects in an Alembic file. More... | |
static UT_Matrix4D | getM (const M44d &m) |
Create a UT_Matrix4D from an M44d. More... | |
static M44d | getM (const UT_Matrix4D &m) |
Create an M44d from a UT_Matrix4D. More... | |
static bool | getLocalTransform (const std::vector< std::string > &filenames, const std::string &objectpath, fpreal sample_time, UT_Matrix4D &xform, bool &isConstant, bool &inheritsXform) |
static bool | getWorldTransform (const std::vector< std::string > &filenames, const std::string &objectpath, fpreal sample_time, UT_Matrix4D &xform, bool &isConstant, bool &inheritsXform) |
static bool | getWorldTransform (const GABC_IObject &object, fpreal sample_time, UT_Matrix4D &xform, bool &isConstant, bool &inheritsXform) |
static bool | isTransformAnimated (const GABC_IObject &object) |
Test whether an object is static or has an animated transform. More... | |
static GABC_VisibilityType | getVisibility (const GABC_IObject &object, fpreal sample_time, bool &animated, bool check_parent) |
Get the visibility for a GABC_IObject. More... | |
static bool | getBoundingBox (const GABC_IObject &object, fpreal sample_time, UT_BoundingBox &box, bool &isconst) |
Get the bounding box for a GABC_IObject. More... | |
static bool | walk (const std::vector< std::string > &filenames, Walker &walker) |
static bool | walk (const std::vector< std::string > &filenames, Walker &walker, const UT_StringArray &objects) |
static bool | walk (const std::vector< std::string > &filenames, Walker &walker, const UT_Set< std::string > &objects) |
static bool | isABCPropertyAnimated (ICompoundProperty arb) |
static bool | isABCPropertyConstant (ICompoundProperty arb) |
static bool | importUserPropertyDictionary (UT_JSONWriter *vals_writer, UT_JSONWriter *meta_writer, const GABC_IObject &obj, fpreal time) |
static void | exportUserPropertyDictionary (UT_AutoJSONParser &meta_data, UT_AutoJSONParser &vals_data, PropertyMap &up_map, OCompoundProperty *ancestor, GABC_OError &err, const GABC_OOptions &ctx, const GABC_LayerOptions &lopt, GABC_LayerOptions::LayerType ltype) |
static void | getUserPropertyTokens (UT_SortedStringSet &tokens, UT_AutoJSONParser &meta_data, UT_AutoJSONParser &vals_data, GABC_OError &err) |
static fpreal | getSampleIndex (fpreal t, const TimeSamplingPtr &itime, exint nsamp, index_t &i0, index_t &i1) |
Static Public Attributes | |
static const UT_StringHolder | theLockGeometryParameter |
static const UT_StringHolder | theUserPropsValsAttrib |
static const UT_StringHolder | theUserPropsMetaAttrib |
Definition at line 49 of file GABC_Util.h.
Definition at line 68 of file GABC_Util.h.
typedef Alembic::Abc::Box3d GABC_NAMESPACE::GABC_Util::Box3d |
Definition at line 59 of file GABC_Util.h.
Definition at line 55 of file GABC_Util.h.
Definition at line 62 of file GABC_Util.h.
Definition at line 52 of file GABC_Util.h.
typedef Alembic::Abc::M44d GABC_NAMESPACE::GABC_Util::M44d |
Definition at line 60 of file GABC_Util.h.
Definition at line 65 of file GABC_Util.h.
Definition at line 66 of file GABC_Util.h.
Definition at line 63 of file GABC_Util.h.
Definition at line 64 of file GABC_Util.h.
typedef std::vector<std::string> GABC_NAMESPACE::GABC_Util::PathList |
Definition at line 71 of file GABC_Util.h.
Definition at line 69 of file GABC_Util.h.
typedef std::pair<std::string, GABC_OProperty *> GABC_NAMESPACE::GABC_Util::PropertyMapInsert |
Definition at line 70 of file GABC_Util.h.
Definition at line 56 of file GABC_Util.h.
typedef Alembic::Abc::V3d GABC_NAMESPACE::GABC_Util::V3d |
Definition at line 58 of file GABC_Util.h.
|
static |
Add an event handler to be notified of events on the given list of filenames The method returns false if the archive hasn't been loaded yet.
|
static |
Clear the cache. If no filename is given, the entire cache will be cleared.
|
static |
Export user properties from two JSON dictionaries (one containing values, the other containing metadata used to interpret the values) to GABC_OProperties, and store them in the given map.
|
static |
Get the file cache size.
|
static |
Find a given GABC_IObject in an Alembic file.
|
static |
|
static |
Get Alembic namespace name as string.
|
static |
Get the bounding box for a GABC_IObject.
|
inlinestatic |
Create a Box3d from a UT_BoundingBox.
Definition at line 195 of file GABC_Util.h.
|
inlinestatic |
Create a UT_BoundingBox from a Box3d.
Definition at line 201 of file GABC_Util.h.
|
static |
Get the local transform for a given node in an Alembic file. The isConstant
flag will be true if the local transform is constant (even if parent transforms are non-constant).
|
inlinestatic |
Create a UT_Matrix4D from an M44d.
Definition at line 248 of file GABC_Util.h.
|
inlinestatic |
Create an M44d from a UT_Matrix4D.
Definition at line 253 of file GABC_Util.h.
|
static |
Return a list of all the objects in an Alembic file.
|
static |
Gets the samples indices (i0 and i1) corresponding to time 't'. The bias for blending the samples is returned.
|
static |
|
static |
Get the visibility for a GABC_IObject.
|
static |
Get the world transform for a given node in an Alembic file. If the given node is a shape node, the transform up to its parent will be computed. If the transform is constant (including all parents), the isConstant
flag will be set.
The method returns false if there was an error computing the transform.
|
static |
Get the world transform for a GABC_IObject in an Alembic file. If the given node is a shape node, the transform up to its parent will be returned.
|
static |
Import user properties into two JSON dictionaries, one containing values and another containing the metadata for the properties.
|
static |
Check whether or not an Alembic compound property (like arbGeomParams or user properties) is constant/animated over time.
|
static |
|
static |
Test whether an object is static or has an animated transform.
|
static |
Walk the tree in an alembic file. Returns false if traversal was interrupted, otherwise returns true.
|
static |
Process a list of unique objects in an Alembic file (including their children)
|
static |
|
static |
Definition at line 367 of file GABC_Util.h.
|
static |
Definition at line 369 of file GABC_Util.h.
|
static |
Definition at line 368 of file GABC_Util.h.