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

brief description. More...

#include <CPImageCtrl.h>

Inheritance diagram for CPImageCtrl:
Inheritance graph

Public Types

enum  EditorState {
  NO_IMAGE =0 , NO_SELECTION , KNOWN_POINT_SELECTED , NEW_POINT_SELECTED ,
  NEW_LINE_CREATING , SELECT_DELETE_REGION
}
 state machine for selection process: More...
 
enum  ImageRotation { ROT0 =0 , ROT90 , ROT180 , ROT270 }
 image rotation. More...
 

Public Member Functions

 CPImageCtrl ()
 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 (CPEditorPanel *parent)
 
 ~CPImageCtrl ()
 dtor.
 
void setImage (const std::string &filename, ImageRotation rot)
 display img.
 
void setSameImage (bool sameImage)
 
void setTransforms (HuginBase::PTools::Transform *firstTrans, HuginBase::PTools::Transform *firstInvTrans, HuginBase::PTools::Transform *secondInvTrans)
 
void setMagTransforms (HuginBase::PTools::Transform *magTrans, HuginBase::PTools::Transform *magInvTrans)
 
HuginBase::PTools::TransformgetFirstTrans () const
 
HuginBase::PTools::TransformgetFirstInvTrans () const
 
HuginBase::PTools::TransformgetSecondInvTrans () const
 
void setCtrlPoint (const HuginBase::ControlPoint &cp, const bool mirrored)
 add control piont to internal cp list
 
void clearCtrlPointList ()
 clear internal control point list
 
void clearNewPoint ()
 clear new point
 
void setNewPoint (const hugin_utils::FDiff2D &p)
 set new point to a specific point
 
void selectPoint (unsigned int, bool scrollTo=true)
 select a point for usage
 
void deselect ()
 remove selection.
 
void mousePressLMBEvent (wxMouseEvent &mouse)
 
void mouseReleaseLMBEvent (wxMouseEvent &mouse)
 
void mousePressRMBEvent (wxMouseEvent &mouse)
 
void mouseReleaseRMBEvent (wxMouseEvent &mouse)
 
void mouseMoveEvent (wxMouseEvent &mouse)
 
void mousePressMMBEvent (wxMouseEvent &mouse)
 
void mouseReleaseMMBEvent (wxMouseEvent &mouse)
 
wxSize DoGetBestSize () const
 
void setScale (double factor)
 set the scaling factor for cp display.
 
double getScale ()
 return scale factor, 0 for autoscale
 
void showPosition (hugin_utils::FDiff2D point, bool warpPointer=false)
 Show point x, y.
 
void showSearchArea (bool show=true)
 show/hide the search area rectangle
 
void showTemplateArea (bool show=true)
 
hugin_utils::FDiff2D getNewPoint ()
 get the new point
 
void ScrollDelta (const wxPoint &delta)
 scroll the window by delta pixels
 
wxPoint MaxScrollDelta (wxPoint delta)
 calculate maximum delta that is allowed when scrolling
 
int scale (int x) const
 
double scale (double x) const
 
hugin_utils::FDiff2D scale (const hugin_utils::FDiff2D &p) const
 
wxPoint scale (const wxPoint &p) const
 
int invScale (int x) const
 
double invScale (double x) const
 
hugin_utils::FDiff2D invScale (const hugin_utils::FDiff2D &p) const
 
wxPoint invScale (const wxPoint &p) const
 
wxPoint roundP (const hugin_utils::FDiff2D &p) const
 
template<class T >
applyRot (const T &p) const
 
template<class T >
applyRotInv (const T &p) const
 
const bool GetMouseInWindow () const
 
const bool GetForceMagnifier () const
 
HuginBase::ImageCache::ImageCacheRGB8Ptr GetImg ()
 get pointer to image, for DisplayedControlPoint
 
wxBitmapGetMagBitmap (hugin_utils::FDiff2D point)
 draw the magnified view of a selected control point
 
const wxSize GetRealImageSize () const
 return the real size of the image in the control
 
const wxSize GetBitmapSize () const
 return the size of the drawn bitmap (possible rotate is applied)
 
void ShowLines (bool isShown)
 
bool IsShowingLines () const
 

Protected Member Functions

void OnImageLoaded (ImageCache::EntryPtr entry, std::string filename, bool load_small)
 
void OnSize (wxSizeEvent &e)
 
void OnSizeFinished (wxTimerEvent &e)
 
void OnKey (wxKeyEvent &e)
 
void OnKeyDown (wxKeyEvent &e)
 
void OnMouseLeave (wxMouseEvent &e)
 
void OnMouseEnter (wxMouseEvent &e)
 
void OnTimer (wxTimerEvent &e)
 
void OnScrollWin (wxScrollWinEvent &e)
 
void OnPaint (wxPaintEvent &e)
 paint event
 
bool emit (CPEvent &ev)
 helper func to emit a region
 
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 ()
 

Private Member Functions

void DrawSelectionRectangle (hugin_utils::FDiff2D pos1, hugin_utils::FDiff2D pos2)
 
EditorState isOccupied (wxPoint mousePos, const hugin_utils::FDiff2D &point, unsigned int &pointNr) const
 check if p is over a known point, if it is, pointNr contains the point
 

Private Attributes

wxBitmap bitmap
 
std::string imageFilename
 
wxSize imageSize
 
wxSize m_realSize
 
wxOverlay m_overlay
 
wxBitmap m_magImg
 
hugin_utils::FDiff2D m_magImgCenter
 
bool m_showLines { true }
 
wxTimer m_resizeTimer
 
std::vector< DisplayedControlPointm_points
 
wxCursorm_CPSelectCursor
 
wxCursorm_ScrollCursor
 
unsigned int selectedPointNr
 
DisplayedControlPoint m_selectedPoint
 
hugin_utils::FDiff2D newPoint
 
bool m_sameImage
 true, if in control point tab the same image is selected 2 times in this case a special treatment for creating line control points is activated
 
hugin_utils::FDiff2D rectStartPos
 
EditorState editState
 
HuginBase::PTools::Transformm_firstTrans
 
HuginBase::PTools::Transformm_firstInvTrans
 
HuginBase::PTools::Transformm_secondInvTrans
 
HuginBase::PTools::Transformm_magTrans
 
HuginBase::PTools::Transformm_magInvTrans
 
std::vector< wxColourpointColors
 
std::vector< wxColourtextColours
 
double scaleFactor
 
bool fitToWindow
 
bool m_showSearchArea
 
int m_searchRectWidth
 
hugin_utils::FDiff2D m_mousePos
 
wxPoint m_mouseScrollPos
 
bool m_showTemplateArea
 
int m_templateRectWidth
 
CPEditorPanelm_editPanel
 
ImageRotation m_imgRotation
 
ImageCache::EntryPtr m_img
 
ImageCache::RequestPtr m_imgRequest
 
bool m_mouseInWindow
 
bool m_forceMagnifier
 
wxTimer m_timer
 

Detailed Description

brief description.

What this does

Definition at line 169 of file CPImageCtrl.h.

Member Enumeration Documentation

◆ EditorState

state machine for selection process:

The select region is temporarily disabled.. maybe I find use
for it later on..

format of this list:
 - current state name
     - possible next state
       - conditions for next state

states:

 - NO_IMAGE
     - NO_SELECTION
       - an image has been inserted

 - NO_SELECTION nothing selected
     - KNOWN_POINT_SELECTED
       - mouse down on known point
       - set from outside
     - SELECT_DELETE_REGION
       - mouse down on image

 - KNOWN_POINT_SELECTED,
    a known point is selected and can be moved around.
    clients are notified about the movement, points can also
    be switched.

     - KNOWN_POINT_SELECTED
       - selection of another point
     - SELECT_DELETE_REGION
       - mouse down on image

 - NEW_POINT_SELECTED (can move new point), mouse up reports change,
        movement can be tracked
     - KNOWN_POINT_SELECTED
       - mouse down on known point
       - programatic change
     - SELECT_DELETE_REGION
       - mouse down on image

 - NEW_LINE_CREATING mouse up reports new line
         movement can be tracked

 - SELECT_DELETE_REGION user can draw rectangle inside which all cp should be removed
     - NO_SELECTION
