HDK
|
#include <xformable.h>
Public Member Functions | |
XformQuery () | |
USDGEOM_API | XformQuery (const UsdGeomXformable &xformable) |
USDGEOM_API bool | GetLocalTransformation (GfMatrix4d *transform, const UsdTimeCode time) const |
bool | GetResetXformStack () const |
Returns whether the xformable resets its parent's transformation. More... | |
USDGEOM_API bool | TransformMightBeTimeVarying () const |
Returns whether the xform value might change over time. More... | |
USDGEOM_API bool | HasNonEmptyXformOpOrder () const |
Returns whether xformOpOrder is non-empty. More... | |
USDGEOM_API bool | GetTimeSamples (std::vector< double > *times) const |
USDGEOM_API bool | GetTimeSamplesInInterval (const GfInterval &interval, std::vector< double > *times) const |
USDGEOM_API bool | IsAttributeIncludedInLocalTransform (const TfToken &attrName) const |
Helper class that caches the ordered vector of UsGeomXformOps that contribute to the local transformation of an xformable prim
Internally, the class initializes UsdAttributeQuery objects for the xformOp attributes in order to facilitate efficient querying of their values.
Definition at line 379 of file xformable.h.
|
inline |
Definition at line 381 of file xformable.h.
USDGEOM_API UsdGeomXformable::XformQuery::XformQuery | ( | const UsdGeomXformable & | xformable | ) |
Constructs an XformQuery object for the given xformable prim. Caches the ordered xformOps and initializes an UsdAttributeQuery internally for all the associated attributes.
USDGEOM_API bool UsdGeomXformable::XformQuery::GetLocalTransformation | ( | GfMatrix4d * | transform, |
const UsdTimeCode | time | ||
) | const |
Utilizes the internally cached UsdAttributeQuery's to efficiently compute the transform value at the given time
.
|
inline |
Returns whether the xformable resets its parent's transformation.
Definition at line 398 of file xformable.h.
USDGEOM_API bool UsdGeomXformable::XformQuery::GetTimeSamples | ( | std::vector< double > * | times | ) | const |
Sets the vector of times at which xformOp samples have been authored in the cached set of xform ops.
USDGEOM_API bool UsdGeomXformable::XformQuery::GetTimeSamplesInInterval | ( | const GfInterval & | interval, |
std::vector< double > * | times | ||
) | const |
Sets the vector of times in the interval
at which xformOp samples have been authored in the cached set of xform ops.
USDGEOM_API bool UsdGeomXformable::XformQuery::HasNonEmptyXformOpOrder | ( | ) | const |
Returns whether xformOpOrder is non-empty.
USDGEOM_API bool UsdGeomXformable::XformQuery::IsAttributeIncludedInLocalTransform | ( | const TfToken & | attrName | ) | const |
Returns whether the given attribute affects the local transformation computed for this query.
USDGEOM_API bool UsdGeomXformable::XformQuery::TransformMightBeTimeVarying | ( | ) | const |
Returns whether the xform value might change over time.