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"
44PXR_NAMESPACE_OPEN_SCOPE
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;
329 bool _duplicateBSplineEndpoints;
332PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
A path value used to locate objects in layers or scenegraphs.
Represents a value type name, i.e.
Token for efficient comparison, assignment, and hashing of known strings.
TfType represents a dynamic runtime type.
The base class for all API schemas.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
UsdRiSplineAPI(const UsdPrim &prim, const TfToken &splineName, const SdfValueTypeName &valuesTypeName, bool doesDuplicateBSplineEndpoints)
Construct a UsdRiSplineAPI with the given splineName on the UsdPrim prim .
USDRI_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
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.
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...
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.
USDRI_API UsdAttribute GetInterpolationAttr() const
Interpolation method for the spline.
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 .
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 bool Validate(std::string *reason) const
Validates the attribute values belonging to the spline.
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.
UsdRiSplineAPI(const UsdPrim &prim=UsdPrim())
Construct a UsdRiSplineAPI on UsdPrim prim .
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 bool DoesDuplicateBSplineEndpoints() const
Returns true if this UsdRiSplineAPI is configured to ensure the endpoints are duplicated when using a...
virtual USDRI_API ~UsdRiSplineAPI()
Destructor.
USDRI_API UsdAttribute GetPositionsAttr() const
Positions of the knots.
USDRI_API UsdAttribute GetValuesAttr() const
Values of the knots.
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 UsdSchemaBase &schemaObj)
Construct a UsdRiSplineAPI on the prim held by schemaObj .
The base class for all schema types in Usd.
UsdPrim GetPrim() const
Return this schema object's held prim.
Singleton registry that provides access to schema type information and the prim definitions for regis...
Provides a container which may hold any type, and provides introspection and iteration over array typ...
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.