Hugin trunk 0.1
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
PerspectiveImageCtrl Class Reference

image previewer for perspective correction More...

#include <PerspectiveImageCtrl.h>

Inheritance diagram for PerspectiveImageCtrl:
Inheritance graph

Classes

class  Line
 

Public Types

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

Public Member Functions

bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 creates the control
 
void setOriginalMode ()
 show the original images with selected zoom ration, the mouse handlers are activated
 
bool IsOriginalShown () const
 
void SetRemappedMode (const HuginBase::Panorama &pano)
 set the panorama object for remapping, the mouse handler are deactivated
 
void setImage (const std::string &filename, ImageRotation rot)
 set the current image and mask list, this loads also the image from cache
 
void ChangeRotation (ImageRotation newRot)
 
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 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 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 setScale (double factor)
 set the scaling factor for mask editing display.
 
double getScale () const
 return scale factor, 0 for autoscale
 
ImageRotation getCurrentRotation ()
 returns the current rotation of displayed image
 
void SetLineColour (wxColour newColour)
 sets the colour for the lines
 
void OnPaint (wxPaintEvent &e)
 drawing routine
 
void SetRectMode (bool newMode)
 set line or rect mode
 
HuginBase::CPVector GetControlPoints (const unsigned int index)
 return list of control points
 
ImageCache::EntryPtr getCachedImage ()
 return pointer to ImageCache
 
void AddLines (const HuginBase::CPVector &lines)
 add the lines to the list
 
void RemoveLines ()
 remove all lines from the list
 

Protected Member Functions

void OnSize (wxSizeEvent &e)
 handler called when size of control was changed
 
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
 
void UpdateVirtualSize ()
 update the virtual size of the control, necessary for correctly display the scrollbars
 

Private Types

enum  PerspectiveEditorState {
  NO_IMAGE = 0 , SHOW_IMAGE , POINT_MOVING , SEGMENT_MOVING ,
  RECT_MOVING , LINE_CREATE , LINE_POINT_MOVING , LINE_MOVING
}
 different states of the editor More...
 

Private Member Functions

HuginBase::ControlPoint GetCP (const unsigned int index, const hugin_utils::FDiff2D &p1, const hugin_utils::FDiff2D &p2)
 return the HuginBase::ControlPoint, using index as image index, p1 and p2 as position, take image rotation into account to decide if control point is horizontal or vertical
 
void ClipPos (hugin_utils::FDiff2D &pos)
 clip the given pos to image size + offset
 
int GetNearestRectanglePoint (const hugin_utils::FDiff2D &p)
 return index of nearest rectangle point or -1 if the point is too far from rectangle
 
int GetNearestRectangleLine (const hugin_utils::FDiff2D &p)
 return index of nearest rectangle line or -1 if the point is too far from the rectangle lines
 
bool IsInsideRect (const hugin_utils::FDiff2D &p)
 return true, if the point p is inside the rect
 
int GetNearestLinePoint (const hugin_utils::FDiff2D &p, bool &isStart)
 return index of nearest line or -1 if the point to far from line
 
int GetNearestLine (const hugin_utils::FDiff2D &p)
 return index of nearest line or -1 if the point is too far from all lines
 
void GenerateRemappedImage (const unsigned int newWidth, const unsigned int newHeight)
 generates the remapped image suitable for wxBitmap
 
void DrawRect (wxDC &dc, const std::vector< hugin_utils::FDiff2D > &rect)
 
void DrawLines (wxDC &dc, const std::vector< Line > &lines)
 
int scale (int x) const
 helper function for scale, offset and rotation
 
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
 

Private Attributes

wxBitmap m_bitmap
 
wxBitmap m_remappedImg
 the remapped image as wxBitmap
 
std::string m_imageFilename
 
ImageRotation m_imgRotation { ROT0 }
 
wxSize m_imageSize
 
wxSize m_realSize
 
PerspectiveEditorState m_editorState { NO_IMAGE }
 
