Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MaskImageCtrl Class Reference

mask editor More...

#include <MaskImageCtrl.h>

Inheritance diagram for MaskImageCtrl:
Inheritance graph

Public Types

enum  ImageRotation { ROT0 =0, ROT90, ROT180, ROT270 }
 image rotation. More...
 

Public Member Functions

 MaskImageCtrl ()
 ctor. More...
 
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 Init (MaskEditorPanel *parent)
 
void setPreviewOnly ()
 if called, the mouse handlers are deactivated More...
 
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 More...
 
void setNewMasks (HuginBase::MaskPolygonVector newMasks, HuginBase::MaskPolygonVector masksToDraw)
 updates masks for currently selected image More...
 
void setCrop (HuginBase::SrcPanoImage::CropMode newCropMode, vigra::Rect2D newCropRect, bool isCentered, hugin_utils::FDiff2D center, bool isCircleCrop)
 updates the crop mode and crop rect More...
 
vigra::Rect2D getCrop ()
 returns the current crop rect More...
 
void setActiveMask (unsigned int newMask, bool doUpdate=true)
 mark mask with image as beeing editing More...
 
HuginBase::MaskPolygonVector getNewMask () const
 returns the vector of all mask (including new created mask) More...
 
void selectAllMarkers ()
 select all points of active mask More...
 
void OnMouseMove (wxMouseEvent &mouse)
 event handler when mouse is moving More...
 
void OnLeftMouseDown (wxMouseEvent &mouse)
 event handler when left mouse button is pressed More...
 
void OnLeftMouseUp (wxMouseEvent &mouse)
 event handler when right mouse button is released More...
 
void OnLeftMouseDblClick (wxMouseEvent &mouse)
 event handler for left double click More...
 
void OnRightMouseDown (wxMouseEvent &mouse)
 event handler when right mouse button is pressed More...
 
void OnRightMouseUp (wxMouseEvent &mouse)
 event handler when right mouse button is released More...
 
void OnMiddleMouseDown (wxMouseEvent &mouse)
 event handler for middle mouse button, start scrolling More...
 
void OnMiddleMouseUp (wxMouseEvent &mouse)
 event handler for middle mouse button, end scrolling More...
 
void OnKeyUp (wxKeyEvent &e)
 event handler for keyboard More...
 
void OnChar (wxKeyEvent &e)
 event handler for scrolling with keyboard More...
 
void OnCaptureLost (wxMouseCaptureLostEvent &e)
 event handler, when mouse capture is lost, e.g. More...
 
void OnKillFocus (wxFocusEvent &e)
 event handler, when editor lost focus, mainly cancels creating new polygon More...
 
void OnScroll (wxScrollWinEvent &e)
 event handler for remember scroll position More...
 
void startNewPolygon ()
 starts creating a new polygon More...
 
wxSize DoGetBestSize () const
 returns size of currently scaled image More...
 
void SetMaskMode (bool newMaskMode)
 sets the control to mask (newMaskMode=true) or crop (newMaskMode=false) mode More...
 
void setScale (double factor)
 set the scaling factor for mask editing display. More...
 
double getScale ()
 return scale factor, 0 for autoscale More...
 
ImageRotation getCurrentRotation ()
 returns the current rotation of displayed image More...
 
void setDrawingActiveMasks (bool newDrawActiveMasks)
 set if active masks should be drawn More...
 
void update ()
 initiate redraw More...
 
void SetUserColourPolygonNegative (wxColour newColour)
 sets the colour for different parts More...
 
void SetUserColourPolygonPositive (wxColour newColour)
 
void SetUserColourPointSelected (wxColour newColour)
 
void SetUserColourPointUnselected (wxColour newColour)
 
virtual void OnDraw (wxDC &dc)
 drawing routine More...
 

Protected Member Functions

void OnSize (wxSizeEvent &e)
 handler called when size of control was changed More...
 
double getScaleFactor () const
 get scale factor (calculates factor when fit to window is active) More...
 
double calcAutoScaleFactor (wxSize size)
 calculate new scale factor for this image More...
 
void rescaleImage ()
 rescale the image More...
 

Private Types

enum  ClickPos {
  CLICK_OUTSIDE, CLICK_INSIDE, CLICK_LEFT, CLICK_RIGHT,
  CLICK_TOP, CLICK_BOTTOM, CLICK_CIRCLE
}
 
