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

Protected Member Functions

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

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
 
double scale (double x) const
 
int transform (int x) const
 convert image coordinate to screen coordinates, considers additional added border
 
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
 
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 FindPolygon (hugin_utils::FDiff2D p)
 
bool SelectPointsInsideMouseRect (HuginBase::UIntSet &points, const bool considerSelectedOnly)
 
void UpdateCrop (hugin_utils::FDiff2D delta)
 
ClickPos GetClickPos (vigra::Point2D pos)
 

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
 
wxTimer m_resizeTimer
 
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

◆ ClickPos

Enumerator
CLICK_OUTSIDE 
CLICK_INSIDE 
CLICK_LEFT 
CLICK_RIGHT 
CLICK_TOP 
CLICK_BOTTOM 
CLICK_CIRCLE 

Definition at line 272 of file MaskImageCtrl.h.

◆ ImageRotation

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.

◆ MaskEditorState

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 280 of file MaskImageCtrl.h.

Constructor & Destructor Documentation

◆ MaskImageCtrl()

MaskImageCtrl::MaskImageCtrl ( )
inline

ctor.

Definition at line 43 of file MaskImageCtrl.h.

Member Function Documentation

◆ applyRot()

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

Definition at line 215 of file MaskImageCtrl.h.

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

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

◆ applyRotInv()

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

◆ calcAutoScaleFactor()

double MaskImageCtrl::calcAutoScaleFactor ( wxSize  size)
protected

calculate new scale factor for this image

Definition at line 1584 of file MaskImageCtrl.cpp.

References DEBUG_DEBUG, m_imgRotation, ROT270, ROT90, and threshold().

Referenced by rescaleImage(), and setScale().

◆ Create()

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

◆ DoGetBestSize()

wxSize MaskImageCtrl::DoGetBestSize ( ) const
override

returns size of currently scaled image

Definition at line 1195 of file MaskImageCtrl.cpp.

References m_imageSize, and threshold().

◆ DrawCrop()

void MaskImageCtrl::DrawCrop ( wxDC dc)
private

◆ DrawPolygon()

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

◆ DrawSelectionRectangle()

void MaskImageCtrl::DrawSelectionRectangle ( )
private

Definition at line 1507 of file MaskImageCtrl.cpp.

References m_color_selection, m_currentPos, m_dragStartPos, m_overlay, and threshold().

Referenced by OnMouseMove().

◆ FindPolygon()

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

Definition at line 1525 of file MaskImageCtrl.cpp.

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

Referenced by OnLeftMouseUp().

◆ GetClickPos()

MaskImageCtrl::ClickPos MaskImageCtrl::GetClickPos ( vigra::Point2D  pos)
private

◆ getCrop()

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().

◆ getCurrentRotation()

ImageRotation MaskImageCtrl::getCurrentRotation ( )
inline

returns the current rotation of displayed image

Definition at line 123 of file MaskImageCtrl.h.

References m_imgRotation.

Referenced by MaskEditorPanel::setImage().

◆ getNewMask()

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().

◆ getScale()

double MaskImageCtrl::getScale ( )
inline

return scale factor, 0 for autoscale

Definition at line 119 of file MaskImageCtrl.h.

References m_fitToWindow, and m_scaleFactor.

Referenced by MaskEditorPanel::OnZoom().

◆ getScaleFactor()

double MaskImageCtrl::getScaleFactor ( ) const
protected

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

Definition at line 1603 of file MaskImageCtrl.cpp.

References m_scaleFactor.

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

◆ Init()

void MaskImageCtrl::Init ( MaskEditorPanel parent)

Definition at line 97 of file MaskImageCtrl.cpp.

References m_editPanel, and threshold().

Referenced by MaskEditorPanel::Create().

◆ invtransform() [1/3]

hugin_utils::FDiff2D MaskImageCtrl::invtransform ( const wxPoint p) const
inlineprivate

◆ invtransform() [2/3]

double MaskImageCtrl::invtransform ( double  x) const
inlineprivate

Definition at line 201 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

◆ invtransform() [3/3]

int MaskImageCtrl::invtransform ( int  x) const
inlineprivate

translate screen coordinates to image coordinates, considers additional added border

Definition at line 198 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

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

◆ OnCaptureLost()

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 1166 of file MaskImageCtrl.cpp.

