7 #ifndef USDRI_GENERATED_SPLINEAPI_H 8 #define USDRI_GENERATED_SPLINEAPI_H 13 #include "pxr/usd/usdRi/api.h" 18 #include "pxr/base/vt/value.h" 25 #include "pxr/base/tf/type.h" 27 PXR_NAMESPACE_OPEN_SCOPE
104 Get(
const UsdStagePtr &stage,
const SdfPath &path);
157 static const TfType &_GetStaticTfType();
159 static bool _IsTypedSchema();
163 const TfType &_GetTfType()
const override;
181 bool doesDuplicateBSplineEndpoints)
183 , _splineName(splineName)
184 , _valuesTypeName(valuesTypeName)
185 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
194 bool doesDuplicateBSplineEndpoints)
196 , _splineName(splineName)
197 , _valuesTypeName(valuesTypeName)
198 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
209 return _duplicateBSplineEndpoints;
215 return _valuesTypeName;
300 bool Validate(std::string *reason)
const;
312 bool _duplicateBSplineEndpoints;
315 PXR_NAMESPACE_CLOSE_SCOPE
USDRI_API SdfValueTypeName GetValuesTypeName() const
Returns the intended typename of the values attribute of the spline.
static USDRI_API UsdRiSplineAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdRiSplineAPI holding the prim adhering to this schema at path on stage.
USDRI_API bool DoesDuplicateBSplineEndpoints() const
Returns true if this UsdRiSplineAPI is configured to ensure the endpoints are duplicated when using a...
UsdPrim GetPrim() const
Return this schema object's held prim.
UsdRiSplineAPI(const UsdSchemaBase &schemaObj)
Construct a UsdRiSplineAPI on the prim held by schemaObj .
static USDRI_API bool CanApply(const UsdPrim &prim, std::string *whyNot=nullptr)
Returns true if this single-apply API schema can be applied to the given prim.
Represents a value type name, i.e.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
The base class for all API schemas.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
USDRI_API UsdAttribute GetValuesAttr() const
Values of the knots.
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Token for efficient comparison, assignment, and hashing of known strings.
UsdRiSplineAPI(const UsdPrim &prim, const TfToken &splineName, const SdfValueTypeName &valuesTypeName, bool doesDuplicateBSplineEndpoints)
Construct a UsdRiSplineAPI with the given splineName on the UsdPrim prim .
UsdRiSplineAPI(const UsdSchemaBase &schemaObj, const TfToken &splineName, const SdfValueTypeName &valuesTypeName, bool doesDuplicateBSplineEndpoints)
Construct a UsdRiSplineAPI with the given splineName on the prim held by schemaObj .
virtual USDRI_API ~UsdRiSplineAPI()
Destructor.
USDRI_API UsdAttribute CreatePositionsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPositionsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
USDRI_API UsdAttribute CreateValuesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetValuesAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDRI_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
A path value used to locate objects in layers or scenegraphs.
static USDRI_API UsdRiSplineAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
UsdRiSplineAPI(const UsdPrim &prim=UsdPrim())
Construct a UsdRiSplineAPI on UsdPrim prim .
USDRI_API UsdAttribute GetInterpolationAttr() const
Interpolation method for the spline.
USDRI_API UsdAttribute CreateInterpolationAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetInterpolationAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Contains an asset path and optional evaluated and resolved paths.
TfType represents a dynamic runtime type.
Singleton registry that provides access to schema type information and the prim definitions for regis...
USDRI_API bool Validate(std::string *reason) const
Validates the attribute values belonging to the spline.
The base class for all schema types in Usd.
USDRI_API UsdAttribute GetPositionsAttr() const
Positions of the knots.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
static USDRI_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...