enum  MaskEditorState {
  NO_IMAGE =0, NO_MASK, NO_SELECTION, POINTS_SELECTED,
  POINTS_MOVING, POINTS_DELETING, POINTS_ADDING, POLYGON_SELECTING,
  REGION_SELECTING, NEW_POLYGON_STARTED, NEW_POLYGON_CREATING, CROP_SHOWING,
  CROP_MOVING, CROP_CIRCLE_SCALING, CROP_LEFT_MOVING, CROP_RIGHT_MOVING,
  CROP_TOP_MOVING, CROP_BOTTOM_MOVING
}
 different states of the editor More...
 

Private Member Functions

int scale (int x) const
 scale of width/height More...
 
double scale (double x) const
 
int transform (int x) const
 convert image coordinate to screen coordinates, considers additional added border More...
 
double transform (double x) const
 
wxPoint transform (const hugin_utils::FDiff2D &p) const
 
int invtransform (int x) const
 translate screen coordinates to image coordinates, considers additional added border More...
 
double invtransform (double x) const
 
hugin_utils::FDiff2D invtransform (const wxPoint &p) const
 
template<class T >
applyRot (const T &p) const
 
template<class T >
applyRotInv (const T &p) const
 
void DrawPolygon (wxDC &dc, HuginBase::MaskPolygon poly, bool isSelected, bool drawMarker)
 
void DrawSelectionRectangle ()
 
void DrawCrop (wxDC &dc)
 
void DrawCrop ()
 
void FindPolygon (hugin_utils::FDiff2D p)
 
bool SelectPointsInsideMouseRect (HuginBase::UIntSet &points, const bool considerSelectedOnly)
 
void UpdateCrop (hugin_utils::FDiff2D delta)
 
void ClearOverlay ()
 
ClickPos GetClickPos (vigra::Point2D pos)
 
 DECLARE_EVENT_TABLE ()
 

Private Attributes

wxBitmap m_bitmap
 
wxBitmap m_disabledBitmap
 
std::string m_imageFilename
 
ImageRotation m_imgRotation
 
wxSize m_imageSize
 
wxSize m_realSize
 
HuginBase::SrcPanoImage::CropMode m_cropMode
 
vigra::Rect2D m_cropRect
 
bool m_cropCentered
 
bool m_cropCircle
 
hugin_utils::FDiff2D m_cropCenter
 
bool m_showActiveMasks
 
bool m_maskMode
 
MaskEditorState m_maskEditState
 
double m_scaleFactor
 
bool m_fitToWindow
 
bool m_previewOnly
 
MaskEditorPanelm_editPanel
 
HuginBase::MaskPolygonVector m_imageMask
 
HuginBase::MaskPolygonVector m_masksToDraw
 
unsigned int m_activeMask
 
HuginBase::MaskPolygon m_editingMask
 
HuginBase::UIntSet m_selectedPoints
 
ImageCache::EntryPtr m_img
 
wxPoint m_dragStartPos
 
wxPoint m_currentPos
 
bool m_middleMouseScroll
 
wxPoint m_scrollPos
 
wxColor m_colour_polygon_negative
 
wxColor m_colour_polygon_positive
 
wxColor m_colour_point_selected
 
wxColor m_colour_point_unselected
 
wxColour m_color_selection
 
wxOverlay m_overlay
 
int m_oldScrollPosX
 
int m_oldScrollPosY
 

Detailed Description

mask editor

This class handles all mask editing.

Definition at line 38 of file MaskImageCtrl.h.

Member Enumeration Documentation

Enumerator
CLICK_OUTSIDE 
CLICK_INSIDE 
CLICK_LEFT 
CLICK_RIGHT 
CLICK_TOP 
CLICK_BOTTOM 
CLICK_CIRCLE 

Definition at line 271 of file MaskImageCtrl.h.

image rotation.

Useful to display images depending on their roll setting. rotation is clockwise

Enumerator
ROT0 
ROT90 
ROT180 
ROT270 

Definition at line 55 of file MaskImageCtrl.h.

different states of the editor

Enumerator
NO_IMAGE 
NO_MASK 
NO_SELECTION 
POINTS_SELECTED 
POINTS_MOVING 
POINTS_DELETING 
POINTS_ADDING 
POLYGON_SELECTING 
REGION_SELECTING 
NEW_POLYGON_STARTED 
NEW_POLYGON_CREATING 
CROP_SHOWING 
CROP_MOVING 
CROP_CIRCLE_SCALING 
CROP_LEFT_MOVING 
CROP_RIGHT_MOVING 
CROP_TOP_MOVING 
CROP_BOTTOM_MOVING 

