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