Enumerator
NO_IMAGE 
NO_SELECTION 
KNOWN_POINT_SELECTED 
NEW_POINT_SELECTED 
NEW_LINE_CREATING 
SELECT_DELETE_REGION 

Definition at line 220 of file CPImageCtrl.h.

◆ ImageRotation

image rotation.

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

Enumerator
ROT0 
ROT90 
ROT180 
ROT270 

Definition at line 241 of file CPImageCtrl.h.

Constructor & Destructor Documentation

◆ CPImageCtrl()

CPImageCtrl::CPImageCtrl ( )
inline

ctor.

Definition at line 224 of file CPImageCtrl.h.

◆ ~CPImageCtrl()

CPImageCtrl::~CPImageCtrl ( )

dtor.

Definition at line 738 of file CPImageCtrl.cpp.

References DEBUG_TRACE, m_CPSelectCursor, and threshold().

Member Function Documentation

◆ applyRot()

template<class T >
T CPImageCtrl::applyRot ( const T &  p) const
inline

◆ applyRotInv()

template<class T >
T CPImageCtrl::applyRotInv ( const T &  p) const
inline

◆ calcAutoScaleFactor()

double CPImageCtrl::calcAutoScaleFactor ( wxSize  size)
protected

calculate new scale factor for this image

Definition at line 1526 of file CPImageCtrl.cpp.

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

Referenced by rescaleImage(), and setScale().

◆ clearCtrlPointList()

void CPImageCtrl::clearCtrlPointList ( )

clear internal control point list

Definition at line 1068 of file CPImageCtrl.cpp.

References editState, KNOWN_POINT_SELECTED, m_points, NO_SELECTION, selectedPointNr, and threshold().

Referenced by CPEditorPanel::UpdateDisplay().

◆ clearNewPoint()

void CPImageCtrl::clearNewPoint ( )

clear new point

Definition at line 1078 of file CPImageCtrl.cpp.

References DEBUG_TRACE, editState, NO_IMAGE, and NO_SELECTION.

Referenced by CPEditorPanel::changeState().

◆ Create()

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

◆ deselect()

void CPImageCtrl::deselect ( )

remove selection.

Definition at line 1104 of file CPImageCtrl.cpp.

References DEBUG_TRACE, editState, KNOWN_POINT_SELECTED, and NO_SELECTION.

Referenced by CPEditorPanel::ClearSelection(), and CPEditorPanel::OnCPListDeselect().

◆ DoGetBestSize()

wxSize CPImageCtrl::DoGetBestSize ( ) const

Definition at line 917 of file CPImageCtrl.cpp.

References imageSize, and threshold().

◆ DrawSelectionRectangle()

void CPImageCtrl::DrawSelectionRectangle ( hugin_utils::FDiff2D  pos1,
hugin_utils::FDiff2D  pos2 
)
private

Definition at line 1162 of file CPImageCtrl.cpp.

References applyRot(), m_overlay, roundP(), scale(), and threshold().

Referenced by mouseMoveEvent().

◆ emit()

bool CPImageCtrl::emit ( CPEvent ev)
protected

helper func to emit a region

Definition at line 1499 of file CPImageCtrl.cpp.

References threshold().

Referenced by mouseMoveEvent(), mousePressLMBEvent(), mouseReleaseLMBEvent(), mouseReleaseRMBEvent(), and OnKey().

◆ GetBitmapSize()

const wxSize CPImageCtrl::GetBitmapSize ( ) const

return the size of the drawn bitmap (possible rotate is applied)

Definition at line 1808 of file CPImageCtrl.cpp.

References bitmap.

