24 #ifndef USDRI_GENERATED_SPLINEAPI_H
25 #define USDRI_GENERATED_SPLINEAPI_H
30 #include "pxr/usd/usdRi/api.h"
35 #include "pxr/base/vt/value.h"
42 #include "pxr/base/tf/type.h"
44 PXR_NAMESPACE_OPEN_SCOPE
121 Get(
const UsdStagePtr &stage,
const SdfPath &path);
174 static const TfType &_GetStaticTfType();
176 static bool _IsTypedSchema();
180 const TfType &_GetTfType()
const override;
198 bool doesDuplicateBSplineEndpoints)
200 , _splineName(splineName)
201 , _valuesTypeName(valuesTypeName)
202 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
211 bool doesDuplicateBSplineEndpoints)
213 , _splineName(splineName)
214 , _valuesTypeName(valuesTypeName)
215 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
226 return _duplicateBSplineEndpoints;
232 return _valuesTypeName;
317 bool Validate(std::string *reason)
const;
329 bool _duplicateBSplineEndpoints;
332 PXR_NAMESPACE_CLOSE_SCOPE
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...
USDRI_API UsdAttribute GetInterpolationAttr() const
Interpolation method for 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 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...
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, sampled over time.
USDRI_API bool DoesDuplicateBSplineEndpoints() const
Returns true if this UsdRiSplineAPI is configured to ensure the endpoints are duplicated when using a...
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.
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 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.
USDRI_API SdfValueTypeName GetValuesTypeName() const
Returns the intended typename of the values attribute of the spline.
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...
UsdRiSplineAPI(const UsdPrim &prim=UsdPrim())
Construct a UsdRiSplineAPI on UsdPrim prim .
Contains an asset path and an optional resolved path.
USDRI_API UsdAttribute GetValuesAttr() const
Values of the knots.
TfType represents a dynamic runtime type.
USDRI_API bool Validate(std::string *reason) const
Validates the attribute values belonging to the spline.
Singleton registry that provides access to schema type information and the prim definitions for regis...
USDRI_API UsdAttribute GetPositionsAttr() const
Positions of the knots.
The base class for all schema types in Usd.
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...
UsdPrim GetPrim() const
Return this schema object's held prim.