Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin1
hugin
PreviewGuideTool.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
2
11
/* This program is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
15
*
16
* This software is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public
22
* License along with this software. If not, see
23
* <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef _PREVIEWGUIDETOOL_H
28
#define _PREVIEWGUIDETOOL_H
29
30
#include "
Tool.h
"
31
34
class
PreviewGuideTool
:
public
PreviewTool
35
{
36
public
:
37
enum
Guides
38
{
39
NONE
=0,
40
THIRDS
=1,
41
GOLDENRATIO
=2,
42
DIAGONAL
=3,
43
DIAGONAL_METHOD
=4,
44
TRIANGLE_DOWN
=5,
45
TRIANGLE_UP
=6
46
};
48
explicit
PreviewGuideTool
(
PreviewToolHelper
*
helper
);
50
void
Activate
();
52
void
ReallyAfterDrawImagesEvent
();
54
void
SetGuideStyle
(
const
Guides
newGuideStyle
);
56
const
Guides
GetGuideStyle
()
const
;
57
private
:
58
Guides
m_guide
;
59
};
60
61
#endif
Tool.h
PreviewGuideTool
Draws guide lines over the panorama in fast preview window.
Definition
PreviewGuideTool.h:35
PreviewGuideTool::GetGuideStyle
const Guides GetGuideStyle() const
returns the current guide style
Definition
PreviewGuideTool.cpp:206
PreviewGuideTool::ReallyAfterDrawImagesEvent
void ReallyAfterDrawImagesEvent()
draws the lines
Definition
PreviewGuideTool.cpp:164
PreviewGuideTool::m_guide
Guides m_guide
Definition
PreviewGuideTool.h:58
PreviewGuideTool::Activate
void Activate()
activate the tool
Definition
PreviewGuideTool.cpp:41
PreviewGuideTool::Guides
Guides
Definition
PreviewGuideTool.h:38
PreviewGuideTool::NONE
@ NONE
Definition
PreviewGuideTool.h:39
PreviewGuideTool::GOLDENRATIO
@ GOLDENRATIO
Definition
PreviewGuideTool.h:41
PreviewGuideTool::DIAGONAL_METHOD
@ DIAGONAL_METHOD
Definition
PreviewGuideTool.h:43
PreviewGuideTool::DIAGONAL
@ DIAGONAL
Definition
PreviewGuideTool.h:42
PreviewGuideTool::TRIANGLE_UP
@ TRIANGLE_UP
Definition
PreviewGuideTool.h:45
PreviewGuideTool::TRIANGLE_DOWN
@ TRIANGLE_DOWN
Definition
PreviewGuideTool.h:44
PreviewGuideTool::THIRDS
@ THIRDS
Definition
PreviewGuideTool.h:40
PreviewGuideTool::SetGuideStyle
void SetGuideStyle(const Guides newGuideStyle)
sets the guide style to the given style
Definition
PreviewGuideTool.cpp:200
PreviewToolHelper
Definition
ToolHelper.h:184
PreviewTool
Definition
Tool.h:114
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition
Tool.h:109
threshold
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition
threshold.h:41
Generated on Sun Sep 13 2026 02:49:54 for Hugin trunk by
1.9.8