double m_scaleFactor { 1.0 }
 
bool m_fitToWindow { false }
 
bool m_showRemappedImage { false }
 
bool m_showRect { true }
 
ImageCache::EntryPtr m_img
 image cache entry for current image
 
HuginBase::Panorama m_pano
 HuginBase::Panorama object for calculation of remapped image.
 
wxPoint m_dragStartPos
 
wxPoint m_currentPos
 
int m_movingPoint { -1 }
 
bool m_middleMouseScroll { false }
 
wxPoint m_scrollPos
 
wxColor m_colour_selected
 
std::vector< hugin_utils::FDiff2Dm_rectPoints
 
std::vector< hugin_utils::FDiff2Dm_rectPointsStartDrag
 
std::vector< Linem_lines
 
std::vector< Linem_currentLine
 
Line m_lineStartDrag
 

Detailed Description

image previewer for perspective correction

Definition at line 43 of file PerspectiveImageCtrl.h.

Member Enumeration Documentation

◆ ImageRotation

image rotation.

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

Enumerator
ROT0 
ROT90 
ROT180 
ROT270 

Definition at line 74 of file PerspectiveImageCtrl.h.

◆ PerspectiveEditorState

different states of the editor

Enumerator
NO_IMAGE 
SHOW_IMAGE 
POINT_MOVING 
SEGMENT_MOVING 
RECT_MOVING 
LINE_CREATE 
LINE_POINT_MOVING 
LINE_MOVING 

Definition at line 269 of file PerspectiveImageCtrl.h.

Member Function Documentation

◆ AddLines()

void PerspectiveImageCtrl::AddLines ( const HuginBase::CPVector lines)

add the lines to the list

Definition at line 614 of file PerspectiveImageCtrl.cpp.

References m_lines, and threshold().

Referenced by PerspectivePanel::OnFindLines().

◆ applyRot()

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

Definition at line 226 of file PerspectiveImageCtrl.h.

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

Referenced by DrawLines(), and DrawRect().

◆ applyRotInv()

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

◆ calcAutoScaleFactor()

double PerspectiveImageCtrl::calcAutoScaleFactor ( wxSize  size)
protected

calculate new scale factor for this image

Definition at line 922 of file PerspectiveImageCtrl.cpp.

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

Referenced by rescaleImage(), and setScale().

◆ ChangeRotation()

void PerspectiveImageCtrl::ChangeRotation ( ImageRotation  newRot)

Definition at line 113 of file PerspectiveImageCtrl.cpp.

References m_imgRotation, rescaleImage(), and threshold().

Referenced by PerspectivePanel::OnRotationChanged().

◆ ClipPos()

void PerspectiveImageCtrl::ClipPos ( hugin_utils::FDiff2D pos)
private

clip the given pos to image size + offset

Definition at line 279 of file PerspectiveImageCtrl.cpp.

References m_realSize, PerspectiveOffset, and threshold().

Referenced by OnLeftMouseUp(), and OnMouseMove().

◆ Create()

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

◆ DrawLines()

void PerspectiveImageCtrl::DrawLines ( wxDC dc,
const std::vector< Line > &  lines 
)
private

Definition at line 489 of file PerspectiveImageCtrl.cpp.

References applyRot(), m_colour_selected, polygonPointSize, threshold(), and transform().

Referenced by OnPaint().

◆ DrawRect()

void PerspectiveImageCtrl::DrawRect ( wxDC dc,
const std::vector< hugin_utils::FDiff2D > &  rect 
)
private

Definition at line 466 of file PerspectiveImageCtrl.cpp.

References applyRot(), m_colour_selected, polygonPointSize, threshold(), and transform().

Referenced by OnPaint().

◆ GenerateRemappedImage()

void PerspectiveImageCtrl::GenerateRemappedImage ( const unsigned int  newWidth,
const unsigned int  newHeight 
)
private

◆ getCachedImage()

ImageCache::EntryPtr PerspectiveImageCtrl::getCachedImage ( )
inline

return pointer to ImageCache

Definition at line 124 of file PerspectiveImageCtrl.h.

References m_img.

Referenced by PerspectivePanel::OnFindLines().

◆ GetControlPoints()

HuginBase::CPVector PerspectiveImageCtrl::GetControlPoints ( const unsigned int  index)

return list of control points

Definition at line 576 of file PerspectiveImageCtrl.cpp.

References GetCP(), m_lines, m_rectPoints, m_showRect, and threshold().

Referenced by PerspectivePanel::GetPanorama().

◆ GetCP()

HuginBase::ControlPoint PerspectiveImageCtrl::GetCP ( const unsigned int  index,
const hugin_utils::FDiff2D p1,
const hugin_utils::FDiff2D p2 
)
private

return the HuginBase::ControlPoint, using index as image index, p1 and p2 as position, take image rotation into account to decide if control point is horizontal or vertical

Definition at line 547 of file PerspectiveImageCtrl.cpp.

References HuginBase::ControlPoint::image1Nr, m_imgRotation, ROT270, ROT90, threshold(), hugin_utils::TDiff2D< T >::x, HuginBase::ControlPoint::X, hugin_utils::TDiff2D< T >::y, and HuginBase::ControlPoint::Y.

Referenced by GetControlPoints().

◆ getCurrentRotation()

ImageRotation PerspectiveImageCtrl::getCurrentRotation ( )
inline

returns the current rotation of displayed image

Definition at line 112 of file PerspectiveImageCtrl.h.

References m_imgRotation.

◆ GetNearestLine()

int PerspectiveImageCtrl::GetNearestLine ( const hugin_utils::FDiff2D p)
private

return index of nearest line or -1 if the point is too far from all lines

Definition at line 873 of file PerspectiveImageCtrl.cpp.

References GetDistance(), getScaleFactor(), m_lines, maxSelectionDistance, and threshold().

Referenced by OnLeftMouseDown(), and OnRightMouseUp().

◆ GetNearestLinePoint()

int PerspectiveImageCtrl::GetNearestLinePoint ( const hugin_utils::FDiff2D p,
bool isStart 
)
private

return index of nearest line or -1 if the point to far from line

Parameters
ppoint for testing
isStart(out): return true if the pos is near the start of the line, otherwise false, unchanged if not line is near the given point*

Definition at line 827 of file PerspectiveImageCtrl.cpp.

References getScaleFactor(), m_lines, maxSelectionDistance, hugin_utils::TDiff2D< T >::squareDistance(), and threshold().

Referenced by OnLeftMouseDown().

◆ GetNearestRectangleLine()

int PerspectiveImageCtrl::GetNearestRectangleLine ( const hugin_utils::FDiff2D p)
private

return index of nearest rectangle line or -1 if the point is too far from the rectangle lines

Definition at line 790 of file PerspectiveImageCtrl.cpp.

References GetDistance(), getScaleFactor(), m_rectPoints, maxSelectionDistance, and threshold().

Referenced by OnLeftMouseDown().

◆ GetNearestRectanglePoint()

int PerspectiveImageCtrl::GetNearestRectanglePoint ( const hugin_utils::FDiff2D p)
private

return index of nearest rectangle point or -1 if the point is too far from rectangle

Definition at line 767 of file PerspectiveImageCtrl.cpp.

References getScaleFactor(), m_rectPoints, maxSelectionDistance, hugin_utils::TDiff2D< T >::squareDistance(), and threshold().

Referenced by OnLeftMouseDown().

◆ getScale()

double PerspectiveImageCtrl::getScale ( ) const

return scale factor, 0 for autoscale

Definition at line 917 of file PerspectiveImageCtrl.cpp.

References m_fitToWindow, and m_scaleFactor.

◆ getScaleFactor()

double PerspectiveImageCtrl::getScaleFactor ( ) const
protected

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

Definition at line 941 of file PerspectiveImageCtrl.cpp.

References m_scaleFactor.