Definition at line 279 of file MaskImageCtrl.h.

Constructor & Destructor Documentation

MaskImageCtrl::MaskImageCtrl ( )
inline

ctor.

Definition at line 43 of file MaskImageCtrl.h.

Member Function Documentation

template<class T >
T MaskImageCtrl::applyRot ( const T &  p) const
inlineprivate

Definition at line 211 of file MaskImageCtrl.h.

References m_imgRotation, m_realSize, ROT0, ROT180, ROT270, and ROT90.

Referenced by DrawCrop(), DrawPolygon(), and OnDraw().

template<class T >
T MaskImageCtrl::applyRotInv ( const T &  p) const
inlineprivate
double MaskImageCtrl::calcAutoScaleFactor ( wxSize  size)
protected

calculate new scale factor for this image

Definition at line 1560 of file MaskImageCtrl.cpp.

References DEBUG_DEBUG, vigra_ext::EMoR::h, m_imgRotation, ROT270, and ROT90.

Referenced by rescaleImage(), and setScale().

void MaskImageCtrl::ClearOverlay ( )
private

Definition at line 1368 of file MaskImageCtrl.cpp.

References m_overlay.

Referenced by OnLeftMouseUp(), and SetMaskMode().

bool MaskImageCtrl::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

Definition at line 65 of file MaskImageCtrl.cpp.

References wxcode::NO_IMAGE.

MaskImageCtrl::DECLARE_EVENT_TABLE ( )
private
wxSize MaskImageCtrl::DoGetBestSize ( ) const

returns size of currently scaled image

Definition at line 1139 of file MaskImageCtrl.cpp.

References m_imageSize.

void MaskImageCtrl::DrawCrop ( wxDC &  dc)
private
void MaskImageCtrl::DrawCrop ( )
private

Definition at line 1206 of file MaskImageCtrl.cpp.

Referenced by OnDraw(), and OnMouseMove().

void MaskImageCtrl::DrawPolygon ( wxDC &  dc,
HuginBase::MaskPolygon  poly,
bool  isSelected,
bool  drawMarker 
)
private
void MaskImageCtrl::DrawSelectionRectangle ( )
private

Definition at line 1489 of file MaskImageCtrl.cpp.

References m_color_selection, m_currentPos, m_dragStartPos, and m_overlay.

Referenced by OnMouseMove().

void MaskImageCtrl::FindPolygon ( hugin_utils::FDiff2D  p)
private

Definition at line 1501 of file MaskImageCtrl.cpp.

References m_editPanel, m_imageMask, and MaskEditorPanel::SelectMask().

Referenced by OnLeftMouseUp().

MaskImageCtrl::ClickPos MaskImageCtrl::GetClickPos ( vigra::Point2D  pos)
private
vigra::Rect2D MaskImageCtrl::getCrop ( )
inline

returns the current crop rect

Definition at line 66 of file MaskImageCtrl.h.

References m_cropRect.

Referenced by MaskEditorPanel::UpdateCrop(), and MaskEditorPanel::UpdateCropFromImage().

ImageRotation MaskImageCtrl::getCurrentRotation ( )
inline

returns the current rotation of displayed image

Definition at line 121 of file MaskImageCtrl.h.

References m_imgRotation.

Referenced by MaskEditorPanel::setImage().

HuginBase::MaskPolygonVector MaskImageCtrl::getNewMask ( ) const
inline

returns the vector of all mask (including new created mask)

Definition at line 70 of file MaskImageCtrl.h.

References m_imageMask.

Referenced by MaskEditorPanel::AddMask(), and MaskEditorPanel::UpdateMask().

double MaskImageCtrl::getScale ( )
inline

return scale factor, 0 for autoscale

Definition at line 117 of file MaskImageCtrl.h.

References m_fitToWindow, and m_scaleFactor.

Referenced by MaskEditorPanel::OnZoom().

double MaskImageCtrl::getScaleFactor ( ) const
protected

get scale factor (calculates factor when fit to window is active)

Definition at line 1579 of file MaskImageCtrl.cpp.

References m_scaleFactor.

Referenced by invtransform(), OnLeftMouseDown(), OnLeftMouseUp(), OnRightMouseUp(), rescaleImage(), scale(), SelectPointsInsideMouseRect(), and transform().

void MaskImageCtrl::Init ( MaskEditorPanel parent)

Definition at line 87 of file MaskImageCtrl.cpp.

References m_editPanel.

Referenced by MaskEditorPanel::Create().

