"Fossies" - the Fresh Open Source Software Archive

Member "rawtherapee-5.7/rtgui/sharpenedge.h" (10 Sep 2019, 1956 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 "sharpenedge.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 /*
    2  *  This file is part of RawTherapee.
    3  *
    4  *  Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
    5  *
    6  *  RawTherapee is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 3 of the License, or
    9  *  (at your option) any later version.
   10  *
   11  *  RawTherapee is distributed in the hope that it will be useful,
   12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  *  GNU General Public License for more details.
   15  *
   16  *  You should have received a copy of the GNU General Public License
   17  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
   18  *
   19  *
   20  *  Manuel Llorens' algorithm of edge sharpening
   21  *
   22  *
   23  */
   24 #ifndef _SHARPENEDGE_H_
   25 #define _SHARPENEDGE_H_
   26 
   27 #include <gtkmm.h>
   28 #include "adjuster.h"
   29 #include "toolpanel.h"
   30 
   31 class SharpenEdge : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
   32 {
   33 
   34 protected:
   35 
   36     Adjuster* passes;
   37     Adjuster* amount;
   38     Gtk::CheckButton* threechannels;
   39 
   40     sigc::connection chanthreeconn;
   41     bool lastchanthree;
   42 
   43 public:
   44 
   45     SharpenEdge              ();
   46 
   47     void read                (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;
   48     void write               (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr) override;
   49     void setDefaults         (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) override;
   50     void setBatchMode        (bool batchMode) override;
   51     void trimValues          (rtengine::procparams::ProcParams* pp) override;
   52     void setAdjusterBehavior (bool amountadd, bool passadd);
   53     void adjusterChanged     (Adjuster* a, double newval) override;
   54 
   55     void enabledChanged      () override;
   56     void chanthree_toggled   ();
   57 
   58 };
   59 
   60 #endif