78 const auto interval =
Get();
79 archive.
SetDouble(
"Min", interval.GetMinimum());
80 archive.
SetDouble(
"Max", interval.GetMaximum());
145 : m_controller{ std::move(controller) }
168 m_controller->SetExposureLimit({ value.GetMinimum(), value.GetMaximum() });
188 const auto result = m_controller->GetExposureLimit();
189 return { result.min, result.max };
200 std::shared_ptr<peak::afl::Controller> m_controller;
239 : m_controller{ std::move(controller) }
251 m_controller->SetGainLimit({ value.GetMinimum(), value.GetMaximum() });
263 const auto result = m_controller->GetGainLimit();
264 return { result.min, result.max };
268 std::shared_ptr<peak::afl::Controller> m_controller;
307 : m_controller{ std::move(controller) }
324 m_controller->SetGainAnalogLimit({ value.GetMinimum(), value.GetMaximum() });
341 const auto result = m_controller->GetGainAnalogLimit();
342 return { result.min, result.max };
346 std::shared_ptr<peak::afl::Controller> m_controller;
385 : m_controller{ std::move(controller) }
402 m_controller->SetGainDigitalLimit({ value.GetMinimum(), value.GetMaximum() });
419 const auto result = m_controller->GetGainDigitalLimit();
420 return { result.min, result.max };
424 std::shared_ptr<peak::afl::Controller> m_controller;
464 : m_controller{ std::move(controller) }
481 m_controller->SetGainCombinedLimit({ value.GetMinimum(), value.GetMaximum() });
498 const auto result = m_controller->GetGainCombinedLimit();
499 return { result.min, result.max };
503 std::shared_ptr<peak::afl::Controller> m_controller;
546 : m_controller{ std::move(controller) }
563 m_controller->SetGainHostLimit({ value.GetMinimum(), value.GetMaximum() });
580 const auto result = m_controller->GetGainHostLimit();
581 return { result.min, result.max };
585 std::shared_ptr<peak::afl::Controller> m_controller;
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
virtual PEAK_COMMON_NO_DISCARD 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.
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current exposure time limits.
Definition peak_afl_brightness_limit.hpp:186
BrightnessExposureLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a BrightnessExposureLimit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:144
void Set(const IntervalD &value) override
Sets the exposure time limits.
Definition peak_afl_brightness_limit.hpp:166
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current analog gain limits.
Definition peak_afl_brightness_limit.hpp:339
void Set(const IntervalD &value) override
Sets the analog gain limits.
Definition peak_afl_brightness_limit.hpp:322
BrightnessGainAnalogLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs an analog gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:306
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current combined gain limits.
Definition peak_afl_brightness_limit.hpp:496
BrightnessGainCombinedLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a combined gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:463
void Set(const IntervalD &value) override
Sets the combined gain limits.
Definition peak_afl_brightness_limit.hpp:479
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current digital gain limits.
Definition peak_afl_brightness_limit.hpp:417
BrightnessGainDigitalLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a digital gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:384
void Set(const IntervalD &value) override
Sets the digital gain limits.
Definition peak_afl_brightness_limit.hpp:400
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current host gain limits.
Definition peak_afl_brightness_limit.hpp:578
void Set(const IntervalD &value) override
Sets the host gain limits.
Definition peak_afl_brightness_limit.hpp:561
BrightnessGainHostLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a host gain limit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:545
PEAK_COMMON_NO_DISCARD IntervalD Get() const override
Gets the current overall gain limits.
Definition peak_afl_brightness_limit.hpp:261
BrightnessGainLimit(std::shared_ptr< peak::afl::Controller > controller)
Constructs a BrightnessGainLimit feature with the specified controller.
Definition peak_afl_brightness_limit.hpp:238
void Set(const IntervalD &value) override
Sets the overall gain limits.
Definition peak_afl_brightness_limit.hpp:249
Base class for brightness limit features.
Definition peak_afl_brightness_limit.hpp:60
void Serialize(peak::common::serialization::IArchive &archive) const override
Serializes the current brightness limit to an archive.
Definition peak_afl_brightness_limit.hpp:76
void Deserialize(const peak::common::serialization::IArchive &archive) override
Deserializes the brightness limit from an archive.
Definition peak_afl_brightness_limit.hpp:98
Base interface for auto feature implementations.
Definition peak_afl_ifeature.hpp:61
virtual PEAK_COMMON_NO_DISCARD 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.hpp:91
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:29