add usd-21-05-win64_py37

This commit is contained in:
Sébastien Albert committed 2021-12-07 17:16:25 +01:00
1 parent 41d23e71ba
commit 66bc054336
15675 files changed
+3061008

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
//
// Copyright 2017 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_API_H
#define USDRI_API_H
#include "pxr/base/arch/export.h"
#if defined(PXR_STATIC)
# define USDRI_API
# define USDRI_API_TEMPLATE_CLASS(...)
# define USDRI_API_TEMPLATE_STRUCT(...)
# define USDRI_LOCAL
#else
# if defined(USDRI_EXPORTS)
# define USDRI_API ARCH_EXPORT
# define USDRI_API_TEMPLATE_CLASS(...) ARCH_EXPORT_TEMPLATE(class, __VA_ARGS__)
# define USDRI_API_TEMPLATE_STRUCT(...) ARCH_EXPORT_TEMPLATE(struct, __VA_ARGS__)
# else
# define USDRI_API ARCH_IMPORT
# define USDRI_API_TEMPLATE_CLASS(...) ARCH_IMPORT_TEMPLATE(class, __VA_ARGS__)
# define USDRI_API_TEMPLATE_STRUCT(...) ARCH_IMPORT_TEMPLATE(struct, __VA_ARGS__)
# endif
# define USDRI_LOCAL ARCH_HIDDEN
#endif
#endif
+325
View File
@@ -0,0 +1,325 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_LIGHTAPI_H
#define USDRI_GENERATED_LIGHTAPI_H
/// \file usdRi/lightAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RILIGHTAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiLightAPI
///
///
/// \deprecated RenderMan-specific light settings will move to a
/// new schema in a future release.
///
/// RiLightAPI is an API schema that provides an interface
/// to add Renderman-specific attributes to lights.
///
class UsdRiLightAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiLightAPI on UsdPrim \p prim .
/// Equivalent to UsdRiLightAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiLightAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiLightAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiLightAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiLightAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiLightAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiLightAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiLightAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiLightAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiLightAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiLightAPI object is returned upon success.
/// An invalid (or empty) UsdRiLightAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiLightAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RISAMPLINGFIXEDSAMPLECOUNT
// --------------------------------------------------------------------- //
/// Specifies an override of the number of light samples to be
/// taken for this light source. If set to something other than zero,
/// it will override the sampling performed by the integrator and can
/// result in a performance impact. For scenes that have lots of lights,
/// resulting in some lights that are under-sampled, you may want to set
/// it to non-zero.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int ri:sampling:fixedSampleCount` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetRiSamplingFixedSampleCountAttr() const;
/// See GetRiSamplingFixedSampleCountAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiSamplingFixedSampleCountAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RISAMPLINGIMPORTANCEMULTIPLIER
// --------------------------------------------------------------------- //
/// Importance of this light for noise control.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:sampling:importanceMultiplier = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiSamplingImportanceMultiplierAttr() const;
/// See GetRiSamplingImportanceMultiplierAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiSamplingImportanceMultiplierAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIINTENSITYNEARDIST
// --------------------------------------------------------------------- //
/// Near distance between the point being illuminated and the
/// light at which the sample doesn't get brighter. This may help you
/// avoid hot spots and sampling issues where a light is near a
/// surface.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:intensityNearDist` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiIntensityNearDistAttr() const;
/// See GetRiIntensityNearDistAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiIntensityNearDistAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RILIGHTGROUP
// --------------------------------------------------------------------- //
/// Specify the light group name used for light group LPEs.
/// This is useful to generate per-light AOVs for later adjustment
/// in compositing.
///
/// | ||
/// | -- | -- |
/// | Declaration | `string ri:lightGroup` |
/// | C++ Type | std::string |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->String |
USDRI_API
UsdAttribute GetRiLightGroupAttr() const;
/// See GetRiLightGroupAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiLightGroupAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RISHADOWTHINSHADOW
// --------------------------------------------------------------------- //
/// Enable thin shadow and disable refraction caustics for this
/// light. This parameter will ignored if Trace Light Paths is
/// enabled. This is a non-physical control that creates "fake"
/// colored shadows for transmissive objects without needing to
/// generate photons for caustics.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool ri:shadow:thinShadow` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetRiShadowThinShadowAttr() const;
/// See GetRiShadowThinShadowAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiShadowThinShadowAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RITRACELIGHTPATHS
// --------------------------------------------------------------------- //
/// Enable light and photon tracing from this light. This
/// value enforces a physically-based light and as a side-effect
/// disables the above Shadows controls. Users may use this feature
/// to selectively decide which lights emit photons when using the
/// PxrVCM or PxrUPBP Integrators.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool ri:trace:lightPaths` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetRiTraceLightPathsAttr() const;
/// See GetRiTraceLightPathsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiTraceLightPathsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+354
View File
@@ -0,0 +1,354 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_LIGHTFILTERAPI_H
#define USDRI_GENERATED_LIGHTFILTERAPI_H
/// \file usdRi/lightFilterAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RILIGHTFILTERAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiLightFilterAPI
///
///
/// \deprecated RenderMan-specific light filter settings will move to a
/// new schema in a future release.
///
/// Renderman-specific attributes for light filters.
///
/// For any described attribute \em Fallback \em Value or \em Allowed \em Values below
/// that are text/tokens, the actual token is published and defined in \ref UsdRiTokens.
/// So to set an attribute to the value "rightHanded", use UsdRiTokens->rightHanded
/// as the value.
///
class UsdRiLightFilterAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiLightFilterAPI on UsdPrim \p prim .
/// Equivalent to UsdRiLightFilterAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiLightFilterAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiLightFilterAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiLightFilterAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiLightFilterAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiLightFilterAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiLightFilterAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiLightFilterAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiLightFilterAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiLightFilterAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiLightFilterAPI object is returned upon success.
/// An invalid (or empty) UsdRiLightFilterAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiLightFilterAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RICOMBINEMODE
// --------------------------------------------------------------------- //
/// Specifies how this filter combines with others.
/// Valid values are:
///
/// - multiply: The results of filters are multiplied together
/// - max: The maximum result of the filters is used. This
/// works best for grey-scale filters.
/// - min: The minimum result of the filters is used. This
/// works best for grey-scale filters.
/// - screen: Similar to max, but combines gradients in a smoother
/// way by using a screen operation:
/// <pre>screen(a,b) = 1-(1-a)(1-b)</pre>
/// This works best for grey-scale filters.
///
/// Light filters on a light are grouped by their combine mode.
/// Each group is executed and combined using that mode. Then,
/// the final results of each group are multiplied together.
///
/// Fallback: multiply
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `token ri:combineMode = "multiply"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | multiply, max, min, screen |
USDRI_API
UsdAttribute GetRiCombineModeAttr() const;
/// See GetRiCombineModeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiCombineModeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIDENSITY
// --------------------------------------------------------------------- //
/// Scales the strength of the filter.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:density = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiDensityAttr() const;
/// See GetRiDensityAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiDensityAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIINVERT
// --------------------------------------------------------------------- //
/// When true, inverts the output of the light filter.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool ri:invert = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetRiInvertAttr() const;
/// See GetRiInvertAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiInvertAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIINTENSITY
// --------------------------------------------------------------------- //
/// Multipier for the diffuse and specular result.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:intensity = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiIntensityAttr() const;
/// See GetRiIntensityAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiIntensityAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIEXPOSURE
// --------------------------------------------------------------------- //
/// Exposure control for the multiplier.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:exposure = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiExposureAttr() const;
/// See GetRiExposureAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiExposureAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIDIFFUSE
// --------------------------------------------------------------------- //
/// A multiplier for the effect of this light on the diffuse
/// response of materials. This is a non-physical control.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:diffuse = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiDiffuseAttr() const;
/// See GetRiDiffuseAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiDiffuseAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RISPECULAR
// --------------------------------------------------------------------- //
/// A multiplier for the effect of this light on the specular
/// response of materials. This is a non-physical control.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:specular = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiSpecularAttr() const;
/// See GetRiSpecularAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiSpecularAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+219
View File
@@ -0,0 +1,219 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_LIGHTPORTALAPI_H
#define USDRI_GENERATED_LIGHTPORTALAPI_H
/// \file usdRi/lightPortalAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RILIGHTPORTALAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiLightPortalAPI
///
///
/// \deprecated RenderMan-specific light portal settings will move to a
/// new schema in a future release.
///
/// Renderman-specific attributes for light portals.
///
class UsdRiLightPortalAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiLightPortalAPI on UsdPrim \p prim .
/// Equivalent to UsdRiLightPortalAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiLightPortalAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiLightPortalAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiLightPortalAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiLightPortalAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiLightPortalAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiLightPortalAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiLightPortalAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiLightPortalAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiLightPortalAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiLightPortalAPI object is returned upon success.
/// An invalid (or empty) UsdRiLightPortalAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiLightPortalAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RIPORTALINTENSITY
// --------------------------------------------------------------------- //
/// Intensity adjustment relative to the light intensity.
/// This gets multiplied by the light's intensity and power
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:portal:intensity` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiPortalIntensityAttr() const;
/// See GetRiPortalIntensityAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiPortalIntensityAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RIPORTALTINT
// --------------------------------------------------------------------- //
/// tint: This parameter tints the color from the dome texture.
///
/// | ||
/// | -- | -- |
/// | Declaration | `color3f ri:portal:tint` |
/// | C++ Type | GfVec3f |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Color3f |
USDRI_API
UsdAttribute GetRiPortalTintAttr() const;
/// See GetRiPortalTintAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiPortalTintAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+345
View File
@@ -0,0 +1,345 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_MATERIALAPI_H
#define USDRI_GENERATED_MATERIALAPI_H
/// \file usdRi/materialAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/usd/usdShade/input.h"
#include "pxr/usd/usdShade/output.h"
#include "pxr/usd/usdShade/material.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RIMATERIALAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiMaterialAPI
///
///
/// \deprecated Materials should use UsdShadeMaterial instead.
/// This schema will be removed in a future release.
///
/// This API provides outputs that connect a material prim to prman
/// shaders and RIS objects.
///
/// For any described attribute \em Fallback \em Value or \em Allowed \em Values below
/// that are text/tokens, the actual token is published and defined in \ref UsdRiTokens.
/// So to set an attribute to the value "rightHanded", use UsdRiTokens->rightHanded
/// as the value.
///
class UsdRiMaterialAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiMaterialAPI on UsdPrim \p prim .
/// Equivalent to UsdRiMaterialAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiMaterialAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiMaterialAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiMaterialAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiMaterialAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiMaterialAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiMaterialAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiMaterialAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiMaterialAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiMaterialAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiMaterialAPI object is returned upon success.
/// An invalid (or empty) UsdRiMaterialAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiMaterialAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// SURFACE
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `token outputs:ri:surface` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
USDRI_API
UsdAttribute GetSurfaceAttr() const;
/// See GetSurfaceAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSurfaceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// DISPLACEMENT
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `token outputs:ri:displacement` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
USDRI_API
UsdAttribute GetDisplacementAttr() const;
/// See GetDisplacementAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateDisplacementAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// VOLUME
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `token outputs:ri:volume` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
USDRI_API
UsdAttribute GetVolumeAttr() const;
/// See GetVolumeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateVolumeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
/// A constructor for creating a MaterialAPI object from a material prim.
explicit UsdRiMaterialAPI(const UsdShadeMaterial& material)
: UsdRiMaterialAPI(material.GetPrim())
{
}
// --------------------------------------------------------------------- //
/// \name Outputs API
// --------------------------------------------------------------------- //
/// @{
/// Returns the "surface" output associated with the material.
USDRI_API
UsdShadeOutput GetSurfaceOutput() const;
/// Returns the "displacement" output associated with the material.
USDRI_API
UsdShadeOutput GetDisplacementOutput() const;
/// Returns the "volume" output associated with the material.
USDRI_API
UsdShadeOutput GetVolumeOutput() const;
/// @}
// --------------------------------------------------------------------- //
/// \name API for setting sources of outputs
// --------------------------------------------------------------------- //
/// @{
USDRI_API
bool SetSurfaceSource(const SdfPath &surfacePath) const;
USDRI_API
bool SetDisplacementSource(const SdfPath &displacementPath) const;
USDRI_API
bool SetVolumeSource(const SdfPath &volumePath) const;
/// @}
// --------------------------------------------------------------------- //
/// \name Shaders API
// --------------------------------------------------------------------- //
/// @{
/// Returns a valid shader object if the "surface" output on the
/// material is connected to one.
///
/// If \p ignoreBaseMaterial is true and if the "surface" shader source
/// is specified in the base-material of this material, then this
/// returns an invalid shader object.
USDRI_API
UsdShadeShader GetSurface(bool ignoreBaseMaterial=false) const;
/// Returns a valid shader object if the "displacement" output on the
/// material is connected to one.
///
/// If \p ignoreBaseMaterial is true and if the "displacement" shader source
/// is specified in the base-material of this material, then this
/// returns an invalid shader object.
USDRI_API
UsdShadeShader GetDisplacement(bool ignoreBaseMaterial=false) const;
/// Returns a valid shader object if the "volume" output on the
/// material is connected to one.
///
/// If \p ignoreBaseMaterial is true and if the "volume" shader source
/// is specified in the base-material of this material, then this
/// returns an invalid shader object.
USDRI_API
UsdShadeShader GetVolume(bool ignoreBaseMaterial=false) const;
/// @}
/// Walks the namespace subtree below the material and computes a map
/// containing the list of all inputs on the material and the associated
/// vector of consumers of their values. The consumers can be inputs on
/// shaders within the material or on node-graphs under it.
USDRI_API
UsdShadeNodeGraph::InterfaceInputConsumersMap
ComputeInterfaceInputConsumersMap(
bool computeTransitiveConsumers=false) const;
/// @}
private:
UsdShadeShader _GetSourceShaderObject(const UsdShadeOutput &output,
bool ignoreBaseMaterial) const;
// Helper method to get the deprecated 'bxdf' output.
UsdShadeOutput _GetBxdfOutput(const UsdPrim &materialPrim) const;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+365
View File
@@ -0,0 +1,365 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRAOVLIGHT_H
#define USDRI_GENERATED_PXRAOVLIGHT_H
/// \file usdRi/pxrAovLight.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/light.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRAOVLIGHT //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrAovLight
///
/// \deprecated This schema will be replaced in a future release.
///
class UsdRiPxrAovLight : public UsdLuxLight
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrAovLight on UsdPrim \p prim .
/// Equivalent to UsdRiPxrAovLight::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrAovLight(const UsdPrim& prim=UsdPrim())
: UsdLuxLight(prim)
{
}
/// Construct a UsdRiPxrAovLight on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrAovLight(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrAovLight(const UsdSchemaBase& schemaObj)
: UsdLuxLight(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrAovLight();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrAovLight holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrAovLight(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrAovLight
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrAovLight
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// AOVNAME
// --------------------------------------------------------------------- //
/// The name of the AOV to write to.
///
/// | ||
/// | -- | -- |
/// | Declaration | `string aovName = ""` |
/// | C++ Type | std::string |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->String |
USDRI_API
UsdAttribute GetAovNameAttr() const;
/// See GetAovNameAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAovNameAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// INPRIMARYHIT
// --------------------------------------------------------------------- //
/// If this is on, the usual mask of the illuminated objects
/// is generated. If this is off, you can get a mask of only in the
/// refraction or reflection.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool inPrimaryHit = 1` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetInPrimaryHitAttr() const;
/// See GetInPrimaryHitAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateInPrimaryHitAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// INREFLECTION
// --------------------------------------------------------------------- //
/// If this is on, the rays are traced through the specular
/// reflections to get the masking signal. Warning: this will
/// require some amount of samples to get a clean mask.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool inReflection = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetInReflectionAttr() const;
/// See GetInReflectionAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateInReflectionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// INREFRACTION
// --------------------------------------------------------------------- //
/// If this is on, the rays are traced through the glass
/// refractions to get the masking signal. Warning: this will
/// require some amount of samples to get a clean mask.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool inRefraction = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetInRefractionAttr() const;
/// See GetInRefractionAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateInRefractionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// INVERT
// --------------------------------------------------------------------- //
/// If this is on, it inverts the signal for the AOV.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool invert = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetInvertAttr() const;
/// See GetInvertAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateInvertAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ONVOLUMEBOUNDARIES
// --------------------------------------------------------------------- //
/// If this is on, the bounding box or shape of volumes will
/// appear in the mask. Since this is not always desirable, this can
/// be turned off.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool onVolumeBoundaries = 1` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetOnVolumeBoundariesAttr() const;
/// See GetOnVolumeBoundariesAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateOnVolumeBoundariesAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// USECOLOR
// --------------------------------------------------------------------- //
/// If this is on, it outputs a RGB color image instead of a
/// float image for the AOV.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool useColor = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetUseColorAttr() const;
/// See GetUseColorAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateUseColorAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// USETHROUGHPUT
// --------------------------------------------------------------------- //
/// If this is on, the values in the mask for the reflected
/// or refracted rays will be affected by the strength of the reflection
/// or refraction. This can lead to values below and above 1.0. Turn
/// this off if you want a more solid mask.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool useThroughput = 1` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetUseThroughputAttr() const;
/// See GetUseThroughputAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateUseThroughputAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+769
View File
@@ -0,0 +1,769 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRBARNLIGHTFILTER_H
#define USDRI_GENERATED_PXRBARNLIGHTFILTER_H
/// \file usdRi/pxrBarnLightFilter.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/lightFilter.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRBARNLIGHTFILTER //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrBarnLightFilter
///
///
/// \deprecated This schema will be replaced in a future release.
/// Simulated geometric barn doors that control the spread of light.
///
///
/// For any described attribute \em Fallback \em Value or \em Allowed \em Values below
/// that are text/tokens, the actual token is published and defined in \ref UsdRiTokens.
/// So to set an attribute to the value "rightHanded", use UsdRiTokens->rightHanded
/// as the value.
///
class UsdRiPxrBarnLightFilter : public UsdLuxLightFilter
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrBarnLightFilter on UsdPrim \p prim .
/// Equivalent to UsdRiPxrBarnLightFilter::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrBarnLightFilter(const UsdPrim& prim=UsdPrim())
: UsdLuxLightFilter(prim)
{
}
/// Construct a UsdRiPxrBarnLightFilter on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrBarnLightFilter(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrBarnLightFilter(const UsdSchemaBase& schemaObj)
: UsdLuxLightFilter(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrBarnLightFilter();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrBarnLightFilter holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrBarnLightFilter(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrBarnLightFilter
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrBarnLightFilter
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// BARNMODE
// --------------------------------------------------------------------- //
/// Chooses a physical or analytic evaluation model for
/// the barn.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token barnMode = "physical"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | physical, analytic |
USDRI_API
UsdAttribute GetBarnModeAttr() const;
/// See GetBarnModeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateBarnModeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// WIDTH
// --------------------------------------------------------------------- //
/// Width of the inner region of the barn (X axis).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float width = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetWidthAttr() const;
/// See GetWidthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateWidthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// HEIGHT
// --------------------------------------------------------------------- //
/// Height of the inner region of the barn (Y axis).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float height = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetHeightAttr() const;
/// See GetHeightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RADIUS
// --------------------------------------------------------------------- //
/// Radius of the corners of the inner barn square.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float radius = 0.5` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRadiusAttr() const;
/// See GetRadiusAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRadiusAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDIRECTIONAL
// --------------------------------------------------------------------- //
/// When this is on, the texture projects along a direction
/// using the orthographic projection. When it is off, the texture
/// projects using a focal point specified by the analytic:apex.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool analytic:directional = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetAnalyticDirectionalAttr() const;
/// See GetAnalyticDirectionalAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDirectionalAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICSHEARX
// --------------------------------------------------------------------- //
/// Shear the projection along the X axis.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:shearX = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticShearXAttr() const;
/// See GetAnalyticShearXAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticShearXAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICSHEARY
// --------------------------------------------------------------------- //
/// Shear the projection along the Y axis.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:shearY = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticShearYAttr() const;
/// See GetAnalyticShearYAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticShearYAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICAPEX
// --------------------------------------------------------------------- //
/// Shear the projection along the Y axis.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:apex = 25` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticApexAttr() const;
/// See GetAnalyticApexAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticApexAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICUSELIGHTDIRECTION
// --------------------------------------------------------------------- //
/// When this is on, If this is on, the projection direction
/// is determined by the position of the center of the light source.
/// Otherwise, it only follows the orientation of the barn. WARNING:
/// This does not work with dome and mesh lights.
///
/// | ||
/// | -- | -- |
/// | Declaration | `bool analytic:useLightDirection = 0` |
/// | C++ Type | bool |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Bool |
USDRI_API
UsdAttribute GetAnalyticUseLightDirectionAttr() const;
/// See GetAnalyticUseLightDirectionAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticUseLightDirectionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDENSITYNEARDISTANCE
// --------------------------------------------------------------------- //
/// Distance from the barn where the density
/// interpolation starts.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:density:nearDistance = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticDensityNearDistanceAttr() const;
/// See GetAnalyticDensityNearDistanceAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDensityNearDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDENSITYFARDISTANCE
// --------------------------------------------------------------------- //
/// Distance from the barn where the density interpolation
/// ends.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:density:farDistance = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticDensityFarDistanceAttr() const;
/// See GetAnalyticDensityFarDistanceAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDensityFarDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDENSITYNEARVALUE
// --------------------------------------------------------------------- //
/// Density multiplier where the density interpolation starts.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:density:nearValue = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticDensityNearValueAttr() const;
/// See GetAnalyticDensityNearValueAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDensityNearValueAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDENSITYFARVALUE
// --------------------------------------------------------------------- //
/// Density multiplier at the end of interpolation.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:density:farValue = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticDensityFarValueAttr() const;
/// See GetAnalyticDensityFarValueAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDensityFarValueAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ANALYTICDENSITYEXPONENT
// --------------------------------------------------------------------- //
/// Power exponent of the density interpolation.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float analytic:density:exponent = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetAnalyticDensityExponentAttr() const;
/// See GetAnalyticDensityExponentAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateAnalyticDensityExponentAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGETHICKNESS
// --------------------------------------------------------------------- //
/// Thickness of the edge region. Larger values will
/// soften the edge shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeThickness = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeThicknessAttr() const;
/// See GetEdgeThicknessAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeThicknessAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// PREBARNEFFECT
// --------------------------------------------------------------------- //
/// The effect on light before it reaches the barn
/// geometry.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token preBarnEffect = "noLight"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | noEffect, cone, noLight |
USDRI_API
UsdAttribute GetPreBarnEffectAttr() const;
/// See GetPreBarnEffectAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreatePreBarnEffectAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SCALEWIDTH
// --------------------------------------------------------------------- //
/// Scale the width of the inner barn shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float scale:width = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetScaleWidthAttr() const;
/// See GetScaleWidthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateScaleWidthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SCALEHEIGHT
// --------------------------------------------------------------------- //
/// Scale the height of the inner barn shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float scale:height = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetScaleHeightAttr() const;
/// See GetScaleHeightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateScaleHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINETOP
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:top = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineTopAttr() const;
/// See GetRefineTopAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineTopAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINEBOTTOM
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:bottom = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineBottomAttr() const;
/// See GetRefineBottomAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineBottomAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINELEFT
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:left = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineLeftAttr() const;
/// See GetRefineLeftAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineLeftAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINERIGHT
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:right = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineRightAttr() const;
/// See GetRefineRightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineRightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALETOP
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:top = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleTopAttr() const;
/// See GetEdgeScaleTopAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleTopAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALEBOTTOM
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:bottom = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleBottomAttr() const;
/// See GetEdgeScaleBottomAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleBottomAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALELEFT
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:left = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleLeftAttr() const;
/// See GetEdgeScaleLeftAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleLeftAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALERIGHT
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:right = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleRightAttr() const;
/// See GetEdgeScaleRightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleRightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
File diff suppressed because it is too large. Load diff
+465
View File
@@ -0,0 +1,465 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRENVDAYLIGHT_H
#define USDRI_GENERATED_PXRENVDAYLIGHT_H
/// \file usdRi/pxrEnvDayLight.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/light.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRENVDAYLIGHT //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrEnvDayLight
///
/// \deprecated This schema will be replaced in a future release.
///
class UsdRiPxrEnvDayLight : public UsdLuxLight
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrEnvDayLight on UsdPrim \p prim .
/// Equivalent to UsdRiPxrEnvDayLight::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrEnvDayLight(const UsdPrim& prim=UsdPrim())
: UsdLuxLight(prim)
{
}
/// Construct a UsdRiPxrEnvDayLight on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrEnvDayLight(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrEnvDayLight(const UsdSchemaBase& schemaObj)
: UsdLuxLight(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrEnvDayLight();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrEnvDayLight holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrEnvDayLight(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrEnvDayLight
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrEnvDayLight
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// DAY
// --------------------------------------------------------------------- //
/// day: Day of the month, 1 through 31.
/// This is ignored if month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int day = 1` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetDayAttr() const;
/// See GetDayAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateDayAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// HAZINESS
// --------------------------------------------------------------------- //
/// haziness: The turbidity of the sky. The lower limit of the
/// model is 1.7 for an exceptionally clear sky, and 10, for an
/// nversion, is the upper limit.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float haziness = 2` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetHazinessAttr() const;
/// See GetHazinessAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateHazinessAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// HOUR
// --------------------------------------------------------------------- //
/// hour: Hours since midnight, local standard time. May be
/// fractional to include minutes and seconds. If daylight saving time
/// is in effect, subtract 1 to correct to standard time. This is
/// ignored if month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float hour = 14.633333` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetHourAttr() const;
/// See GetHourAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateHourAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// LATITUDE
// --------------------------------------------------------------------- //
/// latitude: Latitude in degrees. Positive for north, negative
/// for south. Ranges frmo -90 to +90 degrees. This is ignored if
/// month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float latitude = 47.602` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetLatitudeAttr() const;
/// See GetLatitudeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateLatitudeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// LONGITUDE
// --------------------------------------------------------------------- //
/// longitude: Longitude in degrees. Positive for east, negative
/// for west. Ranges frmo -180 to +180 degrees. This is ignored
/// if month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float longitude = -122.332` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetLongitudeAttr() const;
/// See GetLongitudeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateLongitudeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// MONTH
// --------------------------------------------------------------------- //
/// month: Month of the year, 1 through 12. The default,
/// 0, means to use the explicitly given sun direction instead of
/// automatically computing it.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int month = 0` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetMonthAttr() const;
/// See GetMonthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateMonthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SKYTINT
// --------------------------------------------------------------------- //
/// skyTint: Tweak the sky's contribution and color. The
/// default, white (1,1,1), gives results based on measured
/// physical values.
///
/// | ||
/// | -- | -- |
/// | Declaration | `color3f skyTint = (1, 1, 1)` |
/// | C++ Type | GfVec3f |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Color3f |
USDRI_API
UsdAttribute GetSkyTintAttr() const;
/// See GetSkyTintAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSkyTintAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SUNDIRECTION
// --------------------------------------------------------------------- //
/// sunDirection: The *apparent* direction towards the center
/// of the sun. The zenith is at +Y (for noon light) and the horizon
/// is in the XZ plane (for sunrise/set). Note that the Y component
/// must non- negative. Ignored if a month is given.
///
/// | ||
/// | -- | -- |
/// | Declaration | `vector3f sunDirection = (0, 0, 1)` |
/// | C++ Type | GfVec3f |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Vector3f |
USDRI_API
UsdAttribute GetSunDirectionAttr() const;
/// See GetSunDirectionAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSunDirectionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SUNSIZE
// --------------------------------------------------------------------- //
/// sunSize: Scale the apparent size of the sun in the sky.
/// Leave at 1 for a realistic sun size with an 0.55 degree
/// angular diameter.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float sunSize = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetSunSizeAttr() const;
/// See GetSunSizeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSunSizeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SUNTINT
// --------------------------------------------------------------------- //
/// sunTint: Tweak the sun's contribution and color. The
/// default, white (1,1,1), gives results based on measured
/// physical values. Setting this to black removes the sun
/// contribution.
///
/// | ||
/// | -- | -- |
/// | Declaration | `color3f sunTint = (1, 1, 1)` |
/// | C++ Type | GfVec3f |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Color3f |
USDRI_API
UsdAttribute GetSunTintAttr() const;
/// See GetSunTintAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSunTintAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// YEAR
// --------------------------------------------------------------------- //
/// year: Four-digit year. This is ignored if month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int year = 2015` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetYearAttr() const;
/// See GetYearAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateYearAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ZONE
// --------------------------------------------------------------------- //
/// zone: Standard time zone offset from GMT/UTC in hours.
/// Positive for east, negative for west. For example, this would
/// be -8 for Pacific time. This is ignored if month is 0.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float zone = -8` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetZoneAttr() const;
/// See GetZoneAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateZoneAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -0,0 +1,226 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRINTMULTLIGHTFILTER_H
#define USDRI_GENERATED_PXRINTMULTLIGHTFILTER_H
/// \file usdRi/pxrIntMultLightFilter.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/lightFilter.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRINTMULTLIGHTFILTER //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrIntMultLightFilter
///
///
/// \deprecated This schema will be replaced in a future release.
/// Multiplies the intensity of a given light.
///
///
class UsdRiPxrIntMultLightFilter : public UsdLuxLightFilter
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrIntMultLightFilter on UsdPrim \p prim .
/// Equivalent to UsdRiPxrIntMultLightFilter::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrIntMultLightFilter(const UsdPrim& prim=UsdPrim())
: UsdLuxLightFilter(prim)
{
}
/// Construct a UsdRiPxrIntMultLightFilter on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrIntMultLightFilter(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrIntMultLightFilter(const UsdSchemaBase& schemaObj)
: UsdLuxLightFilter(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrIntMultLightFilter();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrIntMultLightFilter holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrIntMultLightFilter(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrIntMultLightFilter
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrIntMultLightFilter
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RIINTENSITY
// --------------------------------------------------------------------- //
/// Multipier for the light intensity.
/// This setting is meant to override the fallback value in RiLightFilterAPI
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:intensity = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiIntensityAttr() const;
/// See GetRiIntensityAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiIntensityAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORSATURATION
// --------------------------------------------------------------------- //
/// Saturation of the light before hitting the surface (0=greyscale,1=normal,
/// >1=boosted colors).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float color:saturation = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetColorSaturationAttr() const;
/// See GetColorSaturationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorSaturationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+443
View File
@@ -0,0 +1,443 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRRAMPLIGHTFILTER_H
#define USDRI_GENERATED_PXRRAMPLIGHTFILTER_H
/// \file usdRi/pxrRampLightFilter.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/lightFilter.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/usd/usdRi/splineAPI.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRRAMPLIGHTFILTER //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrRampLightFilter
///
///
/// \deprecated This schema will be replaced in a future release.
/// A ramp to modulate how a light falls off with distance.
///
///
/// For any described attribute \em Fallback \em Value or \em Allowed \em Values below
/// that are text/tokens, the actual token is published and defined in \ref UsdRiTokens.
/// So to set an attribute to the value "rightHanded", use UsdRiTokens->rightHanded
/// as the value.
///
class UsdRiPxrRampLightFilter : public UsdLuxLightFilter
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrRampLightFilter on UsdPrim \p prim .
/// Equivalent to UsdRiPxrRampLightFilter::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrRampLightFilter(const UsdPrim& prim=UsdPrim())
: UsdLuxLightFilter(prim)
{
}
/// Construct a UsdRiPxrRampLightFilter on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrRampLightFilter(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrRampLightFilter(const UsdSchemaBase& schemaObj)
: UsdLuxLightFilter(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrRampLightFilter();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrRampLightFilter holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrRampLightFilter(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrRampLightFilter
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrRampLightFilter
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RAMPMODE
// --------------------------------------------------------------------- //
/// Specifies the direction in which the ramp is applied
///
/// | ||
/// | -- | -- |
/// | Declaration | `token rampMode = "distanceToLight"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | distanceToLight, linear, spherical, radial |
USDRI_API
UsdAttribute GetRampModeAttr() const;
/// See GetRampModeAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRampModeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// BEGINDISTANCE
// --------------------------------------------------------------------- //
/// Distance where the ramp starts.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float beginDistance = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetBeginDistanceAttr() const;
/// See GetBeginDistanceAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateBeginDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ENDDISTANCE
// --------------------------------------------------------------------- //
/// Distance where the ramp ends.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float endDistance = 10` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEndDistanceAttr() const;
/// See GetEndDistanceAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEndDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFF
// --------------------------------------------------------------------- //
/// Controls the transition from the core to the edge.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int falloff = 4` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetFalloffAttr() const;
/// See GetFalloffAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFKNOTS
// --------------------------------------------------------------------- //
/// Knots of the falloff spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] falloff:knots = [0, 0, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetFalloffKnotsAttr() const;
/// See GetFalloffKnotsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffKnotsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFFLOATS
// --------------------------------------------------------------------- //
/// Float values of the falloff spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] falloff:floats = [0, 0, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetFalloffFloatsAttr() const;
/// See GetFalloffFloatsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffFloatsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFINTERPOLATION
// --------------------------------------------------------------------- //
/// Falloff spline type.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token falloff:interpolation = "linear"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | linear, catmull-rom, bspline, constant |
USDRI_API
UsdAttribute GetFalloffInterpolationAttr() const;
/// See GetFalloffInterpolationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffInterpolationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMP
// --------------------------------------------------------------------- //
/// Controls the color gradient for the transition.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int colorRamp = 4` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetColorRampAttr() const;
/// See GetColorRampAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPKNOTS
// --------------------------------------------------------------------- //
/// Knots of the colorRamp spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] colorRamp:knots = [0, 0, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetColorRampKnotsAttr() const;
/// See GetColorRampKnotsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampKnotsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPCOLORS
// --------------------------------------------------------------------- //
/// Color values of the colorRamp spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `color3f[] colorRamp:colors = [(1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1)]` |
/// | C++ Type | VtArray<GfVec3f> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Color3fArray |
USDRI_API
UsdAttribute GetColorRampColorsAttr() const;
/// See GetColorRampColorsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampColorsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPINTERPOLATION
// --------------------------------------------------------------------- //
/// ColorRamp spline type.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token colorRamp:interpolation = "linear"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | linear, catmull-rom, bspline, constant |
USDRI_API
UsdAttribute GetColorRampInterpolationAttr() const;
/// See GetColorRampInterpolationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampInterpolationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
/// Return the UsdRiSplineAPI interface used for examining and modifying
/// the falloff ramp.
USDRI_API
UsdRiSplineAPI GetFalloffRampAPI() const;
/// Return the UsdRiSplineAPI interface used for examining and modifying
/// the color ramp.
USDRI_API
UsdRiSplineAPI GetColorRampAPI() const;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+841
View File
@@ -0,0 +1,841 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_PXRRODLIGHTFILTER_H
#define USDRI_GENERATED_PXRRODLIGHTFILTER_H
/// \file usdRi/pxrRodLightFilter.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdLux/lightFilter.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/usd/usdRi/splineAPI.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// PXRRODLIGHTFILTER //
// -------------------------------------------------------------------------- //
/// \class UsdRiPxrRodLightFilter
///
///
/// \deprecated This schema will be replaced in a future release.
/// Simulates a rod or capsule-shaped region to modulate light.
///
///
/// For any described attribute \em Fallback \em Value or \em Allowed \em Values below
/// that are text/tokens, the actual token is published and defined in \ref UsdRiTokens.
/// So to set an attribute to the value "rightHanded", use UsdRiTokens->rightHanded
/// as the value.
///
class UsdRiPxrRodLightFilter : public UsdLuxLightFilter
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiPxrRodLightFilter on UsdPrim \p prim .
/// Equivalent to UsdRiPxrRodLightFilter::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiPxrRodLightFilter(const UsdPrim& prim=UsdPrim())
: UsdLuxLightFilter(prim)
{
}
/// Construct a UsdRiPxrRodLightFilter on the prim held by \p schemaObj .
/// Should be preferred over UsdRiPxrRodLightFilter(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiPxrRodLightFilter(const UsdSchemaBase& schemaObj)
: UsdLuxLightFilter(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiPxrRodLightFilter();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiPxrRodLightFilter holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiPxrRodLightFilter(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiPxrRodLightFilter
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiPxrRodLightFilter
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// WIDTH
// --------------------------------------------------------------------- //
/// Width of the inner region of the rod (X axis).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float width = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetWidthAttr() const;
/// See GetWidthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateWidthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// HEIGHT
// --------------------------------------------------------------------- //
/// Height of the inner region of the rod (Y axis).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float height = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetHeightAttr() const;
/// See GetHeightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// DEPTH
// --------------------------------------------------------------------- //
/// Depth of the inner region of the rod (Z axis).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float depth = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetDepthAttr() const;
/// See GetDepthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateDepthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RADIUS
// --------------------------------------------------------------------- //
/// Radius of the corners of the inner rod box.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float radius = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRadiusAttr() const;
/// See GetRadiusAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRadiusAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGETHICKNESS
// --------------------------------------------------------------------- //
/// Thickness of the edge region. Larger values will
/// soften the edge shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeThickness = 0.25` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeThicknessAttr() const;
/// See GetEdgeThicknessAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeThicknessAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SCALEWIDTH
// --------------------------------------------------------------------- //
/// Scale the width of the inner rod shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float scale:width = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetScaleWidthAttr() const;
/// See GetScaleWidthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateScaleWidthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SCALEHEIGHT
// --------------------------------------------------------------------- //
/// Scale the height of the inner rod shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float scale:height = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetScaleHeightAttr() const;
/// See GetScaleHeightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateScaleHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// SCALEDEPTH
// --------------------------------------------------------------------- //
/// Scale the depth of the inner rod shape.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float scale:depth = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetScaleDepthAttr() const;
/// See GetScaleDepthAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateScaleDepthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINETOP
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:top = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineTopAttr() const;
/// See GetRefineTopAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineTopAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINEBOTTOM
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:bottom = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineBottomAttr() const;
/// See GetRefineBottomAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineBottomAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINELEFT
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:left = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineLeftAttr() const;
/// See GetRefineLeftAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineLeftAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINERIGHT
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:right = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineRightAttr() const;
/// See GetRefineRightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineRightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINEFRONT
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the front region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:front = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineFrontAttr() const;
/// See GetRefineFrontAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineFrontAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// REFINEBACK
// --------------------------------------------------------------------- //
/// Additional offset adjustment to the back region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float refine:back = 0` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRefineBackAttr() const;
/// See GetRefineBackAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRefineBackAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALETOP
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:top = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleTopAttr() const;
/// See GetEdgeScaleTopAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleTopAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALEBOTTOM
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the top region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:bottom = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleBottomAttr() const;
/// See GetEdgeScaleBottomAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleBottomAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALELEFT
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:left = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleLeftAttr() const;
/// See GetEdgeScaleLeftAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleLeftAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALERIGHT
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the left region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:right = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleRightAttr() const;
/// See GetEdgeScaleRightAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleRightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALEFRONT
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the front region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:front = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleFrontAttr() const;
/// See GetEdgeScaleFrontAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleFrontAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// EDGESCALEBACK
// --------------------------------------------------------------------- //
/// Additional edge scale adjustment to the back region.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float edgeScale:back = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetEdgeScaleBackAttr() const;
/// See GetEdgeScaleBackAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateEdgeScaleBackAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORSATURATION
// --------------------------------------------------------------------- //
/// Saturation of the result (0=greyscale, 1=normal,
/// >1=boosted colors).
///
/// | ||
/// | -- | -- |
/// | Declaration | `float color:saturation = 1` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetColorSaturationAttr() const;
/// See GetColorSaturationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorSaturationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFF
// --------------------------------------------------------------------- //
/// Controls the transition from the core to the edge.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int falloff = 6` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetFalloffAttr() const;
/// See GetFalloffAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFKNOTS
// --------------------------------------------------------------------- //
/// Knots of the falloff spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] falloff:knots = [0, 0, 0.3, 0.7, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetFalloffKnotsAttr() const;
/// See GetFalloffKnotsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffKnotsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFFLOATS
// --------------------------------------------------------------------- //
/// Float values of the falloff spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] falloff:floats = [0, 0, 0.2, 0.8, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetFalloffFloatsAttr() const;
/// See GetFalloffFloatsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffFloatsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// FALLOFFINTERPOLATION
// --------------------------------------------------------------------- //
/// Falloff spline type.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token falloff:interpolation = "bspline"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | linear, catmull-rom, bspline, constant |
USDRI_API
UsdAttribute GetFalloffInterpolationAttr() const;
/// See GetFalloffInterpolationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFalloffInterpolationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMP
// --------------------------------------------------------------------- //
/// Controls the color gradient for the transition.
///
/// | ||
/// | -- | -- |
/// | Declaration | `int colorRamp = 4` |
/// | C++ Type | int |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
USDRI_API
UsdAttribute GetColorRampAttr() const;
/// See GetColorRampAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPKNOTS
// --------------------------------------------------------------------- //
/// Knots of the colorRamp spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `float[] colorRamp:knots = [0, 0, 1, 1]` |
/// | C++ Type | VtArray<float> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->FloatArray |
USDRI_API
UsdAttribute GetColorRampKnotsAttr() const;
/// See GetColorRampKnotsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampKnotsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPCOLORS
// --------------------------------------------------------------------- //
/// Color values of the colorRamp spline.
///
/// | ||
/// | -- | -- |
/// | Declaration | `color3f[] colorRamp:colors = [(1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1)]` |
/// | C++ Type | VtArray<GfVec3f> |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Color3fArray |
USDRI_API
UsdAttribute GetColorRampColorsAttr() const;
/// See GetColorRampColorsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampColorsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// COLORRAMPINTERPOLATION
// --------------------------------------------------------------------- //
/// ColorRamp spline type.
///
/// | ||
/// | -- | -- |
/// | Declaration | `token colorRamp:interpolation = "linear"` |
/// | C++ Type | TfToken |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Token |
/// | \ref UsdRiTokens "Allowed Values" | linear, catmull-rom, bspline, constant |
USDRI_API
UsdAttribute GetColorRampInterpolationAttr() const;
/// See GetColorRampInterpolationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateColorRampInterpolationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
/// Return the UsdRiSplineAPI interface used for examining and modifying
/// the falloff ramp. The values of the spline knots are of type float.
USDRI_API
UsdRiSplineAPI GetFalloffRampAPI() const;
/// Return the UsdRiSplineAPI interface used for examining and modifying
/// the color ramp. The values of the spline knots are of type GfVec3f,
/// representing RGB colors.
USDRI_API
UsdRiSplineAPI GetColorRampAPI() const;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+182
View File
@@ -0,0 +1,182 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RISBXDF_H
#define USDRI_GENERATED_RISBXDF_H
/// \file usdRi/risBxdf.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdRi/risObject.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISBXDF //
// -------------------------------------------------------------------------- //
/// \class UsdRiRisBxdf
///
///
/// \deprecated Specialized RIS shader schemas have been deprecated in
/// favor of all shader prims being simple UsdShadeShader.
/// This schema will be removed in a future release.
///
/// Represents a ris bxdf object. One of these is assigned at one time.
///
///
class UsdRiRisBxdf : public UsdRiRisObject
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRisBxdf on UsdPrim \p prim .
/// Equivalent to UsdRiRisBxdf::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRisBxdf(const UsdPrim& prim=UsdPrim())
: UsdRiRisObject(prim)
{
}
/// Construct a UsdRiRisBxdf on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRisBxdf(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRisBxdf(const UsdSchemaBase& schemaObj)
: UsdRiRisObject(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRisBxdf();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRisBxdf holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRisBxdf(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRisBxdf
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRisBxdf
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+225
View File
@@ -0,0 +1,225 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RISINTEGRATOR_H
#define USDRI_GENERATED_RISINTEGRATOR_H
/// \file usdRi/risIntegrator.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/typed.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISINTEGRATOR //
// -------------------------------------------------------------------------- //
/// \class UsdRiRisIntegrator
///
///
/// \deprecated RIS integrator settings will be replaced
/// with a new schema in a future release.
///
/// Integrator. Only one can be declared in a rib scene.
///
class UsdRiRisIntegrator : public UsdTyped
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRisIntegrator on UsdPrim \p prim .
/// Equivalent to UsdRiRisIntegrator::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRisIntegrator(const UsdPrim& prim=UsdPrim())
: UsdTyped(prim)
{
}
/// Construct a UsdRiRisIntegrator on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRisIntegrator(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRisIntegrator(const UsdSchemaBase& schemaObj)
: UsdTyped(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRisIntegrator();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRisIntegrator holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRisIntegrator(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRisIntegrator
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRisIntegrator
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// FILEPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset filePath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetFilePathAttr() const;
/// See GetFilePathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFilePathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ARGSPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset argsPath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetArgsPathAttr() const;
/// See GetArgsPathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateArgsPathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+229
View File
@@ -0,0 +1,229 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RISOBJECT_H
#define USDRI_GENERATED_RISOBJECT_H
/// \file usdRi/risObject.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdShade/shader.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISOBJECT //
// -------------------------------------------------------------------------- //
/// \class UsdRiRisObject
///
///
/// \deprecated Specialized RIS shader schemas have been deprecated in
/// favor of all shader prims being simple UsdShadeShader.
/// This schema will be removed in a future release.
///
/// Represents a ris object with connectable parameters.
///
class UsdRiRisObject : public UsdShadeShader
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRisObject on UsdPrim \p prim .
/// Equivalent to UsdRiRisObject::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRisObject(const UsdPrim& prim=UsdPrim())
: UsdShadeShader(prim)
{
}
/// Construct a UsdRiRisObject on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRisObject(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRisObject(const UsdSchemaBase& schemaObj)
: UsdShadeShader(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRisObject();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRisObject holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRisObject(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRisObject
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRisObject
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// FILEPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset info:filePath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetFilePathAttr() const;
/// See GetFilePathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFilePathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// ARGSPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset info:argsPath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetArgsPathAttr() const;
/// See GetArgsPathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateArgsPathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
private:
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+226
View File
@@ -0,0 +1,226 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RISOSLPATTERN_H
#define USDRI_GENERATED_RISOSLPATTERN_H
/// \file usdRi/risOslPattern.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdRi/risPattern.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISOSLPATTERN //
// -------------------------------------------------------------------------- //
/// \class UsdRiRisOslPattern
///
///
/// \deprecated Specialized RIS shader schemas have been deprecated in
/// favor of all shader prims being simple UsdShadeShader.
/// This schema will be removed in a future release.
///
/// Represents a ris osl pattern object.
///
class UsdRiRisOslPattern : public UsdRiRisPattern
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRisOslPattern on UsdPrim \p prim .
/// Equivalent to UsdRiRisOslPattern::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRisOslPattern(const UsdPrim& prim=UsdPrim())
: UsdRiRisPattern(prim)
{
}
/// Construct a UsdRiRisOslPattern on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRisOslPattern(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRisOslPattern(const UsdSchemaBase& schemaObj)
: UsdRiRisPattern(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRisOslPattern();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRisOslPattern holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRisOslPattern(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRisOslPattern
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRisOslPattern
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// FILEPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset info:filePath = @PxrOSL@` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetFilePathAttr() const;
/// See GetFilePathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateFilePathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// OSLPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset info:oslPath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetOslPathAttr() const;
/// See GetOslPathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateOslPathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+181
View File
@@ -0,0 +1,181 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RISPATTERN_H
#define USDRI_GENERATED_RISPATTERN_H
/// \file usdRi/risPattern.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdRi/risObject.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISPATTERN //
// -------------------------------------------------------------------------- //
/// \class UsdRiRisPattern
///
///
/// \deprecated Specialized RIS shader schemas have been deprecated in
/// favor of all shader prims being simple UsdShadeShader.
/// This schema will be removed in a future release.
///
/// Represents a ris pattern object. Multiple of these can be assigned.
///
class UsdRiRisPattern : public UsdRiRisObject
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRisPattern on UsdPrim \p prim .
/// Equivalent to UsdRiRisPattern::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRisPattern(const UsdPrim& prim=UsdPrim())
: UsdRiRisObject(prim)
{
}
/// Construct a UsdRiRisPattern on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRisPattern(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRisPattern(const UsdSchemaBase& schemaObj)
: UsdRiRisObject(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRisPattern();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRisPattern holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRisPattern(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRisPattern
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRisPattern
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+70
View File
@@ -0,0 +1,70 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_USD_USD_RI_RMAN_UTILITIES_H
#define PXR_USD_USD_RI_RMAN_UTILITIES_H
/// \file usdRi/rmanUtilities.h
/// Utilities for converting between USD encodings and Renderman encodings in
/// cases where there is a difference.
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
PXR_NAMESPACE_OPEN_SCOPE
class TfToken;
/// Given a \p token representing a UsdGeom interpolate boundary value, returns
/// corresponding rman enum (converted to int).
USDRI_API
int UsdRiConvertToRManInterpolateBoundary(const TfToken &token);
/// Given the integer \p i that corresponds to an rman enum for interpolate
/// boundary condition, returns the equivalent UsdGeom token.
USDRI_API
const TfToken &UsdRiConvertFromRManInterpolateBoundary(int i);
/// Given a \p token representing a UsdGeom face-varying interpolate boundary
/// value, returns corresponding rman enum (converted to int).
USDRI_API
int UsdRiConvertToRManFaceVaryingLinearInterpolation(const TfToken &token);
/// Given the integer \p i that corresponds to an rman enum for face-varying
/// interpolate boundary condition, returns the equivalent UsdGeom token.
USDRI_API
const TfToken &UsdRiConvertFromRManFaceVaryingLinearInterpolation(int i);
/// Given a \p token representing a UsdGeom Catmull-Clark triangle subdivision
/// rule value, returns corresponding rman enum (converted to int).
USDRI_API
int UsdRiConvertToRManTriangleSubdivisionRule(const TfToken &token);
/// Given the integer \p i that corresponds to an rman enum for a Catmull-
/// Clark triangle subdivision rule, returns the equivalent UsdGeom token.
USDRI_API
const TfToken &UsdRiConvertFromRManTriangleSubdivisionRule(int i);
PXR_NAMESPACE_CLOSE_SCOPE
#endif //PXR_USD_USD_RI_RMAN_UTILITIES_H
+203
View File
@@ -0,0 +1,203 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_RSLSHADER_H
#define USDRI_GENERATED_RSLSHADER_H
/// \file usdRi/rslShader.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usdShade/shader.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RSLSHADER //
// -------------------------------------------------------------------------- //
/// \class UsdRiRslShader
///
///
/// \deprecated RSL shaders have been deprecated in RenderMan. This
/// schema will be removed in a future release.
///
///
class UsdRiRslShader : public UsdShadeShader
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::ConcreteTyped;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::ConcreteTyped;
/// Construct a UsdRiRslShader on UsdPrim \p prim .
/// Equivalent to UsdRiRslShader::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiRslShader(const UsdPrim& prim=UsdPrim())
: UsdShadeShader(prim)
{
}
/// Construct a UsdRiRslShader on the prim held by \p schemaObj .
/// Should be preferred over UsdRiRslShader(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiRslShader(const UsdSchemaBase& schemaObj)
: UsdShadeShader(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiRslShader();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiRslShader holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiRslShader(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiRslShader
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Attempt to ensure a \a UsdPrim adhering to this schema at \p path
/// is defined (according to UsdPrim::IsDefined()) on this stage.
///
/// If a prim adhering to this schema at \p path is already defined on this
/// stage, return that prim. Otherwise author an \a SdfPrimSpec with
/// \a specifier == \a SdfSpecifierDef and this schema's prim type name for
/// the prim at \p path at the current EditTarget. Author \a SdfPrimSpec s
/// with \p specifier == \a SdfSpecifierDef and empty typeName at the
/// current EditTarget for any nonexistent, or existing but not \a Defined
/// ancestors.
///
/// The given \a path must be an absolute prim path that does not contain
/// any variant selections.
///
/// If it is impossible to author any of the necessary PrimSpecs, (for
/// example, in case \a path cannot map to the current UsdEditTarget's
/// namespace) issue an error and return an invalid \a UsdPrim.
///
/// Note that this method may return a defined prim whose typeName does not
/// specify this schema class, in case a stronger typeName opinion overrides
/// the opinion at the current EditTarget.
///
USDRI_API
static UsdRiRslShader
Define(const UsdStagePtr &stage, const SdfPath &path);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// SLOPATH
// --------------------------------------------------------------------- //
///
///
/// | ||
/// | -- | -- |
/// | Declaration | `asset info:sloPath` |
/// | C++ Type | SdfAssetPath |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Asset |
USDRI_API
UsdAttribute GetSloPathAttr() const;
/// See GetSloPathAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateSloPathAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+324
View File
@@ -0,0 +1,324 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_SPLINEAPI_H
#define USDRI_GENERATED_SPLINEAPI_H
/// \file usdRi/splineAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RISPLINEAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiSplineAPI
///
///
/// \deprecated This API schema will be removed in a future release.
///
/// RiSplineAPI is a general purpose API schema used to describe
/// a named spline stored as a set of attributes on a prim.
///
/// It is an add-on schema that can be applied many times to a prim with
/// different spline names. All the attributes authored by the schema
/// are namespaced under "$NAME:spline:", with the name of the
/// spline providing a namespace for the attributes.
///
/// The spline describes a 2D piecewise cubic curve with a position and
/// value for each knot. This is chosen to give straightforward artistic
/// control over the shape. The supported basis types are:
///
/// - linear (UsdRiTokens->linear)
/// - bspline (UsdRiTokens->bspline)
/// - Catmull-Rom (UsdRiTokens->catmull_rom)
///
///
class UsdRiSplineAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiSplineAPI on UsdPrim \p prim .
/// Equivalent to UsdRiSplineAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiSplineAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiSplineAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiSplineAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiSplineAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiSplineAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiSplineAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiSplineAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiSplineAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiSplineAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiSplineAPI object is returned upon success.
/// An invalid (or empty) UsdRiSplineAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiSplineAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
/// Construct a UsdRiSplineAPI with the given \p splineName on
/// the UsdPrim \p prim .
explicit UsdRiSplineAPI(const UsdPrim& prim, const TfToken &splineName,
const SdfValueTypeName &valuesTypeName,
bool doesDuplicateBSplineEndpoints)
: UsdAPISchemaBase(prim)
, _splineName(splineName)
, _valuesTypeName(valuesTypeName)
, _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
{
}
/// Construct a UsdRiSplineAPI with the given \p splineName on
/// the prim held by \p schemaObj .
explicit UsdRiSplineAPI(const UsdSchemaBase& schemaObj,
const TfToken &splineName,
const SdfValueTypeName &valuesTypeName,
bool doesDuplicateBSplineEndpoints)
: UsdAPISchemaBase(schemaObj.GetPrim())
, _splineName(splineName)
, _valuesTypeName(valuesTypeName)
, _duplicateBSplineEndpoints(doesDuplicateBSplineEndpoints)
{
}
/// Returns true if this UsdRiSplineAPI is configured to ensure
/// the endpoints are duplicated when using a bspline basis.
///
/// Duplicating the endpoints ensures that the spline reaches
/// those points at either end of the parameter range.
USDRI_API
bool DoesDuplicateBSplineEndpoints() const {
return _duplicateBSplineEndpoints;
}
/// Returns the intended typename of the values attribute of the spline.
USDRI_API
SdfValueTypeName GetValuesTypeName() const {
return _valuesTypeName;
}
// --------------------------------------------------------------------- //
// INTERPOLATION
// --------------------------------------------------------------------- //
/// Interpolation method for the spline.
///
/// \n C++ Type: TfToken
/// \n Usd Type: SdfValueTypeNames->Token
/// \n Variability: SdfVariabilityUniform
/// \n Fallback Value: linear
/// \n \ref UsdRiTokens "Allowed Values": [linear, constant, bspline, catmullRom]
USDRI_API
UsdAttribute GetInterpolationAttr() const;
/// See GetInterpolationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateInterpolationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
// --------------------------------------------------------------------- //
// POSITIONS
// --------------------------------------------------------------------- //
/// Positions of the knots.
///
/// \n C++ Type: VtArray<float>
/// \n Usd Type: SdfValueTypeNames->FloatArray
/// \n Variability: SdfVariabilityUniform
/// \n Fallback Value: No Fallback
USDRI_API
UsdAttribute GetPositionsAttr() const;
/// See GetPositionsAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreatePositionsAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
// --------------------------------------------------------------------- //
// VALUES
// --------------------------------------------------------------------- //
/// Values of the knots.
///
/// \n C++ Type: See GetValuesTypeName()
/// \n Usd Type: See GetValuesTypeName()
/// \n Variability: SdfVariabilityUniform
/// \n Fallback Value: No Fallback
USDRI_API
UsdAttribute GetValuesAttr() const;
/// See GetValuesAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateValuesAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
/// \anchor UsdRiSplineAPI_Validation
/// \name Spline Validation API
///
/// API for validating the properties of a spline.
///
/// @{
/// Validates the attribute values belonging to the spline. Returns true
/// if the spline has all valid attribute values. Returns false and
/// populates the \p reason output argument if the spline has invalid
/// attribute values.
///
/// Here's the list of validations performed by this method:
/// \li the SplineAPI must be fully initialized
/// \li interpolation attribute must exist and use an allowed value
/// \li the positions array must be a float array
/// \li the positions array must be sorted by increasing value
/// \li the values array must use the correct value type
/// \li the positions and values array must have the same size
///
USDRI_API
bool Validate(std::string *reason) const;
/// @}
private:
/// Returns the properly-scoped form of the given property name,
/// accounting for the spline name.
TfToken _GetScopedPropertyName(const TfToken &baseName) const;
private:
const TfToken _splineName;
const SdfValueTypeName _valuesTypeName;
bool _duplicateBSplineEndpoints;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+375
View File
@@ -0,0 +1,375 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_STATEMENTSAPI_H
#define USDRI_GENERATED_STATEMENTSAPI_H
/// \file usdRi/statementsAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdGeom/primvarsAPI.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// STATEMENTSAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiStatementsAPI
///
/// Container namespace schema for all renderman statements.
///
/// \note The longer term goal is for clients to go directly to primvar
/// or render-attribute API's, instead of using UsdRi StatementsAPI
/// for inherited attributes. Anticpating this, StatementsAPI
/// can smooth the way via a few environment variables:
///
/// * USDRI_STATEMENTS_WRITE_NEW_ENCODING: Causes StatementsAPI to write
/// attributes to primvars in the "ri:" namespace.
/// * USDRI_STATEMENTS_READ_OLD_ENCODING: Causes StatementsAPI to read
/// old-style attributes instead of primvars in the "ri:"
/// namespace.
///
///
class UsdRiStatementsAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiStatementsAPI on UsdPrim \p prim .
/// Equivalent to UsdRiStatementsAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiStatementsAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiStatementsAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiStatementsAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiStatementsAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiStatementsAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiStatementsAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiStatementsAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiStatementsAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "StatementsAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiStatementsAPI object is returned upon success.
/// An invalid (or empty) UsdRiStatementsAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiStatementsAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
// --------------------------------------------------------------------- //
// CreateRiAttribute
// --------------------------------------------------------------------- //
/// Create a rib attribute on the prim to which this schema is attached.
/// A rib attribute consists of an attribute \em "nameSpace" and an
/// attribute \em "name". For example, the namespace "cull" may define
/// attributes "backfacing" and "hidden", and user-defined attributes
/// belong to the namespace "user".
///
/// This method makes no attempt to validate that the given \p nameSpace
/// and \em name are actually meaningful to prman or any other
/// renderer.
///
/// \param riType should be a known RenderMan type definition, which
/// can be array-valued. For instance, both "color" and "float[3]"
/// are valid values for \p riType.
USDRI_API
UsdAttribute
CreateRiAttribute(
const TfToken &name,
const std::string &riType,
const std::string &nameSpace = "user");
/// Creates an attribute of the given \p tfType.
/// \overload
USDRI_API
UsdAttribute
CreateRiAttribute(
const TfToken &name,
const TfType &tfType,
const std::string &nameSpace = "user");
/// Return a UsdAttribute representing the Ri attribute with the
/// name \a name, in the namespace \a nameSpace. The attribute
/// returned may or may not \b actually exist so it must be
/// checked for validity.
USDRI_API
UsdAttribute
GetRiAttribute(
const TfToken &name,
const std::string &nameSpace = "user");
// --------------------------------------------------------------------- //
// GetRiAttributes
// --------------------------------------------------------------------- //
/// Return all rib attributes on this prim, or under a specific
/// namespace (e.g.\ "user").
///
/// As noted above, rib attributes can be either UsdAttribute or
/// UsdRelationship, and like all UsdProperties, need not have a defined
/// value.
USDRI_API
std::vector<UsdProperty>
GetRiAttributes(const std::string &nameSpace = "") const;
// --------------------------------------------------------------------- //
// GetRiAttributeName
// --------------------------------------------------------------------- //
/// Return the base, most-specific name of the rib attribute. For example,
/// the \em name of the rib attribute "cull:backfacing" is "backfacing"
inline static TfToken GetRiAttributeName(const UsdProperty &prop) {
return prop.GetBaseName();
}
// --------------------------------------------------------------------- //
// GetRiAttributeNameSpace
// --------------------------------------------------------------------- //
/// Return the containing namespace of the rib attribute (e.g.\ "user").
///
USDRI_API
static TfToken GetRiAttributeNameSpace(const UsdProperty &prop);
// --------------------------------------------------------------------- //
// IsRiAttribute
// --------------------------------------------------------------------- //
/// Return true if the property is in the "ri:attributes" namespace.
///
USDRI_API
static bool IsRiAttribute(const UsdProperty &prop);
// --------------------------------------------------------------------- //
// MakeRiAttributePropertyName
// --------------------------------------------------------------------- //
/// Returns the given \p attrName prefixed with the full Ri attribute
/// namespace, creating a name suitable for an RiAttribute UsdProperty.
/// This handles conversion of common separator characters used in
/// other packages, such as periods and underscores.
///
/// Will return empty string if attrName is not a valid property
/// identifier; otherwise, will return a valid property name
/// that identifies the property as an RiAttribute, according to the
/// following rules:
/// \li If \p attrName is already a properly constructed RiAttribute
/// property name, return it unchanged.
/// \li If \p attrName contains two or more tokens separated by a \em colon,
/// consider the first to be the namespace, and the rest the name,
/// joined by underscores
/// \li If \p attrName contains two or more tokens separated by a \em period,
/// consider the first to be the namespace, and the rest the name,
/// joined by underscores
/// \li If \p attrName contains two or more tokens separated by an,
/// \em underscore consider the first to be the namespace, and the
/// rest the name, joined by underscores
/// \li else, assume \p attrName is the name, and "user" is the namespace
USDRI_API
static std::string MakeRiAttributePropertyName(const std::string &attrName);
// --------------------------------------------------------------------- //
// SetCoordinateSystem
// --------------------------------------------------------------------- //
/// Sets the "ri:coordinateSystem" attribute to the given string value,
/// creating the attribute if needed. That identifies this prim as providing
/// a coordinate system, which can be retrieved via
/// UsdGeomXformable::GetTransformAttr(). Also adds the owning prim to the
/// ri:modelCoordinateSystems relationship targets on its parent leaf model
/// prim, if it exists. If this prim is not under a leaf model, no
/// relationship targets will be authored.
///
USDRI_API
void SetCoordinateSystem(const std::string &coordSysName);
// --------------------------------------------------------------------- //
// GetCoordinateSystem
// --------------------------------------------------------------------- //
/// Returns the value in the "ri:coordinateSystem" attribute if it exists.
///
USDRI_API
std::string GetCoordinateSystem() const;
// --------------------------------------------------------------------- //
// HasCoordinateSystem
// --------------------------------------------------------------------- //
/// Returns true if the underlying prim has a ri:coordinateSystem opinion.
///
USDRI_API
bool HasCoordinateSystem() const;
// --------------------------------------------------------------------- //
// SetScopedCoordinateSystem
// --------------------------------------------------------------------- //
/// Sets the "ri:scopedCoordinateSystem" attribute to the given string
/// value, creating the attribute if needed. That identifies this prim as
/// providing a coordinate system, which can be retrieved via
/// UsdGeomXformable::GetTransformAttr(). Such coordinate systems are
/// local to the RI attribute stack state, but does get updated properly
/// for instances when defined inside an object master. Also adds the
/// owning prim to the ri:modelScopedCoordinateSystems relationship
/// targets on its parent leaf model prim, if it exists. If this prim is
/// not under a leaf model, no relationship targets will be authored.
///
USDRI_API
void SetScopedCoordinateSystem(const std::string &coordSysName);
// --------------------------------------------------------------------- //
// GetScopedCoordinateSystem
// --------------------------------------------------------------------- //
/// Returns the value in the "ri:scopedCoordinateSystem" attribute if it
/// exists.
///
USDRI_API
std::string GetScopedCoordinateSystem() const;
// --------------------------------------------------------------------- //
// HasScopedCoordinateSystem
// --------------------------------------------------------------------- //
/// Returns true if the underlying prim has a ri:scopedCoordinateSystem
/// opinion.
///
USDRI_API
bool HasScopedCoordinateSystem() const;
// --------------------------------------------------------------------- //
// GetModelCoordinateSystems
// --------------------------------------------------------------------- //
/// Populates the output \p targets with the authored
/// ri:modelCoordinateSystems, if any. Returns true if the query was
/// successful.
///
USDRI_API
bool GetModelCoordinateSystems(SdfPathVector *targets) const;
// --------------------------------------------------------------------- //
// GetModelScopedCoordinateSystems
// --------------------------------------------------------------------- //
/// Populates the output \p targets with the authored
/// ri:modelScopedCoordinateSystems, if any. Returns true if the query was
/// successful.
///
USDRI_API
bool GetModelScopedCoordinateSystems(SdfPathVector *targets) const;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+218
View File
@@ -0,0 +1,218 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_GENERATED_TEXTUREAPI_H
#define USDRI_GENERATED_TEXTUREAPI_H
/// \file usdRi/textureAPI.h
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/usd/usd/apiSchemaBase.h"
#include "pxr/usd/usd/prim.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/usd/usdRi/tokens.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath;
// -------------------------------------------------------------------------- //
// RITEXTUREAPI //
// -------------------------------------------------------------------------- //
/// \class UsdRiTextureAPI
///
///
/// \deprecated This API schema will be removed in a future release.
///
/// RiTextureAPI is an API schema that provides an interface
/// to add Renderman-specific attributes to adjust textures.
///
class UsdRiTextureAPI : public UsdAPISchemaBase
{
public:
/// Compile time constant representing what kind of schema this class is.
///
/// \sa UsdSchemaKind
static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
/// \deprecated
/// Same as schemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
static const UsdSchemaKind schemaType = UsdSchemaKind::SingleApplyAPI;
/// Construct a UsdRiTextureAPI on UsdPrim \p prim .
/// Equivalent to UsdRiTextureAPI::Get(prim.GetStage(), prim.GetPath())
/// for a \em valid \p prim, but will not immediately throw an error for
/// an invalid \p prim
explicit UsdRiTextureAPI(const UsdPrim& prim=UsdPrim())
: UsdAPISchemaBase(prim)
{
}
/// Construct a UsdRiTextureAPI on the prim held by \p schemaObj .
/// Should be preferred over UsdRiTextureAPI(schemaObj.GetPrim()),
/// as it preserves SchemaBase state.
explicit UsdRiTextureAPI(const UsdSchemaBase& schemaObj)
: UsdAPISchemaBase(schemaObj)
{
}
/// Destructor.
USDRI_API
virtual ~UsdRiTextureAPI();
/// Return a vector of names of all pre-declared attributes for this schema
/// class and all its ancestor classes. Does not include attributes that
/// may be authored by custom/extended methods of the schemas involved.
USDRI_API
static const TfTokenVector &
GetSchemaAttributeNames(bool includeInherited=true);
/// Return a UsdRiTextureAPI holding the prim adhering to this
/// schema at \p path on \p stage. If no prim exists at \p path on
/// \p stage, or if the prim at that path does not adhere to this schema,
/// return an invalid schema object. This is shorthand for the following:
///
/// \code
/// UsdRiTextureAPI(stage->GetPrimAtPath(path));
/// \endcode
///
USDRI_API
static UsdRiTextureAPI
Get(const UsdStagePtr &stage, const SdfPath &path);
/// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "RiTextureAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim.
///
/// \return A valid UsdRiTextureAPI object is returned upon success.
/// An invalid (or empty) UsdRiTextureAPI object is returned upon
/// failure. See \ref UsdPrim::ApplyAPI() for conditions
/// resulting in failure.
///
/// \sa UsdPrim::GetAppliedSchemas()
/// \sa UsdPrim::HasAPI()
/// \sa UsdPrim::ApplyAPI()
/// \sa UsdPrim::RemoveAPI()
///
USDRI_API
static UsdRiTextureAPI
Apply(const UsdPrim &prim);
protected:
/// Returns the kind of schema this class belongs to.
///
/// \sa UsdSchemaKind
USDRI_API
UsdSchemaKind _GetSchemaKind() const override;
/// \deprecated
/// Same as _GetSchemaKind, provided to maintain temporary backward
/// compatibility with older generated schemas.
USDRI_API
UsdSchemaKind _GetSchemaType() const override;
private:
// needs to invoke _GetStaticTfType.
friend class UsdSchemaRegistry;
USDRI_API
static const TfType &_GetStaticTfType();
static bool _IsTypedSchema();
// override SchemaBase virtuals.
USDRI_API
const TfType &_GetTfType() const override;
public:
// --------------------------------------------------------------------- //
// RITEXTUREGAMMA
// --------------------------------------------------------------------- //
/// Gamma-correct the texture
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:texture:gamma` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiTextureGammaAttr() const;
/// See GetRiTextureGammaAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiTextureGammaAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// --------------------------------------------------------------------- //
// RITEXTURESATURATION
// --------------------------------------------------------------------- //
/// Adjust the texture's saturation
///
/// | ||
/// | -- | -- |
/// | Declaration | `float ri:texture:saturation` |
/// | C++ Type | float |
/// | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Float |
USDRI_API
UsdAttribute GetRiTextureSaturationAttr() const;
/// See GetRiTextureSaturationAttr(), and also
/// \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
/// If specified, author \p defaultValue as the attribute's default,
/// sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
/// the default for \p writeSparsely is \c false.
USDRI_API
UsdAttribute CreateRiTextureSaturationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
public:
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator.
//
// Just remember to:
// - Close the class declaration with };
// - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
// - Close the include guard with #endif
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+641
View File
@@ -0,0 +1,641 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef USDRI_TOKENS_H
#define USDRI_TOKENS_H
/// \file usdRi/tokens.h
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//
// This is an automatically generated file (by usdGenSchema.py).
// Do not hand-edit!
//
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include "pxr/pxr.h"
#include "pxr/usd/usdRi/api.h"
#include "pxr/base/tf/staticData.h"
#include "pxr/base/tf/token.h"
#include <vector>
PXR_NAMESPACE_OPEN_SCOPE
/// \class UsdRiTokensType
///
/// \link UsdRiTokens \endlink provides static, efficient
/// \link TfToken TfTokens\endlink for use in all public USD API.
///
/// These tokens are auto-generated from the module's schema, representing
/// property names, for when you need to fetch an attribute or relationship
/// directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient
/// manner, and allow the compiler to verify that you spelled the name
/// correctly.
///
/// UsdRiTokens also contains all of the \em allowedTokens values
/// declared for schema builtin attributes of 'token' scene description type.
/// Use UsdRiTokens like so:
///
/// \code
/// gprim.GetMyTokenValuedAttr().Set(UsdRiTokens->analytic);
/// \endcode
struct UsdRiTokensType {
USDRI_API UsdRiTokensType();
/// \brief "analytic"
///
/// Possible value for UsdRiPxrCookieLightFilter::GetCookieModeAttr(), Possible value for UsdRiPxrBarnLightFilter::GetBarnModeAttr()
const TfToken analytic;
/// \brief "analytic:apex"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticApex;
/// \brief "analytic:blur:amount"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurAmount;
/// \brief "analytic:blur:exponent"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurExponent;
/// \brief "analytic:blur:farDistance"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurFarDistance;
/// \brief "analytic:blur:farValue"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurFarValue;
/// \brief "analytic:blur:midpoint"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurMidpoint;
/// \brief "analytic:blur:midValue"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurMidValue;
/// \brief "analytic:blur:nearDistance"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurNearDistance;
/// \brief "analytic:blur:nearValue"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurNearValue;
/// \brief "analytic:blur:sMult"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurSMult;
/// \brief "analytic:blur:tMult"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticBlurTMult;
/// \brief "analytic:density:exponent"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDensityExponent;
/// \brief "analytic:density:farDistance"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDensityFarDistance;
/// \brief "analytic:density:farValue"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDensityFarValue;
/// \brief "analytic:density:midpoint"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticDensityMidpoint;
/// \brief "analytic:density:midValue"
///
/// UsdRiPxrCookieLightFilter
const TfToken analyticDensityMidValue;
/// \brief "analytic:density:nearDistance"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDensityNearDistance;
/// \brief "analytic:density:nearValue"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDensityNearValue;
/// \brief "analytic:directional"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticDirectional;
/// \brief "analytic:shearX"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticShearX;
/// \brief "analytic:shearY"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticShearY;
/// \brief "analytic:useLightDirection"
///
/// UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken analyticUseLightDirection;
/// \brief "aovName"
///
/// UsdRiPxrAovLight
const TfToken aovName;
/// \brief "argsPath"
///
/// UsdRiRisIntegrator
const TfToken argsPath;
/// \brief "barnMode"
///
/// UsdRiPxrBarnLightFilter
const TfToken barnMode;
/// \brief "beginDistance"
///
/// UsdRiPxrRampLightFilter
const TfToken beginDistance;
/// \brief "bspline"
///
/// UsdSplineAPI - BSpline spline interpolation, Possible value for UsdRiPxrRodLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRodLightFilter::GetFalloffInterpolationAttr(), Default value for UsdRiPxrRodLightFilter::GetFalloffInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetFalloffInterpolationAttr()
const TfToken bspline;
/// \brief "catmull-rom"
///
/// UsdSplineAPI - Catmull-Rom spline interpolation
const TfToken catmull_rom;
/// \brief "catmull-rom"
///
/// Possible value for UsdRiPxrRodLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRodLightFilter::GetFalloffInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetFalloffInterpolationAttr()
const TfToken catmullRom;
/// \brief "clamp"
///
/// Possible value for UsdRiPxrCookieLightFilter::GetTextureWrapModeAttr()
const TfToken clamp;
/// \brief "color:contrast"
///
/// UsdRiPxrCookieLightFilter
const TfToken colorContrast;
/// \brief "color:midpoint"
///
/// UsdRiPxrCookieLightFilter
const TfToken colorMidpoint;
/// \brief "colorRamp"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken colorRamp;
/// \brief "colorRamp:colors"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken colorRampColors;
/// \brief "colorRamp:interpolation"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken colorRampInterpolation;
/// \brief "colorRamp:knots"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken colorRampKnots;
/// \brief "color:saturation"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrCookieLightFilter, UsdRiPxrIntMultLightFilter
const TfToken colorSaturation;
/// \brief "color:tint"
///
/// UsdRiPxrCookieLightFilter
const TfToken colorTint;
/// \brief "color:whitepoint"
///
/// UsdRiPxrCookieLightFilter
const TfToken colorWhitepoint;
/// \brief "cone"
///
/// Possible value for UsdRiPxrBarnLightFilter::GetPreBarnEffectAttr()
const TfToken cone;
/// \brief "constant"
///
/// UsdSplineAPI - Constant-value spline interpolation, Possible value for UsdRiPxrRodLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRodLightFilter::GetFalloffInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetFalloffInterpolationAttr()
const TfToken constant;
/// \brief "cookieMode"
///
/// UsdRiPxrCookieLightFilter
const TfToken cookieMode;
/// \brief "day"
///
/// UsdRiPxrEnvDayLight
const TfToken day;
/// \brief "depth"
///
/// UsdRiPxrRodLightFilter
const TfToken depth;
/// \brief "distanceToLight"
///
/// Possible value for UsdRiPxrRampLightFilter::GetRampModeAttr(), Default value for UsdRiPxrRampLightFilter::GetRampModeAttr()
const TfToken distanceToLight;
/// \brief "edgeScale:back"
///
/// UsdRiPxrRodLightFilter
const TfToken edgeScaleBack;
/// \brief "edgeScale:bottom"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken edgeScaleBottom;
/// \brief "edgeScale:front"
///
/// UsdRiPxrRodLightFilter
const TfToken edgeScaleFront;
/// \brief "edgeScale:left"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken edgeScaleLeft;
/// \brief "edgeScale:right"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken edgeScaleRight;
/// \brief "edgeScale:top"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken edgeScaleTop;
/// \brief "edgeThickness"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken edgeThickness;
/// \brief "endDistance"
///
/// UsdRiPxrRampLightFilter
const TfToken endDistance;
/// \brief "falloff"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken falloff;
/// \brief "falloff:floats"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken falloffFloats;
/// \brief "falloff:interpolation"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken falloffInterpolation;
/// \brief "falloff:knots"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrRampLightFilter
const TfToken falloffKnots;
/// \brief "filePath"
///
/// UsdRiRisIntegrator
const TfToken filePath;
/// \brief "haziness"
///
/// UsdRiPxrEnvDayLight
const TfToken haziness;
/// \brief "height"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken height;
/// \brief "hour"
///
/// UsdRiPxrEnvDayLight
const TfToken hour;
/// \brief "info:argsPath"
///
/// UsdRiRisObject
const TfToken infoArgsPath;
/// \brief "info:filePath"
///
/// UsdRiRisOslPattern, UsdRiRisObject
const TfToken infoFilePath;
/// \brief "info:oslPath"
///
/// UsdRiRisOslPattern
const TfToken infoOslPath;
/// \brief "info:sloPath"
///
/// UsdRiRslShader
const TfToken infoSloPath;
/// \brief "inPrimaryHit"
///
/// UsdRiPxrAovLight
const TfToken inPrimaryHit;
/// \brief "inReflection"
///
/// UsdRiPxrAovLight
const TfToken inReflection;
/// \brief "inRefraction"
///
/// UsdRiPxrAovLight
const TfToken inRefraction;
/// \brief "interpolation"
///
/// UsdSplineAPI - Interpolation attribute name
const TfToken interpolation;
/// \brief "invert"
///
/// UsdRiPxrAovLight
const TfToken invert;
/// \brief "latitude"
///
/// UsdRiPxrEnvDayLight
const TfToken latitude;
/// \brief "linear"
///
/// UsdSplineAPI - Linear spline interpolation, Possible value for UsdRiPxrRodLightFilter::GetColorRampInterpolationAttr(), Default value for UsdRiPxrRodLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRodLightFilter::GetFalloffInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetColorRampInterpolationAttr(), Default value for UsdRiPxrRampLightFilter::GetColorRampInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetFalloffInterpolationAttr(), Default value for UsdRiPxrRampLightFilter::GetFalloffInterpolationAttr(), Possible value for UsdRiPxrRampLightFilter::GetRampModeAttr()
const TfToken linear;
/// \brief "longitude"
///
/// UsdRiPxrEnvDayLight
const TfToken longitude;
/// \brief "max"
///
/// Possible value for UsdRiLightFilterAPI::GetRiCombineModeAttr()
const TfToken max;
/// \brief "min"
///
/// Possible value for UsdRiLightFilterAPI::GetRiCombineModeAttr()
const TfToken min;
/// \brief "month"
///
/// UsdRiPxrEnvDayLight
const TfToken month;
/// \brief "multiply"
///
/// Possible value for UsdRiLightFilterAPI::GetRiCombineModeAttr(), Default value for UsdRiLightFilterAPI::GetRiCombineModeAttr()
const TfToken multiply;
/// \brief "noEffect"
///
/// Possible value for UsdRiPxrBarnLightFilter::GetPreBarnEffectAttr()
const TfToken noEffect;
/// \brief "noLight"
///
/// Possible value for UsdRiPxrBarnLightFilter::GetPreBarnEffectAttr(), Default value for UsdRiPxrBarnLightFilter::GetPreBarnEffectAttr()
const TfToken noLight;
/// \brief "off"
///
/// Possible value for UsdRiPxrCookieLightFilter::GetTextureWrapModeAttr(), Default value for UsdRiPxrCookieLightFilter::GetTextureWrapModeAttr()
const TfToken off;
/// \brief "onVolumeBoundaries"
///
/// UsdRiPxrAovLight
const TfToken onVolumeBoundaries;
/// \brief "outputs:ri:displacement"
///
/// UsdRiMaterialAPI
const TfToken outputsRiDisplacement;
/// \brief "outputs:ri:surface"
///
/// UsdRiMaterialAPI
const TfToken outputsRiSurface;
/// \brief "outputs:ri:volume"
///
/// UsdRiMaterialAPI
const TfToken outputsRiVolume;
/// \brief "physical"
///
/// Possible value for UsdRiPxrCookieLightFilter::GetCookieModeAttr(), Default value for UsdRiPxrCookieLightFilter::GetCookieModeAttr(), Possible value for UsdRiPxrBarnLightFilter::GetBarnModeAttr(), Default value for UsdRiPxrBarnLightFilter::GetBarnModeAttr()
const TfToken physical;
/// \brief "positions"
///
/// UsdSplineAPI - Positions attribute name
const TfToken positions;
/// \brief "preBarnEffect"
///
/// UsdRiPxrBarnLightFilter
const TfToken preBarnEffect;
/// \brief "radial"
///
/// Possible value for UsdRiPxrRampLightFilter::GetRampModeAttr()
const TfToken radial;
/// \brief "radius"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken radius;
/// \brief "rampMode"
///
/// UsdRiPxrRampLightFilter
const TfToken rampMode;
/// \brief "refine:back"
///
/// UsdRiPxrRodLightFilter
const TfToken refineBack;
/// \brief "refine:bottom"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken refineBottom;
/// \brief "refine:front"
///
/// UsdRiPxrRodLightFilter
const TfToken refineFront;
/// \brief "refine:left"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken refineLeft;
/// \brief "refine:right"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken refineRight;
/// \brief "refine:top"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken refineTop;
/// \brief "repeat"
///
/// Possible value for UsdRiPxrCookieLightFilter::GetTextureWrapModeAttr()
const TfToken repeat;
/// \brief "ri:combineMode"
///
/// UsdRiLightFilterAPI
const TfToken riCombineMode;
/// \brief "ri:density"
///
/// UsdRiLightFilterAPI
const TfToken riDensity;
/// \brief "ri:diffuse"
///
/// UsdRiLightFilterAPI
const TfToken riDiffuse;
/// \brief "ri:exposure"
///
/// UsdRiLightFilterAPI
const TfToken riExposure;
/// \brief "ri:intensity"
///
/// UsdRiPxrIntMultLightFilter, UsdRiLightFilterAPI
const TfToken riIntensity;
/// \brief "ri:intensityNearDist"
///
/// UsdRiLightAPI
const TfToken riIntensityNearDist;
/// \brief "ri:invert"
///
/// UsdRiLightFilterAPI
const TfToken riInvert;
/// \brief "ri:lightGroup"
///
/// UsdRiLightAPI
const TfToken riLightGroup;
/// \brief "ri:portal:intensity"
///
/// UsdRiLightPortalAPI
const TfToken riPortalIntensity;
/// \brief "ri:portal:tint"
///
/// UsdRiLightPortalAPI
const TfToken riPortalTint;
/// \brief "ri:sampling:fixedSampleCount"
///
/// UsdRiLightAPI
const TfToken riSamplingFixedSampleCount;
/// \brief "ri:sampling:importanceMultiplier"
///
/// UsdRiLightAPI
const TfToken riSamplingImportanceMultiplier;
/// \brief "ri:shadow:thinShadow"
///
/// UsdRiLightAPI
const TfToken riShadowThinShadow;
/// \brief "ri:specular"
///
/// UsdRiLightFilterAPI
const TfToken riSpecular;
/// \brief "ri:texture:gamma"
///
/// UsdRiTextureAPI
const TfToken riTextureGamma;
/// \brief "ri:texture:saturation"
///
/// UsdRiTextureAPI
const TfToken riTextureSaturation;
/// \brief "ri:trace:lightPaths"
///
/// UsdRiLightAPI
const TfToken riTraceLightPaths;
/// \brief "scale:depth"
///
/// UsdRiPxrRodLightFilter
const TfToken scaleDepth;
/// \brief "scale:height"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken scaleHeight;
/// \brief "scale:width"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrBarnLightFilter
const TfToken scaleWidth;
/// \brief "screen"
///
/// Possible value for UsdRiLightFilterAPI::GetRiCombineModeAttr()
const TfToken screen;
/// \brief "skyTint"
///
/// UsdRiPxrEnvDayLight
const TfToken skyTint;
/// \brief "spherical"
///
/// Possible value for UsdRiPxrRampLightFilter::GetRampModeAttr()
const TfToken spherical;
/// \brief "spline"
///
/// UsdSplineAPI - Namespace for spline attributes
const TfToken spline;
/// \brief "sunDirection"
///
/// UsdRiPxrEnvDayLight
const TfToken sunDirection;
/// \brief "sunSize"
///
/// UsdRiPxrEnvDayLight
const TfToken sunSize;
/// \brief "sunTint"
///
/// UsdRiPxrEnvDayLight
const TfToken sunTint;
/// \brief "texture:fillColor"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureFillColor;
/// \brief "texture:invertU"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureInvertU;
/// \brief "texture:invertV"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureInvertV;
/// \brief "texture:map"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureMap;
/// \brief "texture:offsetU"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureOffsetU;
/// \brief "texture:offsetV"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureOffsetV;
/// \brief "texture:premultipliedAlpha"
///
/// UsdRiPxrCookieLightFilter
const TfToken texturePremultipliedAlpha;
/// \brief "texture:scaleU"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureScaleU;
/// \brief "texture:scaleV"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureScaleV;
/// \brief "texture:wrapMode"
///
/// UsdRiPxrCookieLightFilter
const TfToken textureWrapMode;
/// \brief "useColor"
///
/// UsdRiPxrAovLight
const TfToken useColor;
/// \brief "useThroughput"
///
/// UsdRiPxrAovLight
const TfToken useThroughput;
/// \brief "values"
///
/// UsdSplineAPI - values attribute name
const TfToken values;
/// \brief "width"
///
/// UsdRiPxrRodLightFilter, UsdRiPxrCookieLightFilter, UsdRiPxrBarnLightFilter
const TfToken width;
/// \brief "year"
///
/// UsdRiPxrEnvDayLight
const TfToken year;
/// \brief "zone"
///
/// UsdRiPxrEnvDayLight
const TfToken zone;
/// A vector of all of the tokens listed above.
const std::vector<TfToken> allTokens;
};
/// \var UsdRiTokens
///
/// A global variable with static, efficient \link TfToken TfTokens\endlink
/// for use in all public USD API. \sa UsdRiTokensType
extern USDRI_API TfStaticData<UsdRiTokensType> UsdRiTokens;
PXR_NAMESPACE_CLOSE_SCOPE
#endif