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"
33PXR_NAMESPACE_OPEN_SCOPE
123 explicit operator bool()
const {
174PXR_NAMESPACE_CLOSE_SCOPE
Stores a 4x4 matrix of double elements.
Token for efficient comparison, assignment, and hashing of known strings.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Schema wrapper for UsdAttribute for authoring and introspecting attributes that are constraint target...
static USDGEOM_API bool IsValid(const UsdAttribute &attr)
Test whether a given UsdAttribute represents valid ConstraintTarget, which implies that creating a Us...
USDGEOM_API GfMatrix4d ComputeInWorldSpace(UsdTimeCode time=UsdTimeCode::Default(), UsdGeomXformCache *xfCache=NULL) const
Computes the value of the constraint target in world space.
USDGEOM_API bool Get(GfMatrix4d *value, UsdTimeCode time=UsdTimeCode::Default()) const
Get the attribute value of the ConstraintTarget at time.
USDGEOM_API UsdGeomConstraintTarget(const UsdAttribute &attr)
Speculative constructor that will produce a valid UsdGeomConstraintTarget when attr already represent...
USDGEOM_API bool Set(const GfMatrix4d &value, UsdTimeCode time=UsdTimeCode::Default()) const
Set the attribute value of the ConstraintTarget at time.
bool IsDefined() const
Return true if the wrapped UsdAttribute::IsDefined(), and in addition the attribute is identified as ...
USDGEOM_API void SetIdentifier(const TfToken &identifier)
Explicitly sets the stored identifier to the given string.
USDGEOM_API TfToken GetIdentifier() const
Get the stored identifier unique to the enclosing model's namespace for this constraint target.
UsdAttribute const & GetAttr() const
Explicit UsdAttribute extractor.
static USDGEOM_API TfToken GetConstraintAttrName(const std::string &constraintName)
Returns the fully namespaced constraint attribute name, given the constraint name.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
static constexpr UsdTimeCode Default()
Produce a UsdTimeCode representing the sentinel value for 'default'.