Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PreviewColorPickerTool.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
9 /* This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This software is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public
20  * License along with this software. If not, see
21  * <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef _PREVIEWCOLORPICKERTOOL_H
26 #define _PREVIEWCOLORPICKERTOOL_H
27 
28 #include "Tool.h"
29 #include "base_wx/wxutils.h"
30 
37 {
38 public:
40  explicit PreviewColorPickerTool(ToolHelper *helper):Tool(helper), m_red(0.0), m_blue(0.0), m_count(0) {};
41  void Activate();
43  void MouseButtonEvent(wxMouseEvent &e);
44 private:
45  double m_red;
46  double m_blue;
47  unsigned int m_count;
49  void CalcCorrectionForImage(unsigned int i,vigra::Point2D pos);
50 };
51 
52 #endif
53 
void CalcCorrectionForImage(unsigned int i, vigra::Point2D pos)
void Activate()
Switch on a tool.
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition: Tool.h:102
Definition: Tool.h:42
void MouseButtonEvent(wxMouseEvent &e)
process mouse button events
PreviewColorPickerTool(ToolHelper *helper)
constructor
The PreviewColorPickerTool allows to select a region in the panorama which should be grey...
void CalcCorrection(hugin_utils::FDiff2D pos)