24 #ifndef USDRI_GENERATED_SPLINEAPI_H
25 #define USDRI_GENERATED_SPLINEAPI_H
30 #include "pxr/usd/usdRi/api.h"
31 #include "pxr/usd/usd/apiSchemaBase.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
35 #include "pxr/base/vt/value.h"
37 #include "pxr/base/gf/vec3d.h"
38 #include "pxr/base/gf/vec3f.h"
39 #include "pxr/base/gf/matrix4d.h"
41 #include "pxr/base/tf/token.h"
42 #include "pxr/base/tf/type.h"
44 PXR_NAMESPACE_OPEN_SCOPE
121 Get(
const UsdStagePtr &stage,
const SdfPath &path);
153 static const TfType &_GetStaticTfType();
155 static bool _IsTypedSchema();
159 const TfType &_GetTfType()
const override;
177 bool doesDuplicateBSplineEndpoints)
179 , _splineName(splineName)
180 , _valuesTypeName(valuesTypeName)
181 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
190 bool doesDuplicateBSplineEndpoints)
192 , _splineName(splineName)
193 , _valuesTypeName(valuesTypeName)
194 , _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
205 return _duplicateBSplineEndpoints;
211 return _valuesTypeName;
296 bool Validate(std::string *reason)
const;
308 bool _duplicateBSplineEndpoints;
311 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...
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
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 .
Represents a value type name, i.e.
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...
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.
UsdSchemaType
An enum representing which type of schema a given schema class belongs to.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
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 UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
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...
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.