Hugin trunk 0.1
Loading...
Searching...
No Matches
PreviewEditCPTool.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
10/*
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 _PREVIEWEDITCPTOOL_H
28#define _PREVIEWEDITCPTOOL_H
29
30#include "Tool.h"
31#include "base_wx/wxutils.h"
32
34
36enum{
39};
40
85
86#endif
87
@ ID_CREATE_CP
@ ID_REMOVE_CP
Tool to delete all cp in a selected rectangle.
void ReallyAfterDrawImagesEvent() override
draw selection rectangle
void Activate() override
activate the tool
HuginBase::UIntSet GetFoundCPs()
return set of found control points
void MouseButtonEvent(wxMouseEvent &e) override
mouse button handling
void Deactivate() override
deactivate the tool, reset the cursor
void MouseMoveEvent(double x, double y, wxMouseEvent &e) override
mouse move handling
vigra::Rect2D GetSelectedROI()
returns selected ROI
void SetMenuProcessed()
reset popup menu status
void AddLineCP(const hugin_utils::FDiff2D &pos1, const hugin_utils::FDiff2D &pos2)
called to add line control point
bool m_menuPopup
true, when popup menu is shown, this is to ignore a mouse event when the popup menu is closed
hugin_utils::FDiff2D m_currentPos
current position of selection
PreviewEditCPTool(PreviewToolHelper *helper)
bool m_line
if selecting a rectangle or a line
bool m_mouseDown
mouse down status
void FindCPInRect(const hugin_utils::FDiff2D &pos1, const hugin_utils::FDiff2D &pos2)
search for control points in selected rectangle
HuginBase::UIntSet m_CPinROI
contains the found cp
hugin_utils::FDiff2D m_startPosScreen
position where the marking starts in screen coordinates
hugin_utils::FDiff2D m_currentPosScreen
current position of selection in screen coordinates
hugin_utils::FDiff2D m_startPos
position where the marking starts
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition Tool.h:109
std::set< unsigned int > UIntSet
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