Referenced by DisplayedControlPoint::DrawLine(), and DisplayedControlPoint::DrawLineSegment().

◆ getFirstInvTrans()

HuginBase::PTools::Transform * CPImageCtrl::getFirstInvTrans ( ) const
inline

◆ getFirstTrans()

HuginBase::PTools::Transform * CPImageCtrl::getFirstTrans ( ) const
inline

◆ GetForceMagnifier()

const bool CPImageCtrl::GetForceMagnifier ( ) const
inline

Definition at line 412 of file CPImageCtrl.h.

References m_forceMagnifier.

Referenced by DisplayedControlPoint::Draw().

◆ GetImg()

get pointer to image, for DisplayedControlPoint

Definition at line 1813 of file CPImageCtrl.cpp.

References m_img.

Referenced by DisplayedControlPoint::Draw().

◆ GetMagBitmap()

wxBitmap & CPImageCtrl::GetMagBitmap ( hugin_utils::FDiff2D  point)

◆ GetMouseInWindow()

const bool CPImageCtrl::GetMouseInWindow ( ) const
inline

Definition at line 411 of file CPImageCtrl.h.

References m_mouseInWindow.

Referenced by DisplayedControlPoint::Draw().

◆ getNewPoint()

hugin_utils::FDiff2D CPImageCtrl::getNewPoint ( )

get the new point

Definition at line 1710 of file CPImageCtrl.cpp.

References newPoint.

Referenced by CPEditorPanel::CreateNewPoint(), and CPEditorPanel::FineTuneNewPoint().

◆ GetRealImageSize()

const wxSize CPImageCtrl::GetRealImageSize ( ) const
inline

return the real size of the image in the control

Definition at line 418 of file CPImageCtrl.h.

References m_realSize.

Referenced by DisplayedControlPoint::DrawLine(), and DisplayedControlPoint::DrawLineSegment().

◆ getScale()

double CPImageCtrl::getScale ( )
inline

return scale factor, 0 for autoscale

Definition at line 289 of file CPImageCtrl.h.

References fitToWindow, and scaleFactor.

Referenced by DisplayedControlPoint::DrawTextMag(), and CPEditorPanel::OnZoom().

◆ getScaleFactor()

double CPImageCtrl::getScaleFactor ( ) const
protected

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

Definition at line 1546 of file CPImageCtrl.cpp.

References scaleFactor.

Referenced by invScale(), invScale(), OnPaint(), rescaleImage(), scale(), and scale().

◆ getSecondInvTrans()

HuginBase::PTools::Transform * CPImageCtrl::getSecondInvTrans ( ) const
inline

Definition at line 251 of file CPImageCtrl.h.

References m_secondInvTrans.

Referenced by DisplayedControlPoint::DrawLineSegment().

◆ Init()

void CPImageCtrl::Init ( CPEditorPanel parent)

Definition at line 731 of file CPImageCtrl.cpp.

References m_editPanel, m_magImgCenter, m_sameImage, and threshold().

Referenced by CPEditorPanel::Create().

◆ invScale() [1/4]

hugin_utils::FDiff2D CPImageCtrl::invScale ( const hugin_utils::FDiff2D p) const
inline

◆ invScale() [2/4]

wxPoint CPImageCtrl::invScale ( const wxPoint p) const
inline

Definition at line 352 of file CPImageCtrl.h.

References invScale(), and threshold().

◆ invScale() [3/4]

double CPImageCtrl::invScale ( double  x) const
inline

Definition at line 341 of file CPImageCtrl.h.

References getScaleFactor().

◆ invScale() [4/4]

int CPImageCtrl::invScale ( int  x) const
inline

◆ isOccupied()

CPImageCtrl::EditorState CPImageCtrl::isOccupied ( wxPoint  mousePos,
const hugin_utils::FDiff2D point,
unsigned int pointNr 
) const
private

check if p is over a known point, if it is, pointNr contains the point

Definition at line 1135 of file CPImageCtrl.cpp.

References KNOWN_POINT_SELECTED, m_points, NEW_POINT_SELECTED, and threshold().

