24 #ifndef PXR_USD_USD_GEOM_CONSTRAINT_TARGET_H
25 #define PXR_USD_USD_GEOM_CONSTRAINT_TARGET_H
28 #include "pxr/usd/usdGeom/api.h"
29 #include "pxr/usd/usd/attribute.h"
33 PXR_NAMESPACE_OPEN_SCOPE
123 explicit operator bool()
const {
174 PXR_NAMESPACE_CLOSE_SCOPE
176 #endif // USD_CONSTRAINT_TARGET_H
USDGEOM_API void SetIdentifier(const TfToken &identifier)
Explicitly sets the stored identifier to the given string.
Schema wrapper for UsdAttribute for authoring and introspecting attributes that are constraint target...
bool IsDefined() const
Return true if the wrapped UsdAttribute::IsDefined(), and in addition the attribute is identified as ...
USDGEOM_API bool Get(GfMatrix4d *value, UsdTimeCode time=UsdTimeCode::Default()) const
Get the attribute value of the ConstraintTarget at time.
Scenegraph object for authoring and retrieving numeric, string, and array valued data, sampled over time.
static USDGEOM_API TfToken GetConstraintAttrName(const std::string &constraintName)
Returns the fully namespaced constraint attribute name, given the constraint name.
USDGEOM_API GfMatrix4d ComputeInWorldSpace(UsdTimeCode time=UsdTimeCode::Default(), UsdGeomXformCache *xfCache=NULL) const
Computes the value of the constraint target in world space.
Token for efficient comparison, assignment, and hashing of known strings.
Stores a 4x4 matrix of double elements.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
UsdAttribute const & GetAttr() const
Explicit UsdAttribute extractor.
static USDGEOM_API bool IsValid(const UsdAttribute &attr)
Test whether a given UsdAttribute represents valid ConstraintTarget, which implies that creating a Us...
USDGEOM_API TfToken GetIdentifier() const
Get the stored identifier unique to the enclosing model's namespace for this constraint target...
static constexpr UsdTimeCode Default()
Produce a UsdTimeCode representing the sentinel value for 'default'.
USDGEOM_API bool Set(const GfMatrix4d &value, UsdTimeCode time=UsdTimeCode::Default()) const
Set the attribute value of the ConstraintTarget at time.