Explicit, caller-owned authority for Pcg photo-mode water reflection and underwater fog values. 更多...
#include <PcgWaterPhotoMode.h>
Public 成员函数 | |
| PcgWaterPhotoModeAuthority ()=default | |
| Pcg water photo mode authority. | |
| ~PcgWaterPhotoModeAuthority () override | |
| Pcg water photo mode authority. | |
| void | setAuthority (bool enabled) |
| Register or revoke this object as the unique water-field provider. | |
| bool | getAuthority () const noexcept |
| Return whether the authority lease is active. | |
| PhotoModeFieldAcceptance | acceptsPhotoModeField (const PhotoModeAssignment &assignment) const noexcept override |
| Return whether this provider owns the assignment. | |
| Result< void > | applyPhotoModeField (const PhotoModeAssignment &assignment) override |
| Apply one Water-domain assignment atomically. | |
| Result< void > | applyToPlanarSettings (WaterPlanarReflectionSettings &settings) const |
| Copy reflection values into the real planar-reflection planner settings. | |
| Result< void > | applyToUnderwaterSettings (WaterUnderwaterSettings &settings) const |
| Copy fog values into the real underwater-effects settings. | |
| bool | getReflectionEnabled () const noexcept |
| float | getReflectionDistance () const noexcept |
| Returns the reflection distance. | |
| int | getReflectionResolution () const noexcept |
| Returns the reflection resolution. | |
| float | getReflectionLodBias () const noexcept |
| Returns the reflection lod bias. | |
| float | getFogDensity () const noexcept |
| Returns the fog density. | |
| float | getFogDistance () const noexcept |
| Returns the fog distance. | |
| float | getFogRed () const noexcept |
| Returns the fog red. | |
| float | getFogGreen () const noexcept |
| Returns the fog green. | |
| float | getFogBlue () const noexcept |
| Returns the fog blue. | |
Public 成员函数 继承自 eve::IPhotoModeFieldSink | |
| virtual | ~IPhotoModeFieldSink ()=default |
| Releases IPhotoModeFieldSink resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IPhotoModeFieldSink | |
| static constexpr const char * | capabilityName ="eve.photo-mode.field" |
详细描述
Explicit, caller-owned authority for Pcg photo-mode water reflection and underwater fog values.
在文件 PcgWaterPhotoMode.h 第 8 行定义.
构造及析构函数说明
◆ PcgWaterPhotoModeAuthority()
|
default |
Pcg water photo mode authority.
◆ ~PcgWaterPhotoModeAuthority()
|
override |
Pcg water photo mode authority.
在文件 PcgWaterPhotoMode.cpp 第 8 行定义.
成员函数说明
◆ acceptsPhotoModeField()
|
overridevirtualnoexcept |
Return whether this provider owns the assignment.
在文件 PcgWaterPhotoMode.cpp 第 10 行定义.
引用了 a, eve::Accepted, eve::Rejected , 以及 eve::Water.
◆ applyPhotoModeField()
|
overridevirtual |
Apply one Water-domain assignment atomically.
在文件 PcgWaterPhotoMode.cpp 第 11 行定义.
引用了 a, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success(), v , 以及 eve::Water.
◆ applyToPlanarSettings()
| Result< void > eve::graphics::PcgWaterPhotoModeAuthority::applyToPlanarSettings | ( | WaterPlanarReflectionSettings & | settings | ) | const |
Copy reflection values into the real planar-reflection planner settings.
在文件 PcgWaterPhotoMode.cpp 第 23 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, s , 以及 eve::Result< T >::success().
◆ applyToUnderwaterSettings()
| Result< void > eve::graphics::PcgWaterPhotoModeAuthority::applyToUnderwaterSettings | ( | WaterUnderwaterSettings & | settings | ) | const |
Copy fog values into the real underwater-effects settings.
在文件 PcgWaterPhotoMode.cpp 第 29 行定义.
引用了 eve::PhotoModeColor::b, eve::PhotoModeColor::g, eve::PhotoModeColor::r, s , 以及 eve::Result< T >::success().
◆ getAuthority()
|
inlinenoexcept |
Return whether the authority lease is active.
在文件 PcgWaterPhotoMode.h 第 16 行定义.
◆ getFogBlue()
|
inlinenoexcept |
Returns the fog blue.
在文件 PcgWaterPhotoMode.h 第 41 行定义.
◆ getFogDensity()
|
inlinenoexcept |
Returns the fog density.
在文件 PcgWaterPhotoMode.h 第 33 行定义.
◆ getFogDistance()
|
inlinenoexcept |
Returns the fog distance.
在文件 PcgWaterPhotoMode.h 第 35 行定义.
◆ getFogGreen()
|
inlinenoexcept |
Returns the fog green.
在文件 PcgWaterPhotoMode.h 第 39 行定义.
◆ getFogRed()
|
inlinenoexcept |
Returns the fog red.
在文件 PcgWaterPhotoMode.h 第 37 行定义.
◆ getReflectionDistance()
|
inlinenoexcept |
Returns the reflection distance.
在文件 PcgWaterPhotoMode.h 第 27 行定义.
◆ getReflectionEnabled()
|
inlinenoexcept |
在文件 PcgWaterPhotoMode.h 第 25 行定义.
◆ getReflectionLodBias()
|
inlinenoexcept |
Returns the reflection lod bias.
在文件 PcgWaterPhotoMode.h 第 31 行定义.
◆ getReflectionResolution()
|
inlinenoexcept |
Returns the reflection resolution.
在文件 PcgWaterPhotoMode.h 第 29 行定义.
◆ setAuthority()
| void eve::graphics::PcgWaterPhotoModeAuthority::setAuthority | ( | bool | enabled | ) |
Register or revoke this object as the unique water-field provider.
在文件 PcgWaterPhotoMode.cpp 第 9 行定义.
引用了 enabled.
该类的文档由以下文件生成:
- src/modules/graphics/PcgWaterPhotoMode.h
- src/modules/graphics/PcgWaterPhotoMode.cpp
Public 成员函数 继承自