All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pass.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 USDRENDER_GENERATED_PASS_H
8#define USDRENDER_GENERATED_PASS_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/usdRender/api.h"
14#include "pxr/usd/usd/typed.h"
15#include "pxr/usd/usd/prim.h"
16#include "pxr/usd/usd/stage.h"
18
20
21#include "pxr/base/vt/value.h"
22
23#include "pxr/base/gf/vec3d.h"
24#include "pxr/base/gf/vec3f.h"
26
27#include "pxr/base/tf/token.h"
28#include "pxr/base/tf/type.h"
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32class SdfAssetPath;
33
34// -------------------------------------------------------------------------- //
35// RENDERPASS //
36// -------------------------------------------------------------------------- //
37
111{
112public:
116 static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
117
122 explicit UsdRenderPass(const UsdPrim& prim=UsdPrim())
123 : UsdTyped(prim)
124 {
125 }
126
130 explicit UsdRenderPass(const UsdSchemaBase& schemaObj)
131 : UsdTyped(schemaObj)
132 {
133 }
134
136 USDRENDER_API
137 virtual ~UsdRenderPass();
138
142 USDRENDER_API
143 static const TfTokenVector &
144 GetSchemaAttributeNames(bool includeInherited=true);
145
155 USDRENDER_API
156 static UsdRenderPass
157 Get(const UsdStagePtr &stage, const SdfPath &path);
158
181 USDRENDER_API
182 static UsdRenderPass
183 Define(const UsdStagePtr &stage, const SdfPath &path);
184
185protected:
189 USDRENDER_API
191
192private:
193 // needs to invoke _GetStaticTfType.
194 friend class UsdSchemaRegistry;
195 USDRENDER_API
196 static const TfType &_GetStaticTfType();
197
198 static bool _IsTypedSchema();
199
200 // override SchemaBase virtuals.
201 USDRENDER_API
202 const TfType &_GetTfType() const override;
203
204public:
205 // --------------------------------------------------------------------- //
206 // PASSTYPE
207 // --------------------------------------------------------------------- //
223 USDRENDER_API
225
231 USDRENDER_API
232 UsdAttribute CreatePassTypeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
233
234public:
235 // --------------------------------------------------------------------- //
236 // COMMAND
237 // --------------------------------------------------------------------- //
261 USDRENDER_API
263
269 USDRENDER_API
270 UsdAttribute CreateCommandAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
271
272public:
273 // --------------------------------------------------------------------- //
274 // FILENAME
275 // --------------------------------------------------------------------- //
286 USDRENDER_API
288
294 USDRENDER_API
295 UsdAttribute CreateFileNameAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
296
297public:
298 // --------------------------------------------------------------------- //
299 // DENOISEENABLE
300 // --------------------------------------------------------------------- //
309 USDRENDER_API
311
317 USDRENDER_API
318 UsdAttribute CreateDenoiseEnableAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
319
320public:
321 // --------------------------------------------------------------------- //
322 // RENDERSOURCE
323 // --------------------------------------------------------------------- //
336 USDRENDER_API
338
341 USDRENDER_API
343
344public:
345 // --------------------------------------------------------------------- //
346 // INPUTPASSES
347 // --------------------------------------------------------------------- //
369 USDRENDER_API
371
374 USDRENDER_API
376
377public:
378 // ===================================================================== //
379 // Feel free to add custom code below this line, it will be preserved by
380 // the code generator.
381 //
382 // Just remember to:
383 // - Close the class declaration with };
384 // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
385 // - Close the include guard with #endif
386 // ===================================================================== //
387 // --(BEGIN CUSTOM CODE)--
388
391 // For more information, see
392 // \\ref usdRender_renderVisibility "Render Visibility"
393 USDRENDER_API
395};
396
397PXR_NAMESPACE_CLOSE_SCOPE
398
399#endif
Contains an asset path and an optional resolved path.
Definition: assetPath.h:30
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
TfType represents a dynamic runtime type.
Definition: type.h:48
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Definition: attribute.h:160
A general purpose API schema used to describe a collection of prims and properties within a scene.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
A UsdRelationship creates dependencies between scenegraph objects by allowing a prim to target other ...
Definition: relationship.h:111
A RenderPass prim encapsulates necessary information to generate multi-pass renders.
Definition: pass.h:111
static USDRENDER_API UsdRenderPass Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdRenderPass holding the prim adhering to this schema at path on stage.
USDRENDER_API UsdAttribute CreateDenoiseEnableAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDenoiseEnableAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDRENDER_API UsdAttribute GetDenoiseEnableAttr() const
When True, this Pass pass should be denoised.
USDRENDER_API UsdAttribute GetFileNameAttr() const
The asset that contains the rendering prims or other information needed to render this pass.
static USDRENDER_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 const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
Definition: pass.h:116
USDRENDER_API UsdAttribute GetCommandAttr() const
The command to run in order to generate renders for this pass.
USDRENDER_API UsdRelationship CreateRenderSourceRel() const
See GetRenderSourceRel(), and also Create vs Get Property Methods for when to use Get vs Create.
static USDRENDER_API UsdRenderPass Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
virtual USDRENDER_API ~UsdRenderPass()
Destructor.
USDRENDER_API UsdRelationship GetInputPassesRel() const
The set of other Passes that this Pass depends on in order to be constructed properly.
UsdRenderPass(const UsdPrim &prim=UsdPrim())
Construct a UsdRenderPass on UsdPrim prim .
Definition: pass.h:122
USDRENDER_API UsdRelationship GetRenderSourceRel() const
The source prim to render from.
USDRENDER_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
USDRENDER_API UsdRelationship CreateInputPassesRel() const
See GetInputPassesRel(), and also Create vs Get Property Methods for when to use Get vs Create.
UsdRenderPass(const UsdSchemaBase &schemaObj)
Construct a UsdRenderPass on the prim held by schemaObj .
Definition: pass.h:130
USDRENDER_API UsdAttribute GetPassTypeAttr() const
A string used to categorize differently structured or executed types of passes within a customized pi...
USDRENDER_API UsdAttribute CreatePassTypeAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPassTypeAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDRENDER_API UsdAttribute CreateFileNameAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFileNameAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDRENDER_API UsdAttribute CreateCommandAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetCommandAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDRENDER_API UsdCollectionAPI GetRenderVisibilityCollectionAPI() const
Return the UsdCollectionAPI interface used for examining and modifying the render visibility of this ...
The base class for all schema types in Usd.
Definition: schemaBase.h:39
Singleton registry that provides access to schema type information and the prim definitions for regis...
The base class for all typed schemas (those that can impart a typeName to a UsdPrim),...
Definition: typed.h:45
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:147
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Definition: common.h:112
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440