Referenced by GetNearestLine(), GetNearestLinePoint(), GetNearestRectangleLine(), GetNearestRectanglePoint(), invtransform(), invtransform(), rescaleImage(), scale(), scale(), transform(), and transform().

◆ invtransform() [1/3]

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

◆ invtransform() [2/3]

double PerspectiveImageCtrl::invtransform ( double  x) const
inlineprivate

Definition at line 212 of file PerspectiveImageCtrl.h.

References getScaleFactor(), and PerspectiveOffset.

◆ invtransform() [3/3]

int PerspectiveImageCtrl::invtransform ( int  x) const
inlineprivate

translate screen coordinates to image coordinates, considers additional added border

Definition at line 208 of file PerspectiveImageCtrl.h.

References getScaleFactor(), and PerspectiveOffset.

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

◆ IsInsideRect()

bool PerspectiveImageCtrl::IsInsideRect ( const hugin_utils::FDiff2D p)
private

return true, if the point p is inside the rect

Definition at line 813 of file PerspectiveImageCtrl.cpp.

References m_rectPoints, threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by OnLeftMouseDown().

◆ IsOriginalShown()

bool PerspectiveImageCtrl::IsOriginalShown ( ) const
inline

◆ OnCaptureLost()

void PerspectiveImageCtrl::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 446 of file PerspectiveImageCtrl.cpp.

References OnKillFocus(), and threshold().

Referenced by Create().

◆ OnKillFocus()

void PerspectiveImageCtrl::OnKillFocus ( wxFocusEvent e)

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

Definition at line 452 of file PerspectiveImageCtrl.cpp.

References threshold().

Referenced by Create(), and OnCaptureLost().

◆ OnLeftMouseDown()

void PerspectiveImageCtrl::OnLeftMouseDown ( wxMouseEvent mouse)

◆ OnLeftMouseUp()

void PerspectiveImageCtrl::OnLeftMouseUp ( wxMouseEvent mouse)

◆ OnMiddleMouseDown()

void PerspectiveImageCtrl::OnMiddleMouseDown ( wxMouseEvent mouse)

event handler for middle mouse button, start scrolling

Definition at line 408 of file PerspectiveImageCtrl.cpp.

References m_editorState, m_middleMouseScroll, m_scrollPos, m_showRemappedImage, SHOW_IMAGE, and threshold().

Referenced by Create().

◆ OnMiddleMouseUp()

void PerspectiveImageCtrl::OnMiddleMouseUp ( wxMouseEvent mouse)

event handler for middle mouse button, end scrolling

Definition at line 433 of file PerspectiveImageCtrl.cpp.

References m_middleMouseScroll, m_showRemappedImage, and threshold().

Referenced by Create().

◆ OnMouseMove()

void PerspectiveImageCtrl::OnMouseMove ( wxMouseEvent mouse)

◆ OnPaint()

void PerspectiveImageCtrl::OnPaint ( wxPaintEvent e)

◆ OnRightMouseUp()

void PerspectiveImageCtrl::OnRightMouseUp ( wxMouseEvent mouse)

event handler when right mouse button is released

Definition at line 381 of file PerspectiveImageCtrl.cpp.

References applyRotInv(), DEBUG_DEBUG, GetNearestLine(), invtransform(), m_editorState, m_lines, m_middleMouseScroll, m_showRect, m_showRemappedImage, SHOW_IMAGE, and threshold().

Referenced by Create().

◆ OnSize()

void PerspectiveImageCtrl::OnSize ( wxSizeEvent e)
protected

handler called when size of control was changed

Definition at line 630 of file PerspectiveImageCtrl.cpp.

References GenerateRemappedImage(), m_fitToWindow, m_imageFilename, m_showRemappedImage, and setScale().

Referenced by Create().

◆ RemoveLines()

void PerspectiveImageCtrl::RemoveLines ( )

remove all lines from the list

Definition at line 624 of file PerspectiveImageCtrl.cpp.

References m_lines.

