24 #ifndef USDUI_GENERATED_SCENEGRAPHPRIMAPI_H 25 #define USDUI_GENERATED_SCENEGRAPHPRIMAPI_H 30 #include "pxr/usd/usdUI/api.h" 36 #include "pxr/base/vt/value.h" 43 #include "pxr/base/tf/type.h" 45 PXR_NAMESPACE_OPEN_SCOPE
111 Get(
const UsdStagePtr &stage,
const SdfPath &path);
164 static const TfType &_GetStaticTfType();
166 static bool _IsTypedSchema();
170 const TfType &_GetTfType()
const override;
237 PXR_NAMESPACE_CLOSE_SCOPE
UsdUISceneGraphPrimAPI(const UsdPrim &prim=UsdPrim())
Construct a UsdUISceneGraphPrimAPI on UsdPrim prim .
USDUI_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
USDUI_API UsdAttribute GetDisplayGroupAttr() const
When publishing a nodegraph or a material, it can be useful to provide an optional display group,...
static USDUI_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.
static USDUI_API UsdUISceneGraphPrimAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
The base class for all API schemas.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
USDUI_API UsdAttribute CreateDisplayNameAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDisplayNameAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDUI_API UsdAttribute CreateDisplayGroupAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDisplayGroupAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Utility schema for display properties of a prim.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
static USDUI_API UsdUISceneGraphPrimAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdUISceneGraphPrimAPI holding the prim adhering to this schema at path on stage.
A path value used to locate objects in layers or scenegraphs.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
UsdUISceneGraphPrimAPI(const UsdSchemaBase &schemaObj)
Construct a UsdUISceneGraphPrimAPI on the prim held by schemaObj .
Contains an asset path and an optional resolved path.
USDUI_API UsdAttribute GetDisplayNameAttr() const
When publishing a nodegraph or a material, it can be useful to provide an optional display name,...
TfType represents a dynamic runtime type.
static USDUI_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...
Singleton registry that provides access to schema type information and the prim definitions for regis...
virtual USDUI_API ~UsdUISceneGraphPrimAPI()
Destructor.
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...