77 const auto interval =
Get();
78 archive.
SetDouble(
"Min", interval.GetMinimum());
79 archive.
SetDouble(
"Max", interval.GetMaximum());
144 : m_controller{ std::move(controller) }
167 m_controller->SetExposureLimit({ value.GetMinimum(), value.GetMaximum() });
187 const auto result = m_controller->GetExposureLimit();
188 return { result.min, result.max };
199 std::shared_ptr<peak::afl::Controller> m_controller;
238 : m_controller{ std::move(controller) }
250 m_controller->SetGainLimit({ value.GetMinimum(), value.GetMaximum() });
262 const auto result = m_controller->GetGainLimit();
263 return { result.min, result.max };
267 std::shared_ptr<peak::afl::Controller> m_controller;
306 : m_controller{ std::move(controller) }
323 m_controller->SetGainAnalogLimit({ value.GetMinimum(), value.GetMaximum() });
340 const auto result = m_controller->GetGainAnalogLimit();
341 return { result.min, result.max };
345 std::shared_ptr<peak::afl::Controller> m_controller;
384 : m_controller{ std::move(controller) }
401 m_controller->SetGainDigitalLimit({ value.GetMinimum(), value.GetMaximum() });
418 const auto result = m_controller->GetGainDigitalLimit();
419 return { result.min, result.max };
423 std::shared_ptr<peak::afl::Controller> m_controller;
463 : m_controller{ std::move(controller) }
480 m_controller->SetGainCombinedLimit({ value.GetMinimum(), value.GetMaximum() });
497 const auto result = m_controller->GetGainCombinedLimit();
498 return { result.min, result.max };
502 std::shared_ptr<peak::afl::Controller> m_controller;
545 : m_controller{ std::move(controller) }
562 m_controller->SetGainHostLimit({ value.GetMinimum(), value.GetMaximum() });
579 const auto result = m_controller->GetGainHostLimit();
580 return { result.min, result.max };
584 std::shared_ptr<peak::afl::Controller> m_controller;
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
virtual double GetDouble(const std::string &key) const =0
Retrieves a double-precision number by key.
virtual void SetDouble(const std::string &key, double value)=0
Stores a double-precision floating point number.
BrightnessExposureLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a BrightnessExposureLimit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:143
void Set(const IntervalD &value) override
Sets the exposure time limits.
Definition peak_afl_brightness_limit.hpp:165
IntervalD Get() const override
Gets the current exposure time limits.
Definition peak_afl_brightness_limit.hpp:185
void Set(const IntervalD &value) override
Sets the analog gain limits.
Definition peak_afl_brightness_limit.hpp:321
BrightnessGainAnalogLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs an analog gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:305
IntervalD Get() const override
Gets the current analog gain limits.
Definition peak_afl_brightness_limit.hpp:338
BrightnessGainCombinedLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a combined gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:462
void Set(const IntervalD &value) override
Sets the combined gain limits.
Definition peak_afl_brightness_limit.hpp:478
IntervalD Get() const override
Gets the current combined gain limits.
Definition peak_afl_brightness_limit.hpp:495
BrightnessGainDigitalLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a digital gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:383
void Set(const IntervalD &value) override
Sets the digital gain limits.
Definition peak_afl_brightness_limit.hpp:399
IntervalD Get() const override
Gets the current digital gain limits.
Definition peak_afl_brightness_limit.hpp:416
void Set(const IntervalD &value) override
Sets the host gain limits.
Definition peak_afl_brightness_limit.hpp:560
IntervalD Get() const override
Gets the current host gain limits.
Definition peak_afl_brightness_limit.hpp:577
BrightnessGainHostLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a host gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:544
BrightnessGainLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a BrightnessGainLimit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:237
void Set(const IntervalD &value) override
Sets the overall gain limits.
Definition peak_afl_brightness_limit.hpp:248
IntervalD Get() const override
Gets the current overall gain limits.
Definition peak_afl_brightness_limit.hpp:260
Base class for brightness limit features.
Definition peak_afl_brightness_limit.hpp:59
void Serialize(peak::common::serialization::IArchive &archive) const override
Serializes the current brightness limit to an archive.
Definition peak_afl_brightness_limit.hpp:75
void Deserialize(const peak::common::serialization::IArchive &archive) override
Deserializes the brightness limit from an archive.
Definition peak_afl_brightness_limit.hpp:97
Base interface for auto feature implementations.
Definition peak_afl_ifeature.hpp:59
virtual IntervalD Get() const=0
virtual void Set(const IntervalD &value)=0
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.
Definition peak_common_defines.h:86
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:39
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:37
peak::common::detail::IntervalT< double > IntervalD
Type alias for double-precision interval values.
Definition peak_afl_ifeature.hpp:28