References OnKillFocus(), and threshold().

Referenced by Create().

◆ OnChar()

void MaskImageCtrl::OnChar ( wxKeyEvent e)

event handler for scrolling with keyboard

Definition at line 1135 of file MaskImageCtrl.cpp.

References m_bitmap, and threshold().

Referenced by Create().

◆ OnKeyUp()

void MaskImageCtrl::OnKeyUp ( wxKeyEvent e)

◆ OnKillFocus()

void MaskImageCtrl::OnKillFocus ( wxFocusEvent e)

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

Definition at line 1172 of file MaskImageCtrl.cpp.

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

Referenced by Create(), and OnCaptureLost().

◆ OnLeftMouseDblClick()

void MaskImageCtrl::OnLeftMouseDblClick ( wxMouseEvent mouse)

◆ OnLeftMouseDown()

void MaskImageCtrl::OnLeftMouseDown ( wxMouseEvent mouse)

◆ OnLeftMouseUp()

void MaskImageCtrl::OnLeftMouseUp ( wxMouseEvent mouse)

◆ OnMiddleMouseDown()

void MaskImageCtrl::OnMiddleMouseDown ( wxMouseEvent mouse)

event handler for middle mouse button, start scrolling

Definition at line 969 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, POINTS_SELECTED, and threshold().

Referenced by Create().

◆ OnMiddleMouseUp()

void MaskImageCtrl::OnMiddleMouseUp ( wxMouseEvent mouse)

event handler for middle mouse button, end scrolling

Definition at line 998 of file MaskImageCtrl.cpp.

References m_middleMouseScroll, m_previewOnly, and threshold().

Referenced by Create().

◆ OnMouseMove()

void MaskImageCtrl::OnMouseMove ( wxMouseEvent mouse)

◆ OnMouseWheel()

void MaskImageCtrl::OnMouseWheel ( wxMouseEvent mouse)

◆ OnPaint()

void MaskImageCtrl::OnPaint ( wxPaintEvent e)

◆ OnRightMouseDown()

void MaskImageCtrl::OnRightMouseDown ( wxMouseEvent mouse)

◆ OnRightMouseUp()

void MaskImageCtrl::OnRightMouseUp ( wxMouseEvent mouse)

◆ OnScroll()

void MaskImageCtrl::OnScroll ( wxScrollWinEvent e)

event handler for remember scroll position

Definition at line 1404 of file MaskImageCtrl.cpp.

References m_oldScrollPosX, m_oldScrollPosY, and threshold().

Referenced by Create().

◆ OnSize()

void MaskImageCtrl::OnSize ( wxSizeEvent e)
protected

handler called when size of control was changed

Definition at line 1384 of file MaskImageCtrl.cpp.

References m_imageFilename, and m_resizeTimer.

Referenced by Create().

◆ OnSizeFinished()

void MaskImageCtrl::OnSizeFinished ( wxTimerEvent e)
protected

handler called at end of all resize

Definition at line 1394 of file MaskImageCtrl.cpp.

References m_fitToWindow, m_imageFilename, and setScale().

Referenced by Create().

◆ rescaleImage()

void MaskImageCtrl::rescaleImage ( )
protected

◆ scale() [1/2]

double MaskImageCtrl::scale ( double  x) const
inlineprivate

Definition at line 179 of file MaskImageCtrl.h.

References getScaleFactor().

◆ scale() [2/2]

int MaskImageCtrl::scale ( int  x) const
inlineprivate

scale of width/height

Definition at line 176 of file MaskImageCtrl.h.

References getScaleFactor().

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

◆ selectAllMarkers()

void MaskImageCtrl::selectAllMarkers ( )

select all points of active mask

Definition at line 263 of file MaskImageCtrl.cpp.

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

Referenced by MaskEditorPanel::AddMask().

◆ SelectPointsInsideMouseRect()

bool MaskImageCtrl::SelectPointsInsideMouseRect ( HuginBase::UIntSet points,
const bool  considerSelectedOnly 
)
private

◆ setActiveMask()

void MaskImageCtrl::setActiveMask ( unsigned int  newMask,
bool  doUpdate = true 
)

◆ setCrop()

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 207 of file MaskImageCtrl.cpp.