int MaskImageCtrl::invtransform ( int  x) const
inlineprivate

translate screen coordinates to image coordinates, considers additional added border

Definition at line 194 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

Referenced by invtransform(), OnLeftMouseDown(), OnLeftMouseUp(), OnMouseMove(), OnRightMouseDown(), OnRightMouseUp(), SelectPointsInsideMouseRect(), and UpdateCrop().

double MaskImageCtrl::invtransform ( double  x) const
inlineprivate

Definition at line 197 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

hugin_utils::FDiff2D MaskImageCtrl::invtransform ( const wxPoint &  p) const
inlineprivate
void MaskImageCtrl::OnCaptureLost ( wxMouseCaptureLostEvent &  e)

event handler, when mouse capture is lost, e.g.

user click outside of window cancels creating of new mask

Definition at line 1110 of file MaskImageCtrl.cpp.

References OnKillFocus().

void MaskImageCtrl::OnChar ( wxKeyEvent &  e)

event handler for scrolling with keyboard

Definition at line 1079 of file MaskImageCtrl.cpp.

References m_bitmap, and celeste::max().

void MaskImageCtrl::OnDraw ( wxDC &  dc)
virtual
void MaskImageCtrl::OnKeyUp ( wxKeyEvent &  e)
void MaskImageCtrl::OnKillFocus ( wxFocusEvent &  e)

event handler, when editor lost focus, mainly cancels creating new polygon

Definition at line 1116 of file MaskImageCtrl.cpp.

References m_editingMask, m_maskEditState, m_selectedPoints, NEW_POLYGON_CREATING, NEW_POLYGON_STARTED, NO_SELECTION, and update().

Referenced by OnCaptureLost().

void MaskImageCtrl::OnLeftMouseDblClick ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnLeftMouseDown ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnLeftMouseUp ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnMiddleMouseDown ( wxMouseEvent &  mouse)

event handler for middle mouse button, start scrolling

Definition at line 957 of file MaskImageCtrl.cpp.

References CROP_SHOWING, m_maskEditState, m_middleMouseScroll, m_previewOnly, m_scrollPos, NEW_POLYGON_CREATING, NEW_POLYGON_STARTED, NO_MASK, NO_SELECTION, POINTS_ADDING, and POINTS_SELECTED.

void MaskImageCtrl::OnMiddleMouseUp ( wxMouseEvent &  mouse)

event handler for middle mouse button, end scrolling

Definition at line 986 of file MaskImageCtrl.cpp.

References m_middleMouseScroll, and m_previewOnly.

void MaskImageCtrl::OnMouseMove ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnRightMouseDown ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnRightMouseUp ( wxMouseEvent &  mouse)
void MaskImageCtrl::OnScroll ( wxScrollWinEvent &  e)

event handler for remember scroll position

Definition at line 1392 of file MaskImageCtrl.cpp.

References m_oldScrollPosX, and m_oldScrollPosY.

void MaskImageCtrl::OnSize ( wxSizeEvent &  e)
protected

handler called when size of control was changed

Definition at line 1381 of file MaskImageCtrl.cpp.

References DEBUG_TRACE, m_fitToWindow, m_imageFilename, and setScale().

void MaskImageCtrl::rescaleImage ( )
protected
int MaskImageCtrl::scale ( int  x) const
inlineprivate

scale of width/height

Definition at line 172 of file MaskImageCtrl.h.

References getScaleFactor().

Referenced by DrawCrop(), OnDraw(), and rescaleImage().

double MaskImageCtrl::scale ( double  x) const
inlineprivate

Definition at line 175 of file MaskImageCtrl.h.

References getScaleFactor().

void MaskImageCtrl::selectAllMarkers ( )

select all points of active mask

Definition at line 253 of file MaskImageCtrl.cpp.

References fill_set(), m_activeMask, m_imageMask, and m_selectedPoints.

Referenced by MaskEditorPanel::AddMask().

bool MaskImageCtrl::SelectPointsInsideMouseRect ( HuginBase::UIntSet points,
const bool  considerSelectedOnly 
)
private
void MaskImageCtrl::setActiveMask ( unsigned int  newMask,
bool  doUpdate = true 
)
void MaskImageCtrl::setCrop ( HuginBase::SrcPanoImage::CropMode  newCropMode,
vigra::Rect2D  newCropRect,
bool  isCentered,
hugin_utils::FDiff2D  center,
bool  isCircleCrop 
)

updates the crop mode and crop rect

