载入中...
搜索中...
未找到
eve::graphics::PcgWaterPhotoModeAuthority类 参考final

Explicit, caller-owned authority for Pcg photo-mode water reflection and underwater fog values. 更多...

#include <PcgWaterPhotoMode.h>

类 eve::graphics::PcgWaterPhotoModeAuthority 继承关系图:
eve::IPhotoModeFieldSink

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()

eve::graphics::PcgWaterPhotoModeAuthority::PcgWaterPhotoModeAuthority ( )
default

Pcg water photo mode authority.

◆ ~PcgWaterPhotoModeAuthority()

eve::graphics::PcgWaterPhotoModeAuthority::~PcgWaterPhotoModeAuthority ( )
override

Pcg water photo mode authority.

在文件 PcgWaterPhotoMode.cpp 第 8 行定义.

成员函数说明

◆ acceptsPhotoModeField()

PhotoModeFieldAcceptance eve::graphics::PcgWaterPhotoModeAuthority::acceptsPhotoModeField ( const PhotoModeAssignment &  assignment) const
overridevirtualnoexcept

Return whether this provider owns the assignment.

实现了 eve::IPhotoModeFieldSink.

在文件 PcgWaterPhotoMode.cpp 第 10 行定义.

引用了 a, eve::Accepted, eve::Rejected , 以及 eve::Water.

◆ applyPhotoModeField()

Result< void > eve::graphics::PcgWaterPhotoModeAuthority::applyPhotoModeField ( const PhotoModeAssignment &  assignment)
overridevirtual

Apply one Water-domain assignment atomically.

实现了 eve::IPhotoModeFieldSink.

在文件 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()

bool eve::graphics::PcgWaterPhotoModeAuthority::getAuthority ( ) const
inlinenoexcept

Return whether the authority lease is active.

在文件 PcgWaterPhotoMode.h 第 16 行定义.

◆ getFogBlue()

float eve::graphics::PcgWaterPhotoModeAuthority::getFogBlue ( ) const
inlinenoexcept

Returns the fog blue.

在文件 PcgWaterPhotoMode.h 第 41 行定义.

◆ getFogDensity()

float eve::graphics::PcgWaterPhotoModeAuthority::getFogDensity ( ) const
inlinenoexcept

Returns the fog density.

在文件 PcgWaterPhotoMode.h 第 33 行定义.

◆ getFogDistance()

float eve::graphics::PcgWaterPhotoModeAuthority::getFogDistance ( ) const
inlinenoexcept

Returns the fog distance.

在文件 PcgWaterPhotoMode.h 第 35 行定义.

◆ getFogGreen()

float eve::graphics::PcgWaterPhotoModeAuthority::getFogGreen ( ) const
inlinenoexcept

Returns the fog green.

在文件 PcgWaterPhotoMode.h 第 39 行定义.

◆ getFogRed()

float eve::graphics::PcgWaterPhotoModeAuthority::getFogRed ( ) const
inlinenoexcept

Returns the fog red.

在文件 PcgWaterPhotoMode.h 第 37 行定义.

◆ getReflectionDistance()

float eve::graphics::PcgWaterPhotoModeAuthority::getReflectionDistance ( ) const
inlinenoexcept

Returns the reflection distance.

在文件 PcgWaterPhotoMode.h 第 27 行定义.

◆ getReflectionEnabled()

bool eve::graphics::PcgWaterPhotoModeAuthority::getReflectionEnabled ( ) const
inlinenoexcept

在文件 PcgWaterPhotoMode.h 第 25 行定义.

◆ getReflectionLodBias()

float eve::graphics::PcgWaterPhotoModeAuthority::getReflectionLodBias ( ) const
inlinenoexcept

Returns the reflection lod bias.

在文件 PcgWaterPhotoMode.h 第 31 行定义.

◆ getReflectionResolution()

int eve::graphics::PcgWaterPhotoModeAuthority::getReflectionResolution ( ) const
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.


该类的文档由以下文件生成: