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
Tool
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
;
48
void
CalcCorrection
(
hugin_utils::FDiff2D
pos);
49
void
CalcCorrectionForImage
(
unsigned
int
i,vigra::Point2D pos);
50
};
51
52
#endif
53
ToolHelper
Definition:
ToolHelper.h:76
Tool.h
PreviewColorPickerTool::CalcCorrectionForImage
void CalcCorrectionForImage(unsigned int i, vigra::Point2D pos)
Definition:
PreviewColorPickerTool.cpp:103
wxutils.h
PreviewColorPickerTool::Activate
void Activate()
Switch on a tool.
Definition:
PreviewColorPickerTool.cpp:42
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition:
Tool.h:102
PreviewColorPickerTool::m_red
double m_red
Definition:
PreviewColorPickerTool.h:45
hugin_utils::TDiff2D
Definition:
hugin_math.h:82
PreviewColorPickerTool::m_count
unsigned int m_count
Definition:
PreviewColorPickerTool.h:47
Tool
Definition:
Tool.h:42
PreviewColorPickerTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e)
process mouse button events
Definition:
PreviewColorPickerTool.cpp:49
PreviewColorPickerTool::PreviewColorPickerTool
PreviewColorPickerTool(ToolHelper *helper)
constructor
Definition:
PreviewColorPickerTool.h:40
PreviewColorPickerTool::m_blue
double m_blue
Definition:
PreviewColorPickerTool.h:46
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:65
Generated on Sun Nov 17 2024 01:25:36 for Hugintrunk by
1.8.5