Referenced by mouseMoveEvent(), and mousePressLMBEvent().

◆ IsShowingLines()

bool CPImageCtrl::IsShowingLines ( ) const

Definition at line 1823 of file CPImageCtrl.cpp.

References m_showLines.

Referenced by DisplayedControlPoint::Draw(), and DisplayedControlPoint::IsDrawingLine().

◆ MaxScrollDelta()

wxPoint CPImageCtrl::MaxScrollDelta ( wxPoint  delta)

calculate maximum delta that is allowed when scrolling

Definition at line 1753 of file CPImageCtrl.cpp.

References bitmap, and threshold().

Referenced by CPEditorPanel::OnCPEvent().

◆ mouseMoveEvent()

void CPImageCtrl::mouseMoveEvent ( wxMouseEvent mouse)

◆ mousePressLMBEvent()

void CPImageCtrl::mousePressLMBEvent ( wxMouseEvent mouse)

◆ mousePressMMBEvent()

void CPImageCtrl::mousePressMMBEvent ( wxMouseEvent mouse)

Definition at line 1435 of file CPImageCtrl.cpp.

References DEBUG_DEBUG, m_img, m_mouseScrollPos, and threshold().

Referenced by Create().

◆ mousePressRMBEvent()

void CPImageCtrl::mousePressRMBEvent ( wxMouseEvent mouse)

◆ mouseReleaseLMBEvent()

void CPImageCtrl::mouseReleaseLMBEvent ( wxMouseEvent mouse)

◆ mouseReleaseMMBEvent()

void CPImageCtrl::mouseReleaseMMBEvent ( wxMouseEvent mouse)

Definition at line 1428 of file CPImageCtrl.cpp.

References DEBUG_DEBUG.

Referenced by Create().

◆ mouseReleaseRMBEvent()

void CPImageCtrl::mouseReleaseRMBEvent ( wxMouseEvent mouse)

◆ OnImageLoaded()

void CPImageCtrl::OnImageLoaded ( ImageCache::EntryPtr  entry,
std::string  filename,
bool  load_small 
)
protected

Definition at line 971 of file CPImageCtrl.cpp.

References imageFilename, m_img, and rescaleImage().

Referenced by setImage().

◆ OnKey()

void CPImageCtrl::OnKey ( wxKeyEvent e)
protected

◆ OnKeyDown()

void CPImageCtrl::OnKeyDown ( wxKeyEvent e)
protected

Definition at line 1680 of file CPImageCtrl.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, m_img, m_mouseScrollPos, and threshold().

Referenced by Create().

◆ OnMouseEnter()

void CPImageCtrl::OnMouseEnter ( wxMouseEvent e)
protected

Definition at line 1699 of file CPImageCtrl.cpp.

References DEBUG_TRACE, huginApp::Get(), and m_mouseInWindow.

Referenced by Create().

◆ OnMouseLeave()

void CPImageCtrl::OnMouseLeave ( wxMouseEvent e)
protected

Definition at line 1691 of file CPImageCtrl.cpp.

References DEBUG_TRACE, m_mouseInWindow, and m_mousePos.

Referenced by Create().

◆ OnPaint()

void CPImageCtrl::OnPaint ( wxPaintEvent e)
protected

◆ OnScrollWin()

void CPImageCtrl::OnScrollWin ( wxScrollWinEvent e)
protected

Definition at line 1356 of file CPImageCtrl.cpp.

◆ OnSize()

void CPImageCtrl::OnSize ( wxSizeEvent e)
protected

Definition at line 1551 of file CPImageCtrl.cpp.

References imageFilename, and m_resizeTimer.

Referenced by Create().

◆ OnSizeFinished()

void CPImageCtrl::OnSizeFinished ( wxTimerEvent e)
protected

Definition at line 1560 of file CPImageCtrl.cpp.

References fitToWindow, imageFilename, and setScale().

Referenced by Create().

◆ OnTimer()

