Loading...
Searching...
No Matches
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
125{
126public:
130 static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
131
136 explicit UsdRenderPass(const UsdPrim& prim=UsdPrim())
137 : UsdTyped(prim)
138 {
139 }
140
144 explicit UsdRenderPass(const UsdSchemaBase& schemaObj)
145 : UsdTyped(schemaObj)
146 {
147 }
148
150 USDRENDER_API
151 virtual ~UsdRenderPass();
152
156 USDRENDER_API
157 static const TfTokenVector &
158 GetSchemaAttributeNames(bool includeInherited=true);
159
169 USDRENDER_API
170 static UsdRenderPass
171 Get(const UsdStagePtr &stage, const SdfPath &path);
172
195 USDRENDER_API
196 static UsdRenderPass
197 Define(const UsdStagePtr &stage, const SdfPath &path);
198
199protected:
203 USDRENDER_API
205
206private:
207 // needs to invoke _GetStaticTfType.
208 friend class UsdSchemaRegistry;
209 USDRENDER_API
210 static const TfType &_GetStaticTfType();
211
212 static bool _IsTypedSchema();
213
214 // override SchemaBase virtuals.
215 USDRENDER_API
216 const TfType &_GetTfType() const override;
217
218public:
219 // --------------------------------------------------------------------- //
220 // PASSTYPE
221 // --------------------------------------------------------------------- //
237 USDRENDER_API
239
245 USDRENDER_API
246 UsdAttribute CreatePassTypeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
247
248public:
249 // --------------------------------------------------------------------- //
250 // COMMAND
251 // --------------------------------------------------------------------- //
275 USDRENDER_API
277
283 USDRENDER_API
284 UsdAttribute CreateCommandAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
285
286public:
287 // --------------------------------------------------------------------- //
288 // FILENAME
289 // --------------------------------------------------------------------- //
300 USDRENDER_API
302
308 USDRENDER_API
309 UsdAttribute CreateFileNameAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
310
311public:
312 // --------------------------------------------------------------------- //
313 // RENDERSOURCE
314 // --------------------------------------------------------------------- //
327 USDRENDER_API
329
332 USDRENDER_API
334
335public:
336 // --------------------------------------------------------------------- //
337 // INPUTPASSES
338 // --------------------------------------------------------------------- //
360 USDRENDER_API
362
365 USDRENDER_API
367
368public:
369 // ===================================================================== //
370 // Feel free to add custom code below this line, it will be preserved by
371 // the code generator.
372 //
373 // Just remember to:
374 // - Close the class declaration with };
375 // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
376 // - Close the include guard with #endif
377 // ===================================================================== //
378 // --(BEGIN CUSTOM CODE)--
379
382 // For more information, see
383 // \\ref usdRender_renderVisibility "Render Visibility"
384 USDRENDER_API
386};
387
388PXR_NAMESPACE_CLOSE_SCOPE
389
390#endif
Contains an asset path and optional evaluated and resolved paths.
Definition: assetPath.h:78
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:183
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:125
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 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:130
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:136
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:144
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:90
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