References m_cropCenter, m_cropCentered, m_cropCircle, m_cropMode, m_cropRect, and threshold().

Referenced by MaskEditorPanel::setImage().

◆ setDrawingActiveMasks()

void MaskImageCtrl::setDrawingActiveMasks ( bool  newDrawActiveMasks)

set if active masks should be drawn

Definition at line 1608 of file MaskImageCtrl.cpp.

References m_showActiveMasks, and threshold().

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

◆ setImage()

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

◆ SetMaskMode()

void MaskImageCtrl::SetMaskMode ( bool  newMaskMode)

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

Definition at line 102 of file MaskImageCtrl.cpp.

References CROP_SHOWING, m_maskEditState, m_maskMode, m_overlay, NO_IMAGE, NO_SELECTION, setActiveMask(), and threshold().

Referenced by MaskEditorPanel::OnModeChanged().

◆ setNewMasks()

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

updates masks for currently selected image

Definition at line 192 of file MaskImageCtrl.cpp.

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

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

◆ setPreviewOnly()

void MaskImageCtrl::setPreviewOnly ( )
inline

if called, the mouse handlers are deactivated

Definition at line 58 of file MaskImageCtrl.h.

References m_previewOnly.

Referenced by MaskLoadDialog::MaskLoadDialog().

◆ setScale()

void MaskImageCtrl::setScale ( double  factor)

set the scaling factor for mask editing display.

Parameters
factorzoom factor, 0 means fit to window.

Definition at line 1563 of file MaskImageCtrl.cpp.

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

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

◆ SetUserColourPointSelected()

void MaskImageCtrl::SetUserColourPointSelected ( wxColour  newColour)
inline

◆ SetUserColourPointUnselected()

void MaskImageCtrl::SetUserColourPointUnselected ( wxColour  newColour)
inline

◆ SetUserColourPolygonNegative()

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, and threshold().

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

◆ SetUserColourPolygonPositive()

void MaskImageCtrl::SetUserColourPolygonPositive ( wxColour  newColour)
inline

◆ startNewPolygon()

void MaskImageCtrl::startNewPolygon ( )

starts creating a new polygon

Definition at line 1187 of file MaskImageCtrl.cpp.

References m_editingMask, m_maskEditState, m_selectedPoints, NEW_POLYGON_STARTED, and threshold().

Referenced by MaskEditorPanel::OnMaskAdd().

◆ transform() [1/3]

wxPoint MaskImageCtrl::transform ( const hugin_utils::FDiff2D p) const
inlineprivate

◆ transform() [2/3]

double MaskImageCtrl::transform ( double  x) const
inlineprivate

Definition at line 186 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

◆ transform() [3/3]

int MaskImageCtrl::transform ( int  x) const
inlineprivate

convert image coordinate to screen coordinates, considers additional added border

Definition at line 183 of file MaskImageCtrl.h.

References getScaleFactor(), and HuginBase::maskOffset.

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

◆ UpdateCrop()

void MaskImageCtrl::UpdateCrop ( hugin_utils::FDiff2D  delta)
private

Member Data Documentation

◆ m_activeMask

unsigned int MaskImageCtrl::m_activeMask
private

◆ m_bitmap

wxBitmap MaskImageCtrl::m_bitmap
private

Definition at line 152 of file MaskImageCtrl.h.

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

◆ m_color_selection

wxColour MaskImageCtrl::m_color_selection
private

Definition at line 330 of file MaskImageCtrl.h.

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

◆ m_colour_point_selected

wxColor MaskImageCtrl::m_colour_point_selected
private

Definition at line 328 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPointSelected().

◆ m_colour_point_unselected

wxColor MaskImageCtrl::m_colour_point_unselected
private

Definition at line 329 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPointUnselected().

◆ m_colour_polygon_negative

wxColor MaskImageCtrl::m_colour_polygon_negative
private

Definition at line 326 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPolygonNegative().

◆ m_colour_polygon_positive

wxColor MaskImageCtrl::m_colour_polygon_positive
private

Definition at line 327 of file MaskImageCtrl.h.

Referenced by DrawPolygon(), and SetUserColourPolygonPositive().

◆ m_cropCenter

hugin_utils::FDiff2D MaskImageCtrl::m_cropCenter
private

Definition at line 167 of file MaskImageCtrl.h.

