|
Hugin trunk 0.1
|
image previewer for perspective correction More...
#include <PerspectiveImageCtrl.h>

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 > | |
| T | applyRot (const T &p) const |
| template<class T > | |
| 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::FDiff2D > | m_rectPoints |
| std::vector< hugin_utils::FDiff2D > | m_rectPointsStartDrag |
| std::vector< Line > | m_lines |
| std::vector< Line > | m_currentLine |
| Line | m_lineStartDrag |
image previewer for perspective correction
Definition at line 43 of file PerspectiveImageCtrl.h.
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.
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.
| 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().
Definition at line 226 of file PerspectiveImageCtrl.h.
References m_imgRotation, m_realSize, ROT0, ROT180, ROT270, and ROT90.
Referenced by DrawLines(), and DrawRect().
Definition at line 249 of file PerspectiveImageCtrl.h.
References m_imgRotation, m_realSize, ROT0, ROT180, ROT270, and ROT90.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), OnMouseMove(), and OnRightMouseUp().
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().
| void PerspectiveImageCtrl::ChangeRotation | ( | ImageRotation | newRot | ) |
Definition at line 113 of file PerspectiveImageCtrl.cpp.
References m_imgRotation, rescaleImage(), and threshold().
Referenced by PerspectivePanel::OnRotationChanged().
|
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().
| 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" |
||
| ) |
creates the control
Definition at line 39 of file PerspectiveImageCtrl.cpp.
References OnCaptureLost(), OnKillFocus(), OnLeftMouseDown(), OnLeftMouseUp(), OnMiddleMouseDown(), OnMiddleMouseUp(), OnMouseMove(), OnPaint(), OnRightMouseUp(), OnSize(), and threshold().
Referenced by PerspectivePanel::Create().
Definition at line 489 of file PerspectiveImageCtrl.cpp.
References applyRot(), m_colour_selected, polygonPointSize, threshold(), and transform().
Referenced by OnPaint().
|
private |
Definition at line 466 of file PerspectiveImageCtrl.cpp.
References applyRot(), m_colour_selected, polygonPointSize, threshold(), and transform().
Referenced by OnPaint().
|
private |
generates the remapped image suitable for wxBitmap
Definition at line 726 of file PerspectiveImageCtrl.cpp.
References HuginBase::Color::CorrectImage(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getROI(), HuginBase::Panorama::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), vigra_ext::INTERP_CUBIC, m_img, m_pano, m_remappedImg, scale(), HuginBase::PanoramaOptions::setWidth(), and threshold().
Referenced by OnSize(), and SetRemappedMode().
|
inline |
return pointer to ImageCache
Definition at line 124 of file PerspectiveImageCtrl.h.
References m_img.
Referenced by PerspectivePanel::OnFindLines().
| 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().
|
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().
|
inline |
returns the current rotation of displayed image
Definition at line 112 of file PerspectiveImageCtrl.h.
References m_imgRotation.
|
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().
|
private |
return index of nearest line or -1 if the point to far from line
| p | point 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().
|
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().
|
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().
| double PerspectiveImageCtrl::getScale | ( | ) | const |
return scale factor, 0 for autoscale
Definition at line 917 of file PerspectiveImageCtrl.cpp.
References m_fitToWindow, and m_scaleFactor.
|
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().
|
inlineprivate |
Definition at line 216 of file PerspectiveImageCtrl.h.
References invtransform(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Definition at line 212 of file PerspectiveImageCtrl.h.
References getScaleFactor(), and PerspectiveOffset.
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().
|
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().
|
inline |
Definition at line 78 of file PerspectiveImageCtrl.h.
References m_showRemappedImage.
Referenced by PerspectivePanel::OnCropChanged(), PerspectivePanel::OnModeChanged(), and PerspectivePanel::OnRotationChanged().
| 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().
| 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().
| void PerspectiveImageCtrl::OnLeftMouseDown | ( | wxMouseEvent & | mouse | ) |
event handler when left mouse button is pressed
Definition at line 193 of file PerspectiveImageCtrl.cpp.
References applyRotInv(), DEBUG_DEBUG, GetNearestLine(), GetNearestLinePoint(), GetNearestRectangleLine(), GetNearestRectanglePoint(), invtransform(), IsInsideRect(), LINE_CREATE, LINE_MOVING, LINE_POINT_MOVING, m_currentLine, m_currentPos, m_dragStartPos, m_editorState, m_lines, m_lineStartDrag, m_movingPoint, m_rectPoints, m_rectPointsStartDrag, m_showRect, m_showRemappedImage, PerspectiveImageCtrl::Line::Mirror(), POINT_MOVING, RECT_MOVING, SEGMENT_MOVING, SHOW_IMAGE, and threshold().
Referenced by Create().
| void PerspectiveImageCtrl::OnLeftMouseUp | ( | wxMouseEvent & | mouse | ) |
event handler when right mouse button is released
Definition at line 299 of file PerspectiveImageCtrl.cpp.
References applyRotInv(), ClipPos(), DEBUG_DEBUG, invtransform(), LINE_CREATE, LINE_MOVING, LINE_POINT_MOVING, m_currentLine, m_dragStartPos, m_editorState, m_lines, m_lineStartDrag, m_middleMouseScroll, m_movingPoint, m_rectPoints, m_rectPointsStartDrag, m_showRemappedImage, POINT_MOVING, RECT_MOVING, SEGMENT_MOVING, SHOW_IMAGE, and threshold().
Referenced by Create().
| 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().
| 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().
| void PerspectiveImageCtrl::OnMouseMove | ( | wxMouseEvent & | mouse | ) |
event handler when mouse is moving
Definition at line 125 of file PerspectiveImageCtrl.cpp.
References applyRotInv(), ClipPos(), invtransform(), LINE_CREATE, LINE_MOVING, LINE_POINT_MOVING, m_currentLine, m_dragStartPos, m_editorState, m_lineStartDrag, m_middleMouseScroll, m_movingPoint, m_rectPoints, m_rectPointsStartDrag, m_scrollPos, m_showRemappedImage, POINT_MOVING, RECT_MOVING, SEGMENT_MOVING, and threshold().
Referenced by Create().
| void PerspectiveImageCtrl::OnPaint | ( | wxPaintEvent & | e | ) |
drawing routine
Definition at line 508 of file PerspectiveImageCtrl.cpp.
References DrawLines(), DrawRect(), m_bitmap, m_currentLine, m_lines, m_rectPoints, m_remappedImg, m_showRect, m_showRemappedImage, PerspectiveOffset, scale(), and threshold().
Referenced by Create().
| 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().
|
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().
| void PerspectiveImageCtrl::RemoveLines | ( | ) |
remove all lines from the list
Definition at line 624 of file PerspectiveImageCtrl.cpp.
References m_lines.
Referenced by PerspectivePanel::OnRemoveLines().
|
protected |
rescale the image
Definition at line 647 of file PerspectiveImageCtrl.cpp.
References calcAutoScaleFactor(), HuginBase::Color::CorrectImage(), getScaleFactor(), imageCacheEntry2wxImage(), m_bitmap, m_editorState, m_fitToWindow, m_imageSize, m_img, m_imgRotation, m_realSize, m_scaleFactor, NO_IMAGE, PerspectiveOffset, ROT180, ROT270, ROT90, scale(), threshold(), and UpdateVirtualSize().
Referenced by ChangeRotation(), setImage(), and setScale().
Definition at line 187 of file PerspectiveImageCtrl.h.
References getScaleFactor().
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().
| 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().
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().
| 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().
set line or rect mode
Definition at line 567 of file PerspectiveImageCtrl.cpp.
References m_showRect, and threshold().
Referenced by PerspectivePanel::OnModeChanged().
| 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().
set the scaling factor for mask editing display.
| factor | zoom 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().
|
inlineprivate |
Definition at line 200 of file PerspectiveImageCtrl.h.
References threshold(), transform(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Definition at line 196 of file PerspectiveImageCtrl.h.
References getScaleFactor(), and PerspectiveOffset.
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().
|
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().
|
private |
Definition at line 169 of file PerspectiveImageCtrl.h.
Referenced by OnPaint(), rescaleImage(), and setImage().
|
private |
Definition at line 301 of file PerspectiveImageCtrl.h.
Referenced by DrawLines(), DrawRect(), and SetLineColour().
|
private |
Definition at line 304 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), OnMouseMove(), and OnPaint().
|
private |
Definition at line 294 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown().
|
private |
Definition at line 293 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().
|
private |
Definition at line 280 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), OnMiddleMouseDown(), OnMouseMove(), OnRightMouseUp(), rescaleImage(), and setImage().
Definition at line 283 of file PerspectiveImageCtrl.h.
Referenced by getScale(), OnSize(), rescaleImage(), and setScale().
|
private |
Definition at line 174 of file PerspectiveImageCtrl.h.
Referenced by OnSize(), and setImage().
|
private |
Definition at line 178 of file PerspectiveImageCtrl.h.
Referenced by rescaleImage(), setScale(), and UpdateVirtualSize().
|
private |
image cache entry for current image
Definition at line 288 of file PerspectiveImageCtrl.h.
Referenced by GenerateRemappedImage(), getCachedImage(), rescaleImage(), and setImage().
|
private |
Definition at line 176 of file PerspectiveImageCtrl.h.
Referenced by applyRot(), applyRotInv(), calcAutoScaleFactor(), ChangeRotation(), GetCP(), getCurrentRotation(), rescaleImage(), setImage(), and UpdateVirtualSize().
|
private |
Definition at line 304 of file PerspectiveImageCtrl.h.
Referenced by AddLines(), GetControlPoints(), GetNearestLine(), GetNearestLinePoint(), OnLeftMouseDown(), OnLeftMouseUp(), OnPaint(), OnRightMouseUp(), RemoveLines(), and setImage().
|
private |
Definition at line 305 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().
Definition at line 297 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseUp(), OnMiddleMouseDown(), OnMiddleMouseUp(), OnMouseMove(), and OnRightMouseUp().
|
private |
Definition at line 295 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().
|
private |
HuginBase::Panorama object for calculation of remapped image.
Definition at line 290 of file PerspectiveImageCtrl.h.
Referenced by GenerateRemappedImage(), and SetRemappedMode().
|
private |
Definition at line 180 of file PerspectiveImageCtrl.h.
Referenced by applyRot(), applyRotInv(), ClipPos(), rescaleImage(), and setImage().
|
private |
Definition at line 303 of file PerspectiveImageCtrl.h.
Referenced by GetControlPoints(), GetNearestRectangleLine(), GetNearestRectanglePoint(), IsInsideRect(), OnLeftMouseDown(), OnLeftMouseUp(), OnMouseMove(), OnPaint(), and setImage().
|
private |
Definition at line 303 of file PerspectiveImageCtrl.h.
Referenced by OnLeftMouseDown(), OnLeftMouseUp(), and OnMouseMove().
|
private |
the remapped image as wxBitmap
Definition at line 171 of file PerspectiveImageCtrl.h.
Referenced by GenerateRemappedImage(), and OnPaint().
|
private |
Definition at line 282 of file PerspectiveImageCtrl.h.
Referenced by getScale(), getScaleFactor(), rescaleImage(), and setScale().
|
private |
Definition at line 298 of file PerspectiveImageCtrl.h.
Referenced by OnMiddleMouseDown(), and OnMouseMove().
Definition at line 285 of file PerspectiveImageCtrl.h.
Referenced by GetControlPoints(), OnLeftMouseDown(), OnPaint(), OnRightMouseUp(), and SetRectMode().
Definition at line 284 of file PerspectiveImageCtrl.h.
Referenced by IsOriginalShown(), OnLeftMouseDown(), OnLeftMouseUp(), OnMiddleMouseDown(), OnMiddleMouseUp(), OnMouseMove(), OnPaint(), OnRightMouseUp(), OnSize(), setImage(), setOriginalMode(), and SetRemappedMode().