40 wxXmlResource::Get()->LoadDialog(
this, parent, wxT(
"mask_load_dialog"));
45 wxColour defaultColour;
47 wxColour colour=wxConfigBase::Get()->Read(wxT(
"/MaskEditorPanel/ColourPolygonNegative"),defaultColour.GetAsString(wxC2S_HTML_SYNTAX));
50 colour=wxConfigBase::Get()->Read(wxT(
"/MaskEditorPanel/ColourPolygonPositive"),defaultColour.GetAsString(wxC2S_HTML_SYNTAX));
53 colour=wxConfigBase::Get()->Read(wxT(
"/MaskEditorPanel/ColourPointSelected"),defaultColour.GetAsString(wxC2S_HTML_SYNTAX));
56 colour=wxConfigBase::Get()->Read(wxT(
"/MaskEditorPanel/ColourPointUnselected"),defaultColour.GetAsString(wxC2S_HTML_SYNTAX));
65 if(GetSize().GetWidth()<400)
66 SetClientSize(400,GetSize().GetHeight());
89 XRCCTRL(*
this,
"label_image_size",wxStaticText)->SetLabel(wxString::Format(wxT(
"%d x %d"),
m_imageSize.width(),
m_imageSize.height()));
90 XRCCTRL(*
this,
"label_mask_size",wxStaticText)->SetLabel(wxString::Format(wxT(
"%d x %d"),
m_maskSize.width(),
m_maskSize.height()));
wxRadioBox * m_maskScaleMode
const int maskOffset
polygon can exceed the image maximal maskOffset pixels in each direction bigger polygons will be clip...
void SetUserColourPointUnselected(wxColour newColour)
include file for the hugin project
MaskLoadDialog(wxWindow *parent)
Constructor, read from xrc ressource.
void setPreviewOnly()
if called, the mouse handlers are deactivated
void SetUserColourPolygonNegative(wxColour newColour)
sets the colour for different parts
void SetUserColourPointSelected(wxColour newColour)
HuginBase::MaskPolygonVector m_processedMask
wxRadioBox * m_maskRotateMode
void setImage(const std::string &filename, HuginBase::MaskPolygonVector newMask, HuginBase::MaskPolygonVector masksToDraw, ImageRotation rot)
set the current image and mask list, this loads also the image from cache
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Store window size and position in configfile/registry.
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Restore window size and position from configfile/registry.
std::vector< MaskPolygon > MaskPolygonVector
virtual ~MaskLoadDialog()
#define HUGIN_MASK_COLOUR_POINT_UNSELECTED
void setNewMasks(HuginBase::MaskPolygonVector newMasks, HuginBase::MaskPolygonVector masksToDraw)
updates masks for currently selected image
include file for the hugin project
void UpdatePreviewImage()
void setScale(double factor)
set the scaling factor for mask editing display.
#define HUGIN_MASK_COLOUR_POINT_SELECTED
#define HUGIN_MASK_COLOUR_POLYGON_NEGATIVE
void ProcessMask(wxCommandEvent &e)
Definition of mask load dialog.
vigra::Size2D m_imageSize
void SetUserColourPolygonPositive(wxColour newColour)
#define HUGIN_MASK_COLOUR_POLYGON_POSITIVE
All variables of a source image.
void initValues(const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize)
sets the default values
HuginBase::MaskPolygonVector m_loadedMask