backdrop.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef USDUI_GENERATED_BACKDROP_H
8 #define USDUI_GENERATED_BACKDROP_H
9 
11 
12 #include "pxr/pxr.h"
13 #include "pxr/usd/usdUI/api.h"
14 #include "pxr/usd/usd/typed.h"
15 #include "pxr/usd/usd/prim.h"
16 #include "pxr/usd/usd/stage.h"
17 #include "pxr/usd/usdUI/tokens.h"
18 
19 #include "pxr/base/vt/value.h"
20 
21 #include "pxr/base/gf/vec3d.h"
22 #include "pxr/base/gf/vec3f.h"
23 #include "pxr/base/gf/matrix4d.h"
24 
25 #include "pxr/base/tf/token.h"
26 #include "pxr/base/tf/type.h"
27 
28 PXR_NAMESPACE_OPEN_SCOPE
29 
30 class SdfAssetPath;
31 
32 // -------------------------------------------------------------------------- //
33 // BACKDROP //
34 // -------------------------------------------------------------------------- //
35 
64 class UsdUIBackdrop : public UsdTyped
65 {
66 public:
71 
76  explicit UsdUIBackdrop(const UsdPrim& prim=UsdPrim())
77  : UsdTyped(prim)
78  {
79  }
80 
84  explicit UsdUIBackdrop(const UsdSchemaBase& schemaObj)
85  : UsdTyped(schemaObj)
86  {
87  }
88 
90  USDUI_API
91  virtual ~UsdUIBackdrop();
92 
96  USDUI_API
97  static const TfTokenVector &
98  GetSchemaAttributeNames(bool includeInherited=true);
99 
109  USDUI_API
110  static UsdUIBackdrop
111  Get(const UsdStagePtr &stage, const SdfPath &path);
112 
135  USDUI_API
136  static UsdUIBackdrop
137  Define(const UsdStagePtr &stage, const SdfPath &path);
138 
139 protected:
143  USDUI_API
144  UsdSchemaKind _GetSchemaKind() const override;
145 
146 private:
147  // needs to invoke _GetStaticTfType.
148  friend class UsdSchemaRegistry;
149  USDUI_API
150  static const TfType &_GetStaticTfType();
151 
152  static bool _IsTypedSchema();
153 
154  // override SchemaBase virtuals.
155  USDUI_API
156  const TfType &_GetTfType() const override;
157 
158 public:
159  // --------------------------------------------------------------------- //
160  // DESCRIPTION
161  // --------------------------------------------------------------------- //
172  USDUI_API
174 
180  USDUI_API
181  UsdAttribute CreateDescriptionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
182 
183 public:
184  // ===================================================================== //
185  // Feel free to add custom code below this line, it will be preserved by
186  // the code generator.
187  //
188  // Just remember to:
189  // - Close the class declaration with };
190  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
191  // - Close the include guard with #endif
192  // ===================================================================== //
193  // --(BEGIN CUSTOM CODE)--
194 };
195 
196 PXR_NAMESPACE_CLOSE_SCOPE
197 
198 #endif
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
Definition: backdrop.h:70
Provides a 'group-box' for the purpose of node graph organization.
Definition: backdrop.h:64
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...
static USDUI_API UsdUIBackdrop Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdUIBackdrop holding the prim adhering to this schema at path on stage.
USDUI_API UsdAttribute CreateDescriptionAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDescriptionAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
virtual USDUI_API ~UsdUIBackdrop()
Destructor.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Definition: attribute.h:183
USDUI_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Definition: common.h:112
static USDUI_API UsdUIBackdrop Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
Represents a concrete typed schema.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:116
The base class for all typed schemas (those that can impart a typeName to a UsdPrim),...
Definition: typed.h:44
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:489
UsdUIBackdrop(const UsdPrim &prim=UsdPrim())
Construct a UsdUIBackdrop on UsdPrim prim .
Definition: backdrop.h:76
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:280
USDUI_API UsdAttribute GetDescriptionAttr() const
The text label that is displayed on the backdrop in the node graph.
Contains an asset path and optional evaluated and resolved paths.
Definition: assetPath.h:78
UsdUIBackdrop(const UsdSchemaBase &schemaObj)
Construct a UsdUIBackdrop on the prim held by schemaObj .
Definition: backdrop.h:84
TfType represents a dynamic runtime type.
Definition: type.h:47
Singleton registry that provides access to schema type information and the prim definitions for regis...
The base class for all schema types in Usd.
Definition: schemaBase.h:39
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:89
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...