26 #ifndef _MaskEditorPanel_H
27 #define _MaskEditorPanel_H
35 #include <wx/clrpicker.h>
51 bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL,
const wxString& name = wxT(
"panel"));
67 void setImage(
unsigned int imgNr,
bool updateListSelection=
false);
69 void setMask(
unsigned int maskNr);
114 void OnZoom(wxCommandEvent & e);
203 #endif // _MaskEditorPanel_H
void OnResetButton(wxCommandEvent &e)
ImageRotation
image rotation.
HuginBase::ConstStandardImageVariableGroups * m_imageGroups
void OnSetTop(wxCommandEvent &e)
void UpdateMaskList(bool restoreSelection=false)
updates the display after another image has been selected.
void UpdateCropFromImage()
updates the displayed crop in the text boxes (for dragging)
wxListCtrl * m_imagesListMask
HuginBase::Panorama * m_pano
void OnMaskPaste(wxCommandEvent &e)
called when user wants to paste a mask from clipboard
void SelectMask(unsigned int newMaskNr)
selects the mask with index newMaskNr in the listbox
xrc handler for handling mask editor panel
Somewhere to specify what variables belong to what.
MaskImageCtrl * m_editImg
void OnMaskColumnWidthChange(wxListEvent &e)
called, when column with of mask list box was changed
void OnImageSelect(wxListEvent &e)
called when user selected another image
virtual bool CanHandle(wxXmlNode *node)
HuginBase::SrcPanoImage::CropMode m_cropMode
void setImage(unsigned int imgNr, bool updateListSelection=false)
sets the image, which is currently edited
void OnMaskLoad(wxCommandEvent &e)
called when user wants to load a mask into the selected image
HuginBase::MaskPolygonVector m_currentMasks
void OnImageListChar(wxKeyEvent &e)
key handler for images list
void OnAutoCenter(wxCommandEvent &e)
wxTextCtrl * m_right_textctrl
void OnSetBottom(wxCommandEvent &e)
void OnSetRight(wxCommandEvent &e)
const HuginBase::UIntSet GetSelectedImages()
return the currently selected image(s)
void setMask(unsigned int maskNr)
sets active mask number, set to UINT_MAX, if no mask is currently editing
std::set< unsigned int > UIntSet
void OnZoom(wxCommandEvent &e)
sets the actual zoom factor
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
notifies about changes to images
HuginBase::MaskPolygon::MaskType m_defaultMaskType
void OnMaskTypeChange(wxCommandEvent &e)
handler when mask type was changed
void OnImagesColumnWidthChange(wxListEvent &e)
called, when column with of images list box was changed
void SwitchToCropMode()
switches the controls to crop mode
MaskType
enumeration with type of possible masks
void OnColourChanged(wxColourPickerEvent &e)
event handler for changing colours
void OnModeChanged(wxNotebookEvent &e)
vigra::Point2D m_cropCenter
void UpdateMask()
called when mask where changed in MaskImageCtrl
Make an ImageVariableGroup for lenses and other common concepts.
void UpdateCrop(bool updateFromImgCtrl=false)
updated the crop in the Panorama object with the current values from GUI
wxCheckBox * m_autocenter_cb
void OnMaskSave(wxCommandEvent &e)
called when user wants to save active mask
std::vector< MaskPolygon > MaskPolygonVector
void Init(HuginBase::Panorama *pano)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
void OnSetLeft(wxCommandEvent &e)
this handler class will receive change events from the Panorama.
wxNotebook * m_maskCropCtrl
virtual ~MaskEditorPanel()
dtor.
void DisplayCrop(int imgNr)
copies the crop information from the Panorama object to GUI
void UpdateCropDisplay()
update GUI display
wxTextCtrl * m_bottom_textctrl
MaskImageCtrl::ImageRotation GetRot(const unsigned int imgNr)
determines, if the image should be rotated for display
void OnMaskDelete(wxCommandEvent &e)
called when user wants to delete active mask
void UpdateImage(size_t imgNr)
update the list box for the given imgNr
void OnMaskSelect(wxListEvent &e)
called when user selected another mask
void OnMaskAdd(wxCommandEvent &e)
called when user wants to create new polygon
void panoramaChanged(HuginBase::Panorama &pano)
called when the panorama changes and we should update our display
void OnShowActiveMasks(wxCommandEvent &e)
event handler for changing option if active masks should be drawn
void SetPano(HuginBase::Panorama *panorama)
void AddMask()
called when new mask added in MaskImageCtrl
wxTextCtrl * m_top_textctrl
virtual wxObject * DoCreateResource()
MaskEditorPanelXmlHandler()
wxTextCtrl * m_left_textctrl
unsigned int GetSelectedMask()
return index of currently selected masks, return UINT_MAX if no mask is selected
void OnMaskCopy(wxCommandEvent &e)
called when user wants to copy a mask to clipboard