Definition at line 197 of file MaskImageCtrl.cpp.

References m_cropCenter, m_cropCentered, m_cropCircle, m_cropMode, and m_cropRect.

Referenced by MaskEditorPanel::setImage().

void MaskImageCtrl::setDrawingActiveMasks ( bool  newDrawActiveMasks)

set if active masks should be drawn

Definition at line 1584 of file MaskImageCtrl.cpp.

References m_showActiveMasks, and update().

Referenced by MaskEditorPanel::Create(), and MaskEditorPanel::OnShowActiveMasks().

void MaskImageCtrl::setImage ( const std::string &  filename,
HuginBase::MaskPolygonVector  newMask,
HuginBase::MaskPolygonVector  masksToDraw,
ImageRotation  rot 
)
void MaskImageCtrl::SetMaskMode ( bool  newMaskMode)

sets the control to mask (newMaskMode=true) or crop (newMaskMode=false) mode

Definition at line 92 of file MaskImageCtrl.cpp.

References ClearOverlay(), CROP_SHOWING, m_maskEditState, m_maskMode, NO_IMAGE, NO_SELECTION, setActiveMask(), and update().

Referenced by MaskEditorPanel::OnModeChanged().

void MaskImageCtrl::setNewMasks ( HuginBase::MaskPolygonVector  newMasks,
HuginBase::MaskPolygonVector  masksToDraw 
)

updates masks for currently selected image

Definition at line 182 of file MaskImageCtrl.cpp.

References m_activeMask, m_imageMask, m_masksToDraw, and setActiveMask().

Referenced by MaskEditorPanel::setImage(), and MaskLoadDialog::UpdatePreviewImage().

void MaskImageCtrl::setPreviewOnly ( )
inline

if called, the mouse handlers are deactivated

Definition at line 58 of file MaskImageCtrl.h.

References m_previewOnly.

void MaskImageCtrl::setScale ( double  factor)

set the scaling factor for mask editing display.

Parameters
factorzoom factor, 0 means fit to window.

Definition at line 1539 of file MaskImageCtrl.cpp.

References calcAutoScaleFactor(), DEBUG_DEBUG, m_fitToWindow, m_imageSize, m_scaleFactor, and rescaleImage().

Referenced by MaskLoadDialog::initValues(), OnSize(), and MaskEditorPanel::OnZoom().

void MaskImageCtrl::SetUserColourPointSelected ( wxColour  newColour)
inline
void MaskImageCtrl::SetUserColourPointUnselected ( wxColour  newColour)
inline
void MaskImageCtrl::SetUserColourPolygonNegative ( wxColour  newColour)
inline

sets the colour for different parts

Definition at line 129 of file MaskImageCtrl.h.

References m_colour_polygon_negative.

Referenced by MaskEditorPanel::Create(), and MaskEditorPanel::OnColourChanged().

void MaskImageCtrl::SetUserColourPolygonPositive ( wxColour  newColour)
inline
void MaskImageCtrl::startNewPolygon ( )

starts creating a new polygon

Definition at line 1131 of file MaskImageCtrl.cpp.

References m_editingMask, m_maskEditState, m_selectedPoints, and NEW_POLYGON_STARTED.

Referenced by MaskEditorPanel::OnMaskAdd().

int MaskImageCtrl::transform ( int  x) const
inlineprivate

convert image coordinate to screen coordinates, considers additional added border

Definition at line 179 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

Referenced by DrawCrop(), DrawPolygon(), OnDraw(), and transform().

double MaskImageCtrl::transform ( double  x) const
inlineprivate

Definition at line 182 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

wxPoint MaskImageCtrl::transform ( const hugin_utils::FDiff2D p) const
inlineprivate
void MaskImageCtrl::update ( )
void MaskImageCtrl::UpdateCrop ( hugin_utils::FDiff2D  delta)
private

Member Data Documentation

unsigned int MaskImageCtrl::m_activeMask
private
wxBitmap MaskImageCtrl::m_bitmap
private

Definition at line 150 of file MaskImageCtrl.h.

Referenced by OnChar(), OnDraw(), rescaleImage(), and setImage().

wxColour MaskImageCtrl::m_color_selection
private

Definition at line 329 of file MaskImageCtrl.h.

Referenced by DrawCrop(), DrawSelectionRectangle(), and rescaleImage().

wxColor MaskImageCtrl::m_colour_point_selected
private

Definition at line 327 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPointSelected().

wxColor MaskImageCtrl::m_colour_point_unselected
private

Definition at line 328 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPointUnselected().