Referenced by setCrop(), and UpdateCrop().

◆ m_cropCentered

bool MaskImageCtrl::m_cropCentered
private

Definition at line 165 of file MaskImageCtrl.h.

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

◆ m_cropCircle

bool MaskImageCtrl::m_cropCircle
private

Definition at line 166 of file MaskImageCtrl.h.

Referenced by OnLeftMouseDown(), OnMouseWheel(), and setCrop().

◆ m_cropMode

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

Definition at line 163 of file MaskImageCtrl.h.

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

◆ m_cropRect

vigra::Rect2D MaskImageCtrl::m_cropRect
private

◆ m_currentPos

wxPoint MaskImageCtrl::m_currentPos
private

◆ m_disabledBitmap

wxBitmap MaskImageCtrl::m_disabledBitmap
private

Definition at line 153 of file MaskImageCtrl.h.

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

◆ m_dragStartPos

wxPoint MaskImageCtrl::m_dragStartPos
private

◆ m_editingMask

HuginBase::MaskPolygon MaskImageCtrl::m_editingMask
private

◆ m_editPanel

MaskEditorPanel* MaskImageCtrl::m_editPanel
private

◆ m_fitToWindow

bool MaskImageCtrl::m_fitToWindow
private

Definition at line 304 of file MaskImageCtrl.h.

Referenced by Create(), getScale(), OnSizeFinished(), rescaleImage(), and setScale().

◆ m_imageFilename

std::string MaskImageCtrl::m_imageFilename
private

Definition at line 155 of file MaskImageCtrl.h.

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

◆ m_imageMask

HuginBase::MaskPolygonVector MaskImageCtrl::m_imageMask
private

◆ m_imageSize

wxSize MaskImageCtrl::m_imageSize
private

Definition at line 159 of file MaskImageCtrl.h.

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

◆ m_img

ImageCache::EntryPtr MaskImageCtrl::m_img
private

Definition at line 316 of file MaskImageCtrl.h.

Referenced by rescaleImage(), and setImage().

◆ m_imgRotation

ImageRotation MaskImageCtrl::m_imgRotation
private

◆ m_maskEditState

MaskEditorState MaskImageCtrl::m_maskEditState
private

◆ m_maskMode

bool MaskImageCtrl::m_maskMode
private

◆ m_masksToDraw

HuginBase::MaskPolygonVector MaskImageCtrl::m_masksToDraw
private

Definition at line 309 of file MaskImageCtrl.h.

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

◆ m_middleMouseScroll

bool MaskImageCtrl::m_middleMouseScroll
private

◆ m_oldScrollPosX

int MaskImageCtrl::m_oldScrollPosX
private

Definition at line 332 of file MaskImageCtrl.h.

Referenced by Create(), OnScroll(), and setImage().

◆ m_oldScrollPosY

int MaskImageCtrl::m_oldScrollPosY
private

Definition at line 332 of file MaskImageCtrl.h.

Referenced by Create(), OnScroll(), and setImage().

◆ m_overlay

wxOverlay MaskImageCtrl::m_overlay
private

◆ m_previewOnly

bool MaskImageCtrl::m_previewOnly
private

◆ m_realSize

wxSize MaskImageCtrl::m_realSize
private

Definition at line 161 of file MaskImageCtrl.h.

Referenced by applyRot(), applyRotInv(), OnMouseWheel(), OnPaint(), and rescaleImage().

◆ m_resizeTimer

wxTimer MaskImageCtrl::m_resizeTimer
private

Definition at line 173 of file MaskImageCtrl.h.

Referenced by Create(), and OnSize().

◆ m_scaleFactor

double MaskImageCtrl::m_scaleFactor
private

Definition at line 303 of file MaskImageCtrl.h.

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

◆ m_scrollPos

wxPoint MaskImageCtrl::m_scrollPos
private

Definition at line 323 of file MaskImageCtrl.h.

Referenced by OnMiddleMouseDown(), and OnMouseMove().

◆ m_selectedPoints

HuginBase::UIntSet MaskImageCtrl::m_selectedPoints
private

◆ m_showActiveMasks

bool MaskImageCtrl::m_showActiveMasks
private

Definition at line 169 of file MaskImageCtrl.h.

Referenced by Create(), OnPaint(), and setDrawingActiveMasks().


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