void CPImageCtrl::OnTimer ( wxTimerEvent e)
protected

Definition at line 1349 of file CPImageCtrl.cpp.

References m_forceMagnifier, and m_img.

Referenced by Create().

◆ rescaleImage()

void CPImageCtrl::rescaleImage ( )
protected

◆ roundP()

wxPoint CPImageCtrl::roundP ( const hugin_utils::FDiff2D p) const
inline

◆ scale() [1/4]

hugin_utils::FDiff2D CPImageCtrl::scale ( const hugin_utils::FDiff2D p) const
inline

◆ scale() [2/4]

wxPoint CPImageCtrl::scale ( const wxPoint p) const
inline

Definition at line 330 of file CPImageCtrl.h.

References scale(), and threshold().

◆ scale() [3/4]

double CPImageCtrl::scale ( double  x) const
inline

Definition at line 319 of file CPImageCtrl.h.

References getScaleFactor().

◆ scale() [4/4]

int CPImageCtrl::scale ( int  x) const
inline

◆ ScrollDelta()

void CPImageCtrl::ScrollDelta ( const wxPoint delta)

scroll the window by delta pixels

Definition at line 1787 of file CPImageCtrl.cpp.

References threshold().

Referenced by mouseMoveEvent(), CPEditorPanel::OnCPEvent(), and OnKey().

◆ selectPoint()

void CPImageCtrl::selectPoint ( unsigned int  nr,
bool  scrollTo = true 
)

◆ setCtrlPoint()

void CPImageCtrl::setCtrlPoint ( const HuginBase::ControlPoint cp,
const bool  mirrored 
)

add control piont to internal cp list

Definition at line 1060 of file CPImageCtrl.cpp.

References m_points, pointColors, textColours, and threshold().

Referenced by CPEditorPanel::UpdateDisplay().

◆ setImage()

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

◆ setMagTransforms()

void CPImageCtrl::setMagTransforms ( HuginBase::PTools::Transform magTrans,
HuginBase::PTools::Transform magInvTrans 
)

Definition at line 960 of file CPImageCtrl.cpp.

References m_magInvTrans, m_magTrans, and threshold().

Referenced by CPEditorPanel::Create().

◆ setNewPoint()

void CPImageCtrl::setNewPoint ( const hugin_utils::FDiff2D p)

◆ setSameImage()

void CPImageCtrl::setSameImage ( bool  sameImage)

Definition at line 966 of file CPImageCtrl.cpp.

References m_sameImage, and threshold().

Referenced by CPEditorPanel::UpdateDisplay().

◆ setScale()

void CPImageCtrl::setScale ( double  factor)

set the scaling factor for cp display.

Parameters
factorzoom factor, 0 means fit to window.

Definition at line 1509 of file CPImageCtrl.cpp.

References calcAutoScaleFactor(), DEBUG_DEBUG, fitToWindow, imageSize, rescaleImage(), and scaleFactor.

Referenced by OnSizeFinished(), and CPEditorPanel::OnZoom().

◆ setTransforms()

void CPImageCtrl::setTransforms ( HuginBase::PTools::Transform firstTrans,
HuginBase::PTools::Transform firstInvTrans,
HuginBase::PTools::Transform secondInvTrans 
)

Definition at line 953 of file CPImageCtrl.cpp.

References m_firstInvTrans, m_firstTrans, m_secondInvTrans, and threshold().

Referenced by CPEditorPanel::Create().

◆ ShowLines()

void CPImageCtrl::ShowLines ( bool  isShown)

Definition at line 1818 of file CPImageCtrl.cpp.

References m_showLines, and threshold().

Referenced by CPEditorPanel::Create(), and CPEditorPanel::OnShowLinesCheckbox().

◆ showPosition()

void CPImageCtrl::showPosition ( hugin_utils::FDiff2D  point,
bool  warpPointer = false 
)

Show point x, y.

Scrolls the windows so that x,y is shown in the center if warpPointer is true, the mouse pointer is moved to that position as well