Referenced by PerspectivePanel::OnRemoveLines().

◆ rescaleImage()

void PerspectiveImageCtrl::rescaleImage ( )
protected

◆ scale() [1/2]

double PerspectiveImageCtrl::scale ( double  x) const
inlineprivate

Definition at line 187 of file PerspectiveImageCtrl.h.

References getScaleFactor().

◆ scale() [2/2]

int PerspectiveImageCtrl::scale ( int  x) const
inlineprivate

helper function for scale, offset and rotation

scale of width/height

Definition at line 183 of file PerspectiveImageCtrl.h.

References getScaleFactor().

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

◆ setImage()

void PerspectiveImageCtrl::setImage ( const std::string &  filename,
ImageRotation  rot 
)

set the current image and mask list, this loads also the image from cache

Definition at line 62 of file PerspectiveImageCtrl.cpp.

References m_bitmap, m_editorState, m_imageFilename, m_img, m_imgRotation, m_lines, m_realSize, m_rectPoints, m_showRemappedImage, NO_IMAGE, rescaleImage(), ROT0, SHOW_IMAGE, and threshold().

Referenced by PerspectivePanel::SetImage().

◆ SetLineColour()

void PerspectiveImageCtrl::SetLineColour ( wxColour  newColour)

sets the colour for the lines

Definition at line 460 of file PerspectiveImageCtrl.cpp.

References m_colour_selected, and threshold().

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

◆ setOriginalMode()

void PerspectiveImageCtrl::setOriginalMode ( )

show the original images with selected zoom ration, the mouse handlers are activated

Definition at line 607 of file PerspectiveImageCtrl.cpp.

References m_showRemappedImage, and UpdateVirtualSize().

Referenced by PerspectivePanel::OnPreview().

◆ SetRectMode()

void PerspectiveImageCtrl::SetRectMode ( bool  newMode)

set line or rect mode

Definition at line 567 of file PerspectiveImageCtrl.cpp.

References m_showRect, and threshold().

Referenced by PerspectivePanel::OnModeChanged().

◆ SetRemappedMode()

void PerspectiveImageCtrl::SetRemappedMode ( const HuginBase::Panorama pano)

set the panorama object for remapping, the mouse handler are deactivated

Definition at line 598 of file PerspectiveImageCtrl.cpp.

References HuginBase::Panorama::duplicate(), GenerateRemappedImage(), m_pano, m_showRemappedImage, and threshold().

Referenced by PerspectivePanel::OnPreview().

◆ setScale()

void PerspectiveImageCtrl::setScale ( double  factor)

set the scaling factor for mask editing display.

Parameters
factorzoom factor, 0 means fit to window.

Definition at line 896 of file PerspectiveImageCtrl.cpp.

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

Referenced by PerspectivePanel::Create(), OnSize(), and PerspectivePanel::OnZoom().

◆ transform() [1/3]

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

◆ transform() [2/3]

double PerspectiveImageCtrl::transform ( double  x) const
inlineprivate

Definition at line 196 of file PerspectiveImageCtrl.h.

References getScaleFactor(), and PerspectiveOffset.

◆ transform() [3/3]

int PerspectiveImageCtrl::transform ( int  x) const
inlineprivate

convert image coordinate to screen coordinates, considers additional added border

Definition at line 192 of file PerspectiveImageCtrl.h.

References getScaleFactor(), and PerspectiveOffset.

Referenced by DrawLines(), DrawRect(), and transform().

◆ UpdateVirtualSize()

void PerspectiveImageCtrl::UpdateVirtualSize ( )
protected

update the virtual size of the control, necessary for correctly display the scrollbars

Definition at line 713 of file PerspectiveImageCtrl.cpp.

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

Referenced by rescaleImage(), and setOriginalMode().

Member Data Documentation

◆ m_bitmap

wxBitmap PerspectiveImageCtrl::m_bitmap
private

Definition at line 169 of file PerspectiveImageCtrl.h.

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

◆ m_colour_selected

