MaskLoadDialog Class Reference

Dialog for loading masks. More...

#include <MaskLoadDialog.h>

List of all members.

Public Member Functions

 MaskLoadDialog (wxWindow *parent)
 Constructor, read from xrc ressource.
virtual ~MaskLoadDialog ()
void initValues (const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize)
 sets the default values
HuginBase::MaskPolygonVector getProcessedMask () const
 return the processed mask
void OnSize (wxSizeEvent &e)
void ProcessMask (wxCommandEvent &e)
void UpdatePreviewImage ()

Private Attributes

MaskImageCtrlm_image
wxRadioBox * m_maskScaleMode
wxRadioBox * m_maskRotateMode
vigra::Size2D m_imageSize
vigra::Size2D m_maskSize
HuginBase::MaskPolygonVector m_loadedMask
HuginBase::MaskPolygonVector m_processedMask


Detailed Description

Dialog for loading masks.

Definition at line 38 of file MaskLoadDialog.h.


Constructor & Destructor Documentation

MaskLoadDialog::ProcessMask 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().

MaskLoadDialog::~MaskLoadDialog (  )  [virtual]

Definition at line 78 of file MaskLoadDialog.cpp.

References StoreFramePosition().


Member Function Documentation

HuginBase::MaskPolygonVector MaskLoadDialog::getProcessedMask (  )  const [inline]

return the processed mask

Definition at line 47 of file MaskLoadDialog.h.

References m_processedMask.

void MaskLoadDialog::initValues ( const HuginBase::SrcPanoImage  image,
const HuginBase::MaskPolygonVector  newMask,
const vigra::Size2D  maskSize 
)

sets the default values

Definition at line 83 of file MaskLoadDialog.cpp.

References m_image, m_imageSize, m_loadedMask, m_maskRotateMode, m_maskSize, ProcessMask(), MaskImageCtrl::ROT0, MaskImageCtrl::setImage(), and MaskImageCtrl::setScale().

void MaskLoadDialog::OnSize ( wxSizeEvent &  e  ) 

void MaskLoadDialog::ProcessMask ( wxCommandEvent &  e  ) 

Definition at line 107 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 156 of file MaskLoadDialog.cpp.

References m_image, m_processedMask, and MaskImageCtrl::setNewMasks().

Referenced by ProcessMask().


Member Data Documentation

MaskImageCtrl* MaskLoadDialog::m_image [private]

Definition at line 53 of file MaskLoadDialog.h.

Referenced by initValues(), and UpdatePreviewImage().

vigra::Size2D MaskLoadDialog::m_imageSize [private]

Definition at line 57 of file MaskLoadDialog.h.

Referenced by initValues(), and ProcessMask().

HuginBase::MaskPolygonVector MaskLoadDialog::m_loadedMask [private]

Definition at line 60 of file MaskLoadDialog.h.

Referenced by initValues(), and ProcessMask().

wxRadioBox* MaskLoadDialog::m_maskRotateMode [private]

Definition at line 56 of file MaskLoadDialog.h.

Referenced by initValues(), and ProcessMask().

wxRadioBox* MaskLoadDialog::m_maskScaleMode [private]

Definition at line 55 of file MaskLoadDialog.h.

Referenced by ProcessMask().

vigra::Size2D MaskLoadDialog::m_maskSize [private]

Definition at line 58 of file MaskLoadDialog.h.

Referenced by initValues(), and ProcessMask().

HuginBase::MaskPolygonVector MaskLoadDialog::m_processedMask [private]

Definition at line 61 of file MaskLoadDialog.h.

Referenced by getProcessedMask(), ProcessMask(), and UpdatePreviewImage().


The documentation for this class was generated from the following files:
Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7