HDK
|
#include <animQuery.h>
Public Member Functions | |
USDSKEL_API | UsdSkelAnimQuery () |
bool | IsValid () const |
Return true if this query is valid. More... | |
operator bool () const | |
Boolean conversion operator. Equivalent to IsValid(). More... | |
USDSKEL_API UsdPrim | GetPrim () const |
Return the primitive this anim query reads from. More... | |
template<typename Matrix4 > | |
USDSKEL_API bool | ComputeJointLocalTransforms (VtArray< Matrix4 > *xforms, UsdTimeCode time=UsdTimeCode::Default()) const |
USDSKEL_API bool | ComputeJointLocalTransformComponents (VtVec3fArray *translations, VtQuatfArray *rotations, VtVec3hArray *scales, UsdTimeCode time=UsdTimeCode::Default()) const |
USDSKEL_API bool | ComputeBlendShapeWeights (VtFloatArray *weights, UsdTimeCode time=UsdTimeCode::Default()) const |
USDSKEL_API bool | GetJointTransformTimeSamples (std::vector< double > *times) const |
USDSKEL_API bool | GetJointTransformTimeSamplesInInterval (const GfInterval &interval, std::vector< double > *times) const |
USDSKEL_API bool | GetJointTransformAttributes (std::vector< UsdAttribute > *attrs) const |
Get the attributes contributing to JointTransform computations. More... | |
USDSKEL_API bool | JointTransformsMightBeTimeVarying () const |
USDSKEL_API bool | GetBlendShapeWeightTimeSamples (std::vector< double > *attrs) const |
USDSKEL_API bool | GetBlendShapeWeightTimeSamplesInInterval (const GfInterval &interval, std::vector< double > *times) const |
USDSKEL_API bool | GetBlendShapeWeightAttributes (std::vector< UsdAttribute > *attrs) const |
Get the attributes contributing to blendshape weight computations. More... | |
USDSKEL_API bool | BlendShapeWeightsMightBeTimeVarying () const |
USDSKEL_API VtTokenArray | GetJointOrder () const |
USDSKEL_API VtTokenArray | GetBlendShapeOrder () const |
USDSKEL_API std::string | GetDescription () const |
Friends | |
class | UsdSkel_CacheImpl |
bool | operator== (const UsdSkelAnimQuery &lhs, const UsdSkelAnimQuery &rhs) |
bool | operator!= (const UsdSkelAnimQuery &lhs, const UsdSkelAnimQuery &rhs) |
size_t | hash_value (const UsdSkelAnimQuery &query) |
Class providing efficient queries of primitives that provide skel animation.
Definition at line 54 of file animQuery.h.
|
inline |
Definition at line 58 of file animQuery.h.
USDSKEL_API bool UsdSkelAnimQuery::BlendShapeWeightsMightBeTimeVarying | ( | ) | const |
Return true if it possible, but not certain, that the blend shape weights computed through this animation query change over time, false otherwise.
USDSKEL_API bool UsdSkelAnimQuery::ComputeBlendShapeWeights | ( | VtFloatArray * | weights, |
UsdTimeCode | time = UsdTimeCode::Default() |
||
) | const |
USDSKEL_API bool UsdSkelAnimQuery::ComputeJointLocalTransformComponents | ( | VtVec3fArray * | translations, |
VtQuatfArray * | rotations, | ||
VtVec3hArray * | scales, | ||
UsdTimeCode | time = UsdTimeCode::Default() |
||
) | const |
Compute translation,rotation,scale components of the joint transforms in joint-local space. This is provided to facilitate direct streaming of animation data in a form that can efficiently be processed for animation blending.
USDSKEL_API bool UsdSkelAnimQuery::ComputeJointLocalTransforms | ( | VtArray< Matrix4 > * | xforms, |
UsdTimeCode | time = UsdTimeCode::Default() |
||
) | const |
Compute joint transforms in joint-local space. Transforms are returned in the order specified by the joint ordering of the animation primitive itself.
USDSKEL_API VtTokenArray UsdSkelAnimQuery::GetBlendShapeOrder | ( | ) | const |
Returns an array of tokens describing the ordering of blend shape channels in the animation.
USDSKEL_API bool UsdSkelAnimQuery::GetBlendShapeWeightAttributes | ( | std::vector< UsdAttribute > * | attrs | ) | const |
Get the attributes contributing to blendshape weight computations.
USDSKEL_API bool UsdSkelAnimQuery::GetBlendShapeWeightTimeSamples | ( | std::vector< double > * | attrs | ) | const |
Get the time samples at which values contributing to blend shape weights have been set.
USDSKEL_API bool UsdSkelAnimQuery::GetBlendShapeWeightTimeSamplesInInterval | ( | const GfInterval & | interval, |
std::vector< double > * | times | ||
) | const |
Get the time samples at which values contributing to blend shape weights are set, over interval
.
USDSKEL_API std::string UsdSkelAnimQuery::GetDescription | ( | ) | const |
USDSKEL_API VtTokenArray UsdSkelAnimQuery::GetJointOrder | ( | ) | const |
Returns an array of tokens describing the ordering of joints in the animation.
USDSKEL_API bool UsdSkelAnimQuery::GetJointTransformAttributes | ( | std::vector< UsdAttribute > * | attrs | ) | const |
Get the attributes contributing to JointTransform computations.
USDSKEL_API bool UsdSkelAnimQuery::GetJointTransformTimeSamples | ( | std::vector< double > * | times | ) | const |
Get the time samples at which values contributing to joint transforms are set. This only computes the time samples for sampling transforms in joint-local space, and does not include time samples affecting the root transformation.
USDSKEL_API bool UsdSkelAnimQuery::GetJointTransformTimeSamplesInInterval | ( | const GfInterval & | interval, |
std::vector< double > * | times | ||
) | const |
Get the time samples at which values contributing to joint transforms are set, over interval
. This only computes the time samples for sampling transforms in joint-local space, and does not include time samples affecting the root transformation.
USDSKEL_API UsdPrim UsdSkelAnimQuery::GetPrim | ( | ) | const |
Return the primitive this anim query reads from.
|
inline |
Return true if this query is valid.
Definition at line 61 of file animQuery.h.
USDSKEL_API bool UsdSkelAnimQuery::JointTransformsMightBeTimeVarying | ( | ) | const |
Return true if it possible, but not certain, that joint transforms computed through this animation query change over time, false otherwise.
|
inlineexplicit |
Boolean conversion operator. Equivalent to IsValid().
Definition at line 64 of file animQuery.h.
|
friend |
Definition at line 81 of file animQuery.h.
|
friend |
Inequality comparison. Return false if lhs and rhs represent the same UsdSkelAnimQuery, true otherwise.
Definition at line 75 of file animQuery.h.
|
friend |
Equality comparison. Return true if lhs and rhs represent the same UsdSkelAnimQuery, false otherwise.
Definition at line 68 of file animQuery.h.
|
friend |
Definition at line 192 of file animQuery.h.