15namespace Models::Operations {
30 [[nodiscard]] QString
name()
const override {
return "Contrast"; }
35 void reset()
override;
Generic Qt base class for single-value adjustment operations (e.g., Brightness, Contrast,...
Generic base class for operations with a single adjustable value (e.g., brightness,...
Contrast operation model inheriting common properties from BaseAdjustmentModel.
float minimum() const override
Gets the minimum allowed value for the UI slider.
void onOperationCompleted() override
Pure virtual slot to handle successful operation completion. Implementations in derived classes shoul...
float maximum() const override
Gets the maximum allowed value for the UI slider.
void onOperationFailed(const QString &error) override
Pure virtual slot to handle operation failure. Implementations in derived classes should react to a f...
QString name() const override
Get operation name.
ContrastModel(QObject *parent=nullptr)
Core::Operations::OperationDescriptor getDescriptor() const override
Creates and returns an OperationDescriptor representing the current state of this model....
void reset() override
Reset to default state.
Core::Operations::OperationType getType() const override
Gets the type of this operation.
OperationType
Identifies the type of an image processing operation.
@ Contrast
Contrast adjustment (Multiplicative around a midpoint). Expands or compresses the dynamic range aroun...
Declaration of the OperationRanges struct.
A universal container for operation settings with unique identifier.
static consteval float getContrastMinValue()
Gets the minimum allowed value for the Contrast operation.
static consteval float getContrastMaxValue()
Gets the maximum allowed value for the Contrast operation.