Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin1
hugin
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
36
class
PreviewColorPickerTool
:
public
PreviewTool
37
{
38
public
:
40
explicit
PreviewColorPickerTool
(
PreviewToolHelper
*
helper
):
PreviewTool
(helper),
m_red
(0.0),
m_blue
(0.0),
m_count
(0) {};
41
void
Activate
()
override
;
42
void
Deactivate
()
override
;
44
void
MouseButtonEvent
(wxMouseEvent &e)
override
;
45
private
:
46
double
m_red
;
47
double
m_blue
;
48
unsigned
int
m_count
;
49
void
CalcCorrection
(
hugin_utils::FDiff2D
pos);
50
void
CalcCorrectionForImage
(
unsigned
int
i,vigra::Point2D pos);
51
};
52
53
#endif
54
PreviewColorPickerTool::Deactivate
void Deactivate() override
Switch off a tool.
Definition:
PreviewColorPickerTool.cpp:50
Tool.h
PreviewColorPickerTool::CalcCorrectionForImage
void CalcCorrectionForImage(unsigned int i, vigra::Point2D pos)
Definition:
PreviewColorPickerTool.cpp:110
wxutils.h
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition:
Tool.h:104
PreviewColorPickerTool::m_red
double m_red
Definition:
PreviewColorPickerTool.h:46
hugin_utils::TDiff2D
Definition:
hugin_math.h:82
PreviewColorPickerTool::m_count
unsigned int m_count
Definition:
PreviewColorPickerTool.h:48
PreviewColorPickerTool::PreviewColorPickerTool
PreviewColorPickerTool(PreviewToolHelper *helper)
constructor
Definition:
PreviewColorPickerTool.h:40
PreviewColorPickerTool::Activate
void Activate() override
Switch on a tool.
Definition:
PreviewColorPickerTool.cpp:43
PreviewTool
Definition:
Tool.h:113
PreviewToolHelper
Definition:
ToolHelper.h:183
PreviewColorPickerTool::m_blue
double m_blue
Definition:
PreviewColorPickerTool.h:47
PreviewColorPickerTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e) override
process mouse button events
Definition:
PreviewColorPickerTool.cpp:56
PreviewColorPickerTool
The PreviewColorPickerTool allows to select a region in the panorama which should be grey...
Definition:
PreviewColorPickerTool.h:36
PreviewColorPickerTool::CalcCorrection
void CalcCorrection(hugin_utils::FDiff2D pos)
Definition:
PreviewColorPickerTool.cpp:72
Generated on Sun Aug 23 2026 01:25:37 for Hugintrunk by
1.8.5