wxColor MaskImageCtrl::m_colour_polygon_negative
private

Definition at line 325 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPolygonNegative().

wxColor MaskImageCtrl::m_colour_polygon_positive
private

Definition at line 326 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPolygonPositive().

hugin_utils::FDiff2D MaskImageCtrl::m_cropCenter
private

Definition at line 165 of file MaskImageCtrl.h.

Referenced by setCrop(), and UpdateCrop().

bool MaskImageCtrl::m_cropCentered
private

Definition at line 163 of file MaskImageCtrl.h.

Referenced by OnLeftMouseDown(), OnMouseMove(), setCrop(), and UpdateCrop().

bool MaskImageCtrl::m_cropCircle
private

Definition at line 164 of file MaskImageCtrl.h.

Referenced by OnLeftMouseDown(), and setCrop().

HuginBase::SrcPanoImage::CropMode MaskImageCtrl::m_cropMode
private

Definition at line 161 of file MaskImageCtrl.h.

Referenced by DrawCrop(), GetClickPos(), OnDraw(), OnLeftMouseDown(), and setCrop().

vigra::Rect2D MaskImageCtrl::m_cropRect
private
wxPoint MaskImageCtrl::m_currentPos
private
wxBitmap MaskImageCtrl::m_disabledBitmap
private

Definition at line 151 of file MaskImageCtrl.h.

Referenced by OnDraw(), rescaleImage(), and setImage().

wxPoint MaskImageCtrl::m_dragStartPos
private
HuginBase::MaskPolygon MaskImageCtrl::m_editingMask
private
MaskEditorPanel* MaskImageCtrl::m_editPanel
private
bool MaskImageCtrl::m_fitToWindow
private

Definition at line 303 of file MaskImageCtrl.h.

Referenced by getScale(), OnDraw(), OnSize(), rescaleImage(), and setScale().

std::string MaskImageCtrl::m_imageFilename
private

Definition at line 153 of file MaskImageCtrl.h.

Referenced by OnSize(), setActiveMask(), and setImage().

HuginBase::MaskPolygonVector MaskImageCtrl::m_imageMask
private
wxSize MaskImageCtrl::m_imageSize
private

Definition at line 157 of file MaskImageCtrl.h.

Referenced by DoGetBestSize(), rescaleImage(), and setScale().

ImageCache::EntryPtr MaskImageCtrl::m_img
private

Definition at line 315 of file MaskImageCtrl.h.

Referenced by rescaleImage(), and setImage().

ImageRotation MaskImageCtrl::m_imgRotation
private
MaskEditorState MaskImageCtrl::m_maskEditState
private
bool MaskImageCtrl::m_maskMode
private

Definition at line 169 of file MaskImageCtrl.h.

Referenced by DrawCrop(), OnDraw(), OnLeftMouseDown(), setActiveMask(), setImage(), and SetMaskMode().

HuginBase::MaskPolygonVector MaskImageCtrl::m_masksToDraw
private

Definition at line 308 of file MaskImageCtrl.h.

Referenced by OnDraw(), setImage(), and setNewMasks().

bool MaskImageCtrl::m_middleMouseScroll
private
int MaskImageCtrl::m_oldScrollPosX
private

Definition at line 331 of file MaskImageCtrl.h.

Referenced by OnScroll(), and setImage().

int MaskImageCtrl::m_oldScrollPosY
private

Definition at line 331 of file MaskImageCtrl.h.

Referenced by OnScroll(), and setImage().

wxOverlay MaskImageCtrl::m_overlay
private
bool MaskImageCtrl::m_previewOnly
private
wxSize MaskImageCtrl::m_realSize
private

Definition at line 159 of file MaskImageCtrl.h.

Referenced by applyRot(), applyRotInv(), OnDraw(), and rescaleImage().

double MaskImageCtrl::m_scaleFactor
private

Definition at line 302 of file MaskImageCtrl.h.

Referenced by getScale(), getScaleFactor(), rescaleImage(), and setScale().

wxPoint MaskImageCtrl::m_scrollPos
private

Definition at line 322 of file MaskImageCtrl.h.

Referenced by OnMiddleMouseDown(), and OnMouseMove().

HuginBase::UIntSet MaskImageCtrl::m_selectedPoints
private
bool MaskImageCtrl::m_showActiveMasks
private

Definition at line 167 of file MaskImageCtrl.h.

Referenced by OnDraw(), and setDrawingActiveMasks().


The documentation for this class was generated from the following files: