Explicit Lighting-field owner for Pcg's six manual-sun controls. @lifetime The borrowed DayNight target must outlive this authority or be detached first. @thread Game thread only; assignments are synchronous and invoke no callbacks or scripts. 更多...
#include <PcgLightingSunPhotoMode.h>
Public 成员函数 | |
| ~PcgLightingSunPhotoMode () override | |
| Pcg lighting sun photo mode. | |
| void | setTarget (DayNight *target) noexcept |
| Attach a borrowed DayNight target and seed local state from it. | |
| void | setAuthority (bool enabled) |
| Register or revoke this instance as owner of the six manual-sun fields. | |
| PhotoModeFieldAcceptance | acceptsPhotoModeField (const PhotoModeAssignment &assignment) const noexcept override |
| Return Accepted only for the six Pcg manual-sun Lighting fields. | |
| Result< void > | applyPhotoModeField (const PhotoModeAssignment &assignment) override |
| Validate and atomically project one field through DayNight's joint sun state. | |
Public 成员函数 继承自 eve::IPhotoModeFieldSink | |
| virtual | ~IPhotoModeFieldSink ()=default |
| Releases IPhotoModeFieldSink resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IPhotoModeFieldSink | |
| static constexpr const char * | capabilityName ="eve.photo-mode.field" |
详细描述
Explicit Lighting-field owner for Pcg's six manual-sun controls. @lifetime The borrowed DayNight target must outlive this authority or be detached first. @thread Game thread only; assignments are synchronous and invoke no callbacks or scripts.
在文件 PcgLightingSunPhotoMode.h 第 15 行定义.
构造及析构函数说明
◆ ~PcgLightingSunPhotoMode()
|
override |
Pcg lighting sun photo mode.
在文件 PcgLightingSunPhotoMode.cpp 第 9 行定义.
成员函数说明
◆ acceptsPhotoModeField()
|
overridevirtualnoexcept |
Return Accepted only for the six Pcg manual-sun Lighting fields.
在文件 PcgLightingSunPhotoMode.cpp 第 25 行定义.
引用了 eve::Accepted, eve::Lighting , 以及 eve::Rejected.
◆ applyPhotoModeField()
|
overridevirtual |
Validate and atomically project one field through DayNight's joint sun state.
在文件 PcgLightingSunPhotoMode.cpp 第 38 行定义.
引用了 eve::daynight::PcgManualSunState::blue, code, eve::daynight::PcgManualSunState::enabled, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PhotoModeAssignment::field, eve::daynight::PcgManualSunState::green, eve::daynight::PcgManualSunState::intensity, eve::InvalidArgument, eve::daynight::PcgManualSunState::kelvin, message, eve::daynight::PcgManualSunState::pitchDegrees, eve::daynight::PcgManualSunState::red, eve::daynight::PcgManualSunState::rotationDegrees, eve::daynight::DayNight::setPcgManualSun(), eve::Result< T >::success(), eve::Unsupported, eve::PhotoModeAssignment::value , 以及 value.
◆ setAuthority()
| void eve::daynight::PcgLightingSunPhotoMode::setAuthority | ( | bool | enabled | ) |
Register or revoke this instance as owner of the six manual-sun fields.
在文件 PcgLightingSunPhotoMode.cpp 第 18 行定义.
引用了 enabled.
◆ setTarget()
|
noexcept |
Attach a borrowed DayNight target and seed local state from it.
在文件 PcgLightingSunPhotoMode.cpp 第 13 行定义.
引用了 target.
该类的文档由以下文件生成:
- src/modules/daynight/PcgLightingSunPhotoMode.h
- src/modules/daynight/PcgLightingSunPhotoMode.cpp
Public 成员函数 继承自