Definition at line 1114 of file CPImageCtrl.cpp.

References applyRot(), DEBUG_DEBUG, hugin_utils::roundi(), scale(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by mouseReleaseLMBEvent(), selectPoint(), and setNewPoint().

◆ showSearchArea()

void CPImageCtrl::showSearchArea ( bool  show = true)

show/hide the search area rectangle

Definition at line 1732 of file CPImageCtrl.cpp.

References bitmap, DEBUG_DEBUG, HUGIN_FT_SEARCH_AREA_PERCENT, m_mousePos, m_realSize, m_searchRectWidth, m_showSearchArea, and threshold().

Referenced by CPEditorPanel::changeState().

◆ showTemplateArea()

void CPImageCtrl::showTemplateArea ( bool  show = true)

Member Data Documentation

◆ bitmap

wxBitmap CPImageCtrl::bitmap
private

◆ editState

EditorState CPImageCtrl::editState
private

◆ fitToWindow

bool CPImageCtrl::fitToWindow
private

Definition at line 501 of file CPImageCtrl.h.

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

◆ imageFilename

std::string CPImageCtrl::imageFilename
private

Definition at line 453 of file CPImageCtrl.h.

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

◆ imageSize

wxSize CPImageCtrl::imageSize
private

Definition at line 455 of file CPImageCtrl.h.

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

◆ m_CPSelectCursor

wxCursor* CPImageCtrl::m_CPSelectCursor
private

Definition at line 470 of file CPImageCtrl.h.

Referenced by Create(), mouseMoveEvent(), and ~CPImageCtrl().

◆ m_editPanel

CPEditorPanel* CPImageCtrl::m_editPanel
private

Definition at line 516 of file CPImageCtrl.h.

Referenced by Create(), Init(), and OnKey().

◆ m_firstInvTrans

HuginBase::PTools::Transform* CPImageCtrl::m_firstInvTrans
private

Definition at line 491 of file CPImageCtrl.h.

Referenced by getFirstInvTrans(), and setTransforms().

◆ m_firstTrans

HuginBase::PTools::Transform* CPImageCtrl::m_firstTrans
private

Definition at line 490 of file CPImageCtrl.h.

Referenced by getFirstTrans(), and setTransforms().

◆ m_forceMagnifier

bool CPImageCtrl::m_forceMagnifier
private

Definition at line 524 of file CPImageCtrl.h.

Referenced by Create(), GetForceMagnifier(), mousePressLMBEvent(), OnKey(), and OnTimer().

◆ m_img

ImageCache::EntryPtr CPImageCtrl::m_img
private

◆ m_imgRequest

ImageCache::RequestPtr CPImageCtrl::m_imgRequest
private

Definition at line 521 of file CPImageCtrl.h.

Referenced by setImage().

◆ m_imgRotation

ImageRotation CPImageCtrl::m_imgRotation
private

◆ m_magImg

wxBitmap CPImageCtrl::m_magImg
private

Definition at line 461 of file CPImageCtrl.h.

Referenced by GetMagBitmap().

◆ m_magImgCenter

hugin_utils::FDiff2D CPImageCtrl::m_magImgCenter
private

Definition at line 462 of file CPImageCtrl.h.

Referenced by Create(), GetMagBitmap(), Init(), and setImage().

◆ m_magInvTrans

HuginBase::PTools::Transform* CPImageCtrl::m_magInvTrans
private

Definition at line 495 of file CPImageCtrl.h.

Referenced by GetMagBitmap(), and setMagTransforms().

◆ m_magTrans

HuginBase::PTools::Transform* CPImageCtrl::m_magTrans
private

Definition at line 494 of file CPImageCtrl.h.

Referenced by GetMagBitmap(), and setMagTransforms().

◆ m_mouseInWindow

bool CPImageCtrl::m_mouseInWindow
private

Definition at line 523 of file CPImageCtrl.h.

Referenced by Create(), GetMouseInWindow(), OnMouseEnter(), and OnMouseLeave().

◆ m_mousePos

hugin_utils::FDiff2D CPImageCtrl::m_mousePos
private

◆ m_mouseScrollPos

wxPoint CPImageCtrl::m_mouseScrollPos
private

Definition at line 507 of file CPImageCtrl.h.

Referenced by mouseMoveEvent(), mousePressMMBEvent(), and OnKeyDown().

◆ m_overlay

wxOverlay CPImageCtrl::m_overlay
private

Definition at line 459 of file CPImageCtrl.h.

Referenced by DrawSelectionRectangle(), and mouseReleaseRMBEvent().

◆ m_points

std::vector<DisplayedControlPoint> CPImageCtrl::m_points
private

◆ m_realSize

wxSize CPImageCtrl::m_realSize
private

◆ m_resizeTimer

wxTimer CPImageCtrl::m_resizeTimer
private

Definition at line 466 of file CPImageCtrl.h.

Referenced by Create(), and OnSize().

◆ m_sameImage

bool CPImageCtrl::m_sameImage
private

true, if in control point tab the same image is selected 2 times in this case a special treatment for creating line control points is activated

Definition at line 481 of file CPImageCtrl.h.

Referenced by Create(), Init(), mousePressLMBEvent(), setImage(), and setSameImage().

◆ m_ScrollCursor

wxCursor* CPImageCtrl::m_ScrollCursor
private

Definition at line 471 of file CPImageCtrl.h.

◆ m_searchRectWidth

int CPImageCtrl::m_searchRectWidth
private

Definition at line 504 of file CPImageCtrl.h.

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

◆ m_secondInvTrans

HuginBase::PTools::Transform* CPImageCtrl::m_secondInvTrans
private

Definition at line 492 of file CPImageCtrl.h.

Referenced by getSecondInvTrans(), and setTransforms().

◆ m_selectedPoint

DisplayedControlPoint CPImageCtrl::m_selectedPoint
private

Definition at line 476 of file CPImageCtrl.h.

Referenced by mouseMoveEvent(), mousePressLMBEvent(), mouseReleaseLMBEvent(), and OnPaint().

◆ m_showLines

bool CPImageCtrl::m_showLines { true }
private

Definition at line 464 of file CPImageCtrl.h.

Referenced by IsShowingLines(), and ShowLines().

◆ m_showSearchArea

bool CPImageCtrl::m_showSearchArea
private

Definition at line 503 of file CPImageCtrl.h.

Referenced by Create(), mouseMoveEvent(), OnPaint(), and showSearchArea().

◆ m_showTemplateArea

bool CPImageCtrl::m_showTemplateArea
private

Definition at line 509 of file CPImageCtrl.h.

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

◆ m_templateRectWidth

int CPImageCtrl::m_templateRectWidth
private

Definition at line 510 of file CPImageCtrl.h.

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

◆ m_timer

wxTimer CPImageCtrl::m_timer
private

Definition at line 525 of file CPImageCtrl.h.

Referenced by Create(), mousePressLMBEvent(), mouseReleaseLMBEvent(), and OnKey().

◆ newPoint

hugin_utils::FDiff2D CPImageCtrl::newPoint
private

◆ pointColors

std::vector<wxColour> CPImageCtrl::pointColors
private

Definition at line 498 of file CPImageCtrl.h.

Referenced by Create(), and setCtrlPoint().

◆ rectStartPos

hugin_utils::FDiff2D CPImageCtrl::rectStartPos
private

Definition at line 484 of file CPImageCtrl.h.

Referenced by mouseMoveEvent(), mousePressRMBEvent(), and mouseReleaseRMBEvent().

◆ scaleFactor

double CPImageCtrl::scaleFactor
private

Definition at line 500 of file CPImageCtrl.h.

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

◆ selectedPointNr

unsigned int CPImageCtrl::selectedPointNr
private

◆ textColours

std::vector<wxColour> CPImageCtrl::textColours
private

Definition at line 499 of file CPImageCtrl.h.

Referenced by Create(), and setCtrlPoint().


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