Loading...
Searching...
No Matches
domeLight.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 USDLUX_GENERATED_DOMELIGHT_H
8#define USDLUX_GENERATED_DOMELIGHT_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/usdLux/api.h"
15#include "pxr/usd/usd/prim.h"
16#include "pxr/usd/usd/stage.h"
18
19#include "pxr/base/vt/value.h"
20
21#include "pxr/base/gf/vec3d.h"
22#include "pxr/base/gf/vec3f.h"
24
25#include "pxr/base/tf/token.h"
26#include "pxr/base/tf/type.h"
27
28PXR_NAMESPACE_OPEN_SCOPE
29
30class SdfAssetPath;
31
32// -------------------------------------------------------------------------- //
33// DOMELIGHT //
34// -------------------------------------------------------------------------- //
35
72{
73public:
77 static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
78
83 explicit UsdLuxDomeLight(const UsdPrim& prim=UsdPrim())
85 {
86 }
87
91 explicit UsdLuxDomeLight(const UsdSchemaBase& schemaObj)
93 {
94 }
95
97 USDLUX_API
99
103 USDLUX_API
104 static const TfTokenVector &
105 GetSchemaAttributeNames(bool includeInherited=true);
106
116 USDLUX_API
117 static UsdLuxDomeLight
118 Get(const UsdStagePtr &stage, const SdfPath &path);
119
142 USDLUX_API
143 static UsdLuxDomeLight
144 Define(const UsdStagePtr &stage, const SdfPath &path);
145
146protected:
150 USDLUX_API
152
153private:
154 // needs to invoke _GetStaticTfType.
155 friend class UsdSchemaRegistry;
156 USDLUX_API
157 static const TfType &_GetStaticTfType();
158
159 static bool _IsTypedSchema();
160
161 // override SchemaBase virtuals.
162 USDLUX_API
163 const TfType &_GetTfType() const override;
164
165public:
166 // --------------------------------------------------------------------- //
167 // TEXTUREFILE
168 // --------------------------------------------------------------------- //
177 USDLUX_API
179
185 USDLUX_API
186 UsdAttribute CreateTextureFileAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
187
188public:
189 // --------------------------------------------------------------------- //
190 // TEXTUREFORMAT
191 // --------------------------------------------------------------------- //
214 USDLUX_API
216
222 USDLUX_API
223 UsdAttribute CreateTextureFormatAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
224
225public:
226 // --------------------------------------------------------------------- //
227 // GUIDERADIUS
228 // --------------------------------------------------------------------- //
236 USDLUX_API
238
244 USDLUX_API
245 UsdAttribute CreateGuideRadiusAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
246
247public:
248 // --------------------------------------------------------------------- //
249 // PORTALS
250 // --------------------------------------------------------------------- //
253 USDLUX_API
255
258 USDLUX_API
260
261public:
262 // ===================================================================== //
263 // Feel free to add custom code below this line, it will be preserved by
264 // the code generator.
265 //
266 // Just remember to:
267 // - Close the class declaration with };
268 // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
269 // - Close the include guard with #endif
270 // ===================================================================== //
271 // --(BEGIN CUSTOM CODE)--
272
282 USDLUX_API
284};
285
286PXR_NAMESPACE_CLOSE_SCOPE
287
288#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
Light emitted inward from a distant external environment, such as a sky or IBL light probe.
Definition: domeLight.h:72
USDLUX_API UsdAttribute CreateTextureFormatAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTextureFormatAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDLUX_API UsdAttribute CreateGuideRadiusAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetGuideRadiusAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDLUX_API void OrientToStageUpAxis() const
Adds a transformation op, if neeeded, to orient the dome to align with the stage's up axis.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
Definition: domeLight.h:77
USDLUX_API UsdAttribute CreateTextureFileAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTextureFileAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDLUX_API UsdRelationship GetPortalsRel() const
Optional portals to guide light sampling.
static USDLUX_API UsdLuxDomeLight Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
USDLUX_API UsdRelationship CreatePortalsRel() const
See GetPortalsRel(), and also Create vs Get Property Methods for when to use Get vs Create.
USDLUX_API UsdAttribute GetGuideRadiusAttr() const
The radius of guide geometry to use to visualize the dome light.
USDLUX_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
USDLUX_API UsdAttribute GetTextureFileAttr() const
A color texture to use on the dome, such as an HDR (high dynamic range) texture intended for IBL (ima...
static USDLUX_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...
virtual USDLUX_API ~UsdLuxDomeLight()
Destructor.
UsdLuxDomeLight(const UsdSchemaBase &schemaObj)
Construct a UsdLuxDomeLight on the prim held by schemaObj .
Definition: domeLight.h:91
UsdLuxDomeLight(const UsdPrim &prim=UsdPrim())
Construct a UsdLuxDomeLight on UsdPrim prim .
Definition: domeLight.h:83
USDLUX_API UsdAttribute GetTextureFormatAttr() const
Specifies the parameterization of the color map file.
static USDLUX_API UsdLuxDomeLight Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdLuxDomeLight holding the prim adhering to this schema at path on stage.
Base class for intrinsic lights that are not boundable.
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
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...
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:152
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