"Fossies" - the Fresh Open Source Software Archive

Member "rawtherapee-5.7/rtgui/localcontrast.h" (10 Sep 2019, 1914 Bytes) of package /linux/misc/rawtherapee-5.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "localcontrast.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.6_vs_5.7.

    1 /** -*- C++ -*-
    2  *  
    3  *  This file is part of RawTherapee.
    4  *
    5  *  Copyright (c) 2017 Alberto Griggio <alberto.griggio@gmail.com>
    6  *
    7  *  RawTherapee is free software: you can redistribute it and/or modify
    8  *  it under the terms of the GNU General Public License as published by
    9  *  the Free Software Foundation, either version 3 of the License, or
   10  *  (at your option) any later version.
   11  *
   12  *  RawTherapee is distributed in the hope that it will be useful,
   13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15  *  GNU General Public License for more details.
   16  *
   17  *  You should have received a copy of the GNU General Public License
   18  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
   19  */
   20 #pragma once
   21 
   22 #include <gtkmm.h>
   23 #include "adjuster.h"
   24 #include "toolpanel.h"
   25 
   26 class LocalContrast: public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
   27 {
   28 private:
   29     Adjuster *radius;
   30     Adjuster *amount;
   31     Adjuster *darkness;
   32     Adjuster *lightness;
   33 
   34     rtengine::ProcEvent EvLocalContrastEnabled;
   35     rtengine::ProcEvent EvLocalContrastRadius;
   36     rtengine::ProcEvent EvLocalContrastAmount;
   37     rtengine::ProcEvent EvLocalContrastDarkness;
   38     rtengine::ProcEvent EvLocalContrastLightness;
   39     
   40 public:
   41 
   42     LocalContrast();
   43 
   44     void read(const rtengine::procparams::ProcParams *pp, const ParamsEdited *pedited=nullptr) override;
   45     void write(rtengine::procparams::ProcParams *pp, ParamsEdited *pedited=nullptr) override;
   46     void setDefaults(const rtengine::procparams::ProcParams *defParams, const ParamsEdited *pedited=nullptr) override;
   47     void setBatchMode(bool batchMode) override;
   48 
   49     void adjusterChanged(Adjuster *a, double newval) override;
   50     void enabledChanged() override;
   51     void setAdjusterBehavior(bool radiusAdd, bool amountAdd, bool darknessAdd, bool lightnessAdd);
   52 };
   53