MaskLoadDialog.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00012 /*  This is free software; you can redistribute it and/or
00013  *  modify it under the terms of the GNU General Public
00014  *  License as published by the Free Software Foundation; either
00015  *  version 2 of the License, or (at your option) any later version.
00016  *
00017  *  This software is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  *  Lesser General Public License for more details.
00021  *
00022  *  You should have received a copy of the GNU General Public
00023  *  License along with this software; if not, write to the Free Software
00024  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 #ifndef _MASKLOADDIALOG_H
00029 #define _MASKLOADDIALOG_H
00030 
00031 #include "panoinc_WX.h"
00032 #include "panoinc.h"
00033 #include <PT/Panorama.h>
00034 #include <base_wx/wxImageCache.h>
00035 #include <hugin/MaskImageCtrl.h>
00036 
00038 class MaskLoadDialog : public wxDialog
00039 {
00040 public:
00042     MaskLoadDialog(wxWindow *parent);
00043     virtual ~MaskLoadDialog();
00045     void initValues(const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize);
00047     HuginBase::MaskPolygonVector getProcessedMask() const { return m_processedMask; };
00048     void OnSize(wxSizeEvent &e);
00049     void ProcessMask(wxCommandEvent &e);
00050     void UpdatePreviewImage();
00051 
00052 private:
00053     MaskImageCtrl *m_image;
00054 
00055     wxRadioBox *m_maskScaleMode;
00056     wxRadioBox *m_maskRotateMode;
00057     vigra::Size2D m_imageSize;
00058     vigra::Size2D m_maskSize;
00059 
00060     HuginBase::MaskPolygonVector m_loadedMask;
00061     HuginBase::MaskPolygonVector m_processedMask;
00062 
00063     DECLARE_EVENT_TABLE()
00064 };
00065 
00066 #endif //_MASKLOADDIALOG_H

Generated on Wed Aug 20 01:25:32 2014 for Hugintrunk by  doxygen 1.3.9.1