Hugintrunk
0.1
|
Dialog for loading masks. More...
#include <MaskLoadDialog.h>
Public Member Functions | |
MaskLoadDialog (wxWindow *parent) | |
Constructor, read from xrc ressource. More... | |
virtual | ~MaskLoadDialog () |
void | initValues (const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize) |
sets the default values More... | |
HuginBase::MaskPolygonVector | getProcessedMask () const |
return the processed mask More... | |
void | OnSize (wxSizeEvent &e) |
void | ProcessMask (wxCommandEvent &e) |
void | UpdatePreviewImage () |
Private Attributes | |
MaskImageCtrl * | m_image |
wxRadioBox * | m_maskScaleMode |
wxRadioBox * | m_maskRotateMode |
vigra::Size2D | m_imageSize |
vigra::Size2D | m_maskSize |
HuginBase::MaskPolygonVector | m_loadedMask |
HuginBase::MaskPolygonVector | m_processedMask |
Dialog for loading masks.
Definition at line 38 of file MaskLoadDialog.h.
MaskLoadDialog::MaskLoadDialog | ( | wxWindow * | parent | ) |
Constructor, read from xrc ressource.
Definition at line 43 of file MaskLoadDialog.cpp.
References huginApp::Get(), HUGIN_MASK_COLOUR_POINT_SELECTED, HUGIN_MASK_COLOUR_POINT_UNSELECTED, HUGIN_MASK_COLOUR_POLYGON_NEGATIVE, HUGIN_MASK_COLOUR_POLYGON_POSITIVE, and RestoreFramePosition().
|
virtual |
Definition at line 80 of file MaskLoadDialog.cpp.
References StoreFramePosition().
|
inline |
return the processed mask
Definition at line 47 of file MaskLoadDialog.h.
References m_processedMask.
Referenced by MaskEditorPanel::OnMaskLoad(), and MaskEditorPanel::OnMaskPaste().
void MaskLoadDialog::initValues | ( | const HuginBase::SrcPanoImage | image, |
const HuginBase::MaskPolygonVector | newMask, | ||
const vigra::Size2D | maskSize | ||
) |
sets the default values
Definition at line 85 of file MaskLoadDialog.cpp.
References m_image, m_imageSize, m_loadedMask, m_maskRotateMode, m_maskSize, ProcessMask(), MaskImageCtrl::ROT0, MaskImageCtrl::setImage(), and MaskImageCtrl::setScale().
Referenced by MaskEditorPanel::OnMaskLoad(), and MaskEditorPanel::OnMaskPaste().
void MaskLoadDialog::OnSize | ( | wxSizeEvent & | e | ) |
void MaskLoadDialog::ProcessMask | ( | wxCommandEvent & | e | ) |
Definition at line 109 of file MaskLoadDialog.cpp.
References m_imageSize, m_loadedMask, m_maskRotateMode, m_maskScaleMode, m_maskSize, m_processedMask, HuginBase::maskOffset, celeste::min(), and UpdatePreviewImage().
Referenced by initValues().
void MaskLoadDialog::UpdatePreviewImage | ( | ) |
Definition at line 158 of file MaskLoadDialog.cpp.
References m_image, m_processedMask, and MaskImageCtrl::setNewMasks().
Referenced by ProcessMask().
|
private |
Definition at line 53 of file MaskLoadDialog.h.
Referenced by initValues(), and UpdatePreviewImage().
|
private |
Definition at line 57 of file MaskLoadDialog.h.
Referenced by initValues(), and ProcessMask().
|
private |
Definition at line 60 of file MaskLoadDialog.h.
Referenced by initValues(), and ProcessMask().
|
private |
Definition at line 56 of file MaskLoadDialog.h.
Referenced by initValues(), and ProcessMask().
|
private |
Definition at line 55 of file MaskLoadDialog.h.
Referenced by ProcessMask().
|
private |
Definition at line 58 of file MaskLoadDialog.h.
Referenced by initValues(), and ProcessMask().
|
private |
Definition at line 61 of file MaskLoadDialog.h.
Referenced by getProcessedMask(), ProcessMask(), and UpdatePreviewImage().