Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MaskLoadDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
12 /* This is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public
14  * License as published by the Free Software Foundation; either
15  * version 2 of the License, or (at your option) any later version.
16  *
17  * This software is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public
23  * License along with this software. If not, see
24  * <http://www.gnu.org/licenses/>.
25  *
26  */
27 
28 #ifndef _MASKLOADDIALOG_H
29 #define _MASKLOADDIALOG_H
30 
31 #include "panoinc_WX.h"
32 #include "panoinc.h"
33 #include <panodata/Panorama.h>
34 #include <base_wx/wxImageCache.h>
35 #include <hugin/MaskImageCtrl.h>
36 
38 class MaskLoadDialog : public wxDialog
39 {
40 public:
42  MaskLoadDialog(wxWindow *parent);
43  virtual ~MaskLoadDialog();
45  void initValues(const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize);
48  void OnSize(wxSizeEvent &e);
49  void ProcessMask(wxCommandEvent &e);
50  void UpdatePreviewImage();
51 
52 private:
54 
55  wxRadioBox *m_maskScaleMode;
56  wxRadioBox *m_maskRotateMode;
57  vigra::Size2D m_imageSize;
58  vigra::Size2D m_maskSize;
59 
62 
63  DECLARE_EVENT_TABLE()
64 };
65 
66 #endif //_MASKLOADDIALOG_H
wxRadioBox * m_maskScaleMode
HuginBase::MaskPolygonVector getProcessedMask() const
return the processed mask
include file for the hugin project
MaskLoadDialog(wxWindow *parent)
Constructor, read from xrc ressource.
void OnSize(wxSizeEvent &e)
mask editor
Definition: MaskImageCtrl.h:38
HuginBase::MaskPolygonVector m_processedMask
wxRadioBox * m_maskRotateMode
MaskImageCtrl * m_image
vigra::Size2D m_maskSize
std::vector< MaskPolygon > MaskPolygonVector
Definition: Mask.h:147
virtual ~MaskLoadDialog()
Dialog for loading masks.
include file for the hugin project
void ProcessMask(wxCommandEvent &e)
vigra::Size2D m_imageSize
All variables of a source image.
Definition: SrcPanoImage.h:194
void initValues(const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize)
sets the default values
HuginBase::MaskPolygonVector m_loadedMask