7#ifndef USDSEMANTICS_GENERATED_LABELSAPI_H
8#define USDSEMANTICS_GENERATED_LABELSAPI_H
13#include "pxr/usd/usdSemantics/api.h"
19#include "pxr/base/vt/value.h"
26#include "pxr/base/tf/type.h"
28PXR_NAMESPACE_OPEN_SCOPE
127 static std::vector<UsdSemanticsLabelsAPI>
162 std::string *whyNot=
nullptr);
198 static const TfType &_GetStaticTfType();
200 static bool _IsTypedSchema();
204 const TfType &_GetTfType()
const override;
262PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and optional evaluated and resolved paths.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
TfType represents a dynamic runtime type.
The base class for all API schemas.
const TfToken & _GetInstanceName() const
Returns the instance name of the API schema object belonging to a multiple-apply API schema.
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 ...
The base class for all schema types in Usd.
Singleton registry that provides access to schema type information and the prim definitions for regis...
Application of labels for a prim for a taxonomy specified by the schema's instance name.
static USDSEMANTICS_API UsdSemanticsLabelsAPI Get(const UsdPrim &prim, const TfToken &name)
Return a UsdSemanticsLabelsAPI with name name holding the prim prim.
static USDSEMANTICS_API bool IsSchemaPropertyBaseName(const TfToken &baseName)
Checks if the given name baseName is the base name of a property of SemanticsLabelsAPI.
static USDSEMANTICS_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...
TfToken GetName() const
Returns the name of this multiple-apply schema instance.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
static USDSEMANTICS_API std::vector< TfToken > ComputeInheritedTaxonomies(const UsdPrim &prim)
Get the unique instance names (taxonomies) of all applications of UsdSemanticsLabelsAPI for the speci...
static USDSEMANTICS_API UsdSemanticsLabelsAPI Apply(const UsdPrim &prim, const TfToken &name)
Applies this multiple-apply API schema to the given prim along with the given instance name,...
static USDSEMANTICS_API std::vector< TfToken > GetDirectTaxonomies(const UsdPrim &prim)
Get the instance names (taxonomies) of all applications of UsdSemanticsLabelsAPI for the specified pr...
USDSEMANTICS_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
USDSEMANTICS_API UsdAttribute CreateLabelsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLabelsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
UsdSemanticsLabelsAPI(const UsdPrim &prim=UsdPrim(), const TfToken &name=TfToken())
Construct a UsdSemanticsLabelsAPI on UsdPrim prim with name name .
USDSEMANTICS_API UsdAttribute GetLabelsAttr() const
Array of labels specified directly at this prim.
static USDSEMANTICS_API bool CanApply(const UsdPrim &prim, const TfToken &name, std::string *whyNot=nullptr)
Returns true if this multiple-apply API schema can be applied, with the given instance name,...
UsdSemanticsLabelsAPI(const UsdSchemaBase &schemaObj, const TfToken &name)
Construct a UsdSemanticsLabelsAPI on the prim held by schemaObj with name name.
static USDSEMANTICS_API UsdSemanticsLabelsAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdSemanticsLabelsAPI holding the prim adhering to this schema at path on stage.
static USDSEMANTICS_API std::vector< UsdSemanticsLabelsAPI > GetAll(const UsdPrim &prim)
Return a vector of all named instances of UsdSemanticsLabelsAPI on the given prim.
virtual USDSEMANTICS_API ~UsdSemanticsLabelsAPI()
Destructor.
static USDSEMANTICS_API TfTokenVector GetSchemaAttributeNames(bool includeInherited, const TfToken &instanceName)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
static USDSEMANTICS_API bool IsSemanticsLabelsAPIPath(const SdfPath &path, TfToken *name)
Checks if the given path path is of an API schema of type SemanticsLabelsAPI.
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.