wxColor PerspectiveImageCtrl::m_colour_selected
private

Definition at line 301 of file PerspectiveImageCtrl.h.

Referenced by DrawLines(), DrawRect(), and SetLineColour().

◆ m_currentLine

std::vector<Line> PerspectiveImageCtrl::m_currentLine
private

Definition at line 304 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown(), OnLeftMouseUp(), OnMouseMove(), and OnPaint().

◆ m_currentPos

wxPoint PerspectiveImageCtrl::m_currentPos
private

Definition at line 294 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown().

◆ m_dragStartPos

wxPoint PerspectiveImageCtrl::m_dragStartPos
private

Definition at line 293 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().

◆ m_editorState

PerspectiveEditorState PerspectiveImageCtrl::m_editorState { NO_IMAGE }
private

◆ m_fitToWindow

bool PerspectiveImageCtrl::m_fitToWindow { false }
private

Definition at line 283 of file PerspectiveImageCtrl.h.

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

◆ m_imageFilename

std::string PerspectiveImageCtrl::m_imageFilename
private

Definition at line 174 of file PerspectiveImageCtrl.h.

Referenced by OnSize(), and setImage().

◆ m_imageSize

wxSize PerspectiveImageCtrl::m_imageSize
private

Definition at line 178 of file PerspectiveImageCtrl.h.

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

◆ m_img

ImageCache::EntryPtr PerspectiveImageCtrl::m_img
private

image cache entry for current image

Definition at line 288 of file PerspectiveImageCtrl.h.

Referenced by GenerateRemappedImage(), getCachedImage(), rescaleImage(), and setImage().

◆ m_imgRotation

ImageRotation PerspectiveImageCtrl::m_imgRotation { ROT0 }
private

◆ m_lines

std::vector<Line> PerspectiveImageCtrl::m_lines
private

◆ m_lineStartDrag

Line PerspectiveImageCtrl::m_lineStartDrag
private

Definition at line 305 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().

◆ m_middleMouseScroll

bool PerspectiveImageCtrl::m_middleMouseScroll { false }
private

◆ m_movingPoint

int PerspectiveImageCtrl::m_movingPoint { -1 }
private

Definition at line 295 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().

◆ m_pano

HuginBase::Panorama PerspectiveImageCtrl::m_pano
private

HuginBase::Panorama object for calculation of remapped image.

Definition at line 290 of file PerspectiveImageCtrl.h.

Referenced by GenerateRemappedImage(), and SetRemappedMode().

◆ m_realSize

wxSize PerspectiveImageCtrl::m_realSize
private

Definition at line 180 of file PerspectiveImageCtrl.h.

Referenced by applyRot(), applyRotInv(), ClipPos(), rescaleImage(), and setImage().

◆ m_rectPoints

std::vector<hugin_utils::FDiff2D> PerspectiveImageCtrl::m_rectPoints
private

◆ m_rectPointsStartDrag

std::vector<hugin_utils::FDiff2D> PerspectiveImageCtrl::m_rectPointsStartDrag
private

Definition at line 303 of file PerspectiveImageCtrl.h.

Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().

◆ m_remappedImg

wxBitmap PerspectiveImageCtrl::m_remappedImg
private

the remapped image as wxBitmap

Definition at line 171 of file PerspectiveImageCtrl.h.

Referenced by GenerateRemappedImage(), and OnPaint().

◆ m_scaleFactor

double PerspectiveImageCtrl::m_scaleFactor { 1.0 }
private

Definition at line 282 of file PerspectiveImageCtrl.h.

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

◆ m_scrollPos

wxPoint PerspectiveImageCtrl::m_scrollPos
private

Definition at line 298 of file PerspectiveImageCtrl.h.

Referenced by OnMiddleMouseDown(), and OnMouseMove().

◆ m_showRect

bool PerspectiveImageCtrl::m_showRect { true }
private

◆ m_showRemappedImage

bool PerspectiveImageCtrl::m_showRemappedImage { false }
private

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