Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Private 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. More...
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 
void Init (CPEditorPanel *parent)
 
 ~CPImageCtrl ()
 dtor. More...
 
void setImage (const std::string &filename, ImageRotation rot)
 display img. More...
 
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 More...
 
void clearCtrlPointList ()
 clear internal control point list More...
 
void clearNewPoint ()
 clear new point More...
 
void setNewPoint (const hugin_utils::FDiff2D &p)
 set new point to a specific point More...
 
void selectPoint (unsigned int, bool scrollTo=true)
 select a point for usage More...
 
void deselect ()
 remove selection. More...
 
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. More...
 
double getScale ()
 return scale factor, 0 for autoscale More...
 
void showPosition (hugin_utils::FDiff2D point, bool warpPointer=false)
 Show point x, y. More...
 
void showSearchArea (bool show=true)
 show/hide the search area rectangle More...
 
void showTemplateArea (bool show=true)
 
hugin_utils::FDiff2D getNewPoint ()
 get the new point More...
 
void update ()
 initiate redraw More...
 
void ScrollDelta (const wxPoint &delta)
 scroll the window by delta pixels More...
 
wxPoint MaxScrollDelta (wxPoint delta)
 calculate maximum delta that is allowed when scrolling More...
 
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 More...
 
wxBitmap & GetMagBitmap (hugin_utils::FDiff2D point)
 draw the magnified view of a selected control point More...
 
const wxSize GetRealImageSize () const
 return the real size of the image in the control More...
 
const wxSize GetBitmapSize () const
 return the size of the drawn bitmap (possible rotate is applied) More...
 
virtual void OnDraw (wxDC &dc)
 
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 OnKey (wxKeyEvent &e)
 
void OnKeyDown (wxKeyEvent &e)
 
void OnMouseLeave (wxMouseEvent &e)
 
void OnMouseEnter (wxMouseEvent &e)
 
void OnTimer (wxTimerEvent &e)
 
void OnScrollWin (wxScrollWinEvent &e)
 
bool emit (CPEvent &ev)
 helper func to emit a region More...
 
double getScaleFactor () const
 get scale factor (calculates factor when fit to window is active) More...
 
double calcAutoScaleFactor (wxSize size)
 calculate new scale factor for this image More...
 
void rescaleImage ()
 

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

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 }
 
std::vector
< DisplayedControlPoint
m_points
 
wxCursor * m_CPSelectCursor
 
wxCursor * m_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 More...
 
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< wxColour > pointColors
 
std::vector< wxColour > textColours
 
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 186 of file CPImageCtrl.h.

Member Enumeration Documentation

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 237 of file CPImageCtrl.h.

image rotation.

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

Enumerator
ROT0 
ROT90 
ROT180 
ROT270 

Definition at line 258 of file CPImageCtrl.h.

Constructor & Destructor Documentation

CPImageCtrl::CPImageCtrl ( )
inline

ctor.

Definition at line 241 of file CPImageCtrl.h.

CPImageCtrl::~CPImageCtrl ( )

dtor.

Definition at line 744 of file CPImageCtrl.cpp.

References DEBUG_TRACE, and m_CPSelectCursor.

Member Function Documentation

template<class T >
T CPImageCtrl::applyRot ( const T &  p) const
inline
template<class T >
T CPImageCtrl::applyRotInv ( const T &  p) const
inline
double CPImageCtrl::calcAutoScaleFactor ( wxSize  size)
protected

calculate new scale factor for this image

Definition at line 1538 of file CPImageCtrl.cpp.

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

Referenced by rescaleImage(), and setScale().

void CPImageCtrl::clearCtrlPointList ( )

clear internal control point list

Definition at line 1078 of file CPImageCtrl.cpp.

References editState, KNOWN_POINT_SELECTED, m_points, NO_SELECTION, and selectedPointNr.

Referenced by CPEditorPanel::UpdateDisplay().

void CPImageCtrl::clearNewPoint ( )

clear new point

Definition at line 1088 of file CPImageCtrl.cpp.

References DEBUG_TRACE, editState, NO_IMAGE, and NO_SELECTION.

Referenced by CPEditorPanel::changeState(), and CPEditorPanel::NewPointChange().

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

Definition at line 672 of file CPImageCtrl.cpp.

References huginApp::Get(), huginApp::GetXRCPath(), and wxcode::NO_IMAGE.

CPImageCtrl::DECLARE_EVENT_TABLE ( )
private
void CPImageCtrl::deselect ( )

remove selection.

Definition at line 1114 of file CPImageCtrl.cpp.

References DEBUG_TRACE, editState, KNOWN_POINT_SELECTED, NO_SELECTION, and update().

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

wxSize CPImageCtrl::DoGetBestSize ( ) const

Definition at line 933 of file CPImageCtrl.cpp.

References imageSize.

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

Definition at line 1172 of file CPImageCtrl.cpp.

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

Referenced by mouseMoveEvent().

bool CPImageCtrl::emit ( CPEvent ev)
protected

helper func to emit a region

Definition at line 1511 of file CPImageCtrl.cpp.

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

const wxSize CPImageCtrl::GetBitmapSize ( ) const

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

Definition at line 1812 of file CPImageCtrl.cpp.

References bitmap.

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

HuginBase::PTools::Transform* CPImageCtrl::getFirstInvTrans ( ) const
inline
HuginBase::PTools::Transform* CPImageCtrl::getFirstTrans ( ) const
inline
const bool CPImageCtrl::GetForceMagnifier ( ) const
inline

Definition at line 432 of file CPImageCtrl.h.

References m_forceMagnifier.

Referenced by DisplayedControlPoint::Draw().

get pointer to image, for DisplayedControlPoint

Definition at line 1817 of file CPImageCtrl.cpp.

References m_img.

Referenced by DisplayedControlPoint::Draw().

wxBitmap & CPImageCtrl::GetMagBitmap ( hugin_utils::FDiff2D  point)
const bool CPImageCtrl::GetMouseInWindow ( ) const
inline

Definition at line 431 of file CPImageCtrl.h.

References m_mouseInWindow.

Referenced by DisplayedControlPoint::Draw().

hugin_utils::FDiff2D CPImageCtrl::getNewPoint ( )
const wxSize CPImageCtrl::GetRealImageSize ( ) const
inline

return the real size of the image in the control

Definition at line 438 of file CPImageCtrl.h.

References m_realSize.

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

double CPImageCtrl::getScale ( )
inline

return scale factor, 0 for autoscale

Definition at line 306 of file CPImageCtrl.h.

References fitToWindow, and scaleFactor.

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

double CPImageCtrl::getScaleFactor ( ) const
protected

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

Definition at line 1558 of file CPImageCtrl.cpp.

References scaleFactor.

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

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

Definition at line 268 of file CPImageCtrl.h.

References m_secondInvTrans.

Referenced by DisplayedControlPoint::DrawLineSegment().

void CPImageCtrl::Init ( CPEditorPanel parent)

Definition at line 737 of file CPImageCtrl.cpp.

References m_editPanel, m_magImgCenter, and m_sameImage.

Referenced by CPEditorPanel::Create().

int CPImageCtrl::invScale ( int  x) const
inline
double CPImageCtrl::invScale ( double  x) const
inline

Definition at line 361 of file CPImageCtrl.h.

References getScaleFactor().

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

Definition at line 372 of file CPImageCtrl.h.

References invScale().

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 1145 of file CPImageCtrl.cpp.

References KNOWN_POINT_SELECTED, m_points, and NEW_POINT_SELECTED.

Referenced by mouseMoveEvent(), and mousePressLMBEvent().

bool CPImageCtrl::IsShowingLines ( ) const

Definition at line 1827 of file CPImageCtrl.cpp.

References m_showLines.

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

wxPoint CPImageCtrl::MaxScrollDelta ( wxPoint  delta)

calculate maximum delta that is allowed when scrolling

Definition at line 1757 of file CPImageCtrl.cpp.

References bitmap.

Referenced by CPEditorPanel::OnCPEvent().

void CPImageCtrl::mouseMoveEvent ( wxMouseEvent &  mouse)
void CPImageCtrl::mousePressLMBEvent ( wxMouseEvent &  mouse)
void CPImageCtrl::mousePressMMBEvent ( wxMouseEvent &  mouse)

Definition at line 1439 of file CPImageCtrl.cpp.

References DEBUG_DEBUG, m_img, and m_mouseScrollPos.

void CPImageCtrl::mousePressRMBEvent ( wxMouseEvent &  mouse)
void CPImageCtrl::mouseReleaseLMBEvent ( wxMouseEvent &  mouse)
void CPImageCtrl::mouseReleaseMMBEvent ( wxMouseEvent &  mouse)

Definition at line 1432 of file CPImageCtrl.cpp.

References DEBUG_DEBUG.

void CPImageCtrl::mouseReleaseRMBEvent ( wxMouseEvent &  mouse)
void CPImageCtrl::OnDraw ( wxDC &  dc)
virtual
void CPImageCtrl::OnImageLoaded ( ImageCache::EntryPtr  entry,
std::string  filename,
bool  load_small 
)
protected

Definition at line 987 of file CPImageCtrl.cpp.

References imageFilename, m_img, and rescaleImage().

Referenced by setImage().

void CPImageCtrl::OnKey ( wxKeyEvent &  e)
protected
void CPImageCtrl::OnKeyDown ( wxKeyEvent &  e)
protected

Definition at line 1684 of file CPImageCtrl.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, m_img, and m_mouseScrollPos.

void CPImageCtrl::OnMouseEnter ( wxMouseEvent &  e)
protected

Definition at line 1703 of file CPImageCtrl.cpp.

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

void CPImageCtrl::OnMouseLeave ( wxMouseEvent &  e)
protected

Definition at line 1695 of file CPImageCtrl.cpp.

References DEBUG_TRACE, m_mouseInWindow, m_mousePos, and update().

void CPImageCtrl::OnScrollWin ( wxScrollWinEvent &  e)
protected

Definition at line 1360 of file CPImageCtrl.cpp.

References update().

void CPImageCtrl::OnSize ( wxSizeEvent &  e)
protected

Definition at line 1563 of file CPImageCtrl.cpp.

References DEBUG_TRACE, fitToWindow, imageFilename, and setScale().

void CPImageCtrl::OnTimer ( wxTimerEvent &  e)
protected

Definition at line 1353 of file CPImageCtrl.cpp.

References m_forceMagnifier, m_img, and update().

void CPImageCtrl::rescaleImage ( )
protected
wxPoint CPImageCtrl::roundP ( const hugin_utils::FDiff2D p) const
inline
int CPImageCtrl::scale ( int  x) const
inline
double CPImageCtrl::scale ( double  x) const
inline

Definition at line 339 of file CPImageCtrl.h.

References getScaleFactor().

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

Definition at line 350 of file CPImageCtrl.h.

References scale().

void CPImageCtrl::ScrollDelta ( const wxPoint &  delta)

scroll the window by delta pixels

Definition at line 1791 of file CPImageCtrl.cpp.

References update().

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

void CPImageCtrl::selectPoint ( unsigned int  nr,
bool  scrollTo = true 
)
void CPImageCtrl::setCtrlPoint ( const HuginBase::ControlPoint cp,
const bool  mirrored 
)

add control piont to internal cp list

Definition at line 1070 of file CPImageCtrl.cpp.

References m_points, pointColors, DisplayedControlPoint::SetColour(), DisplayedControlPoint::SetLabel(), and textColours.

Referenced by CPEditorPanel::UpdateDisplay().

void CPImageCtrl::setImage ( const std::string &  filename,
ImageRotation  rot 
)
void CPImageCtrl::setMagTransforms ( HuginBase::PTools::Transform magTrans,
HuginBase::PTools::Transform magInvTrans 
)

Definition at line 976 of file CPImageCtrl.cpp.

References m_magInvTrans, and m_magTrans.

Referenced by CPEditorPanel::Create().

void CPImageCtrl::setNewPoint ( const hugin_utils::FDiff2D p)
void CPImageCtrl::setSameImage ( bool  sameImage)

Definition at line 982 of file CPImageCtrl.cpp.

References m_sameImage.

Referenced by CPEditorPanel::UpdateDisplay().

void CPImageCtrl::setScale ( double  factor)

set the scaling factor for cp display.

Parameters
factorzoom factor, 0 means fit to window.

Definition at line 1521 of file CPImageCtrl.cpp.

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

Referenced by CPEditorPanel::estimateAndAddOtherPoint(), CPEditorPanel::NewPointChange(), OnSize(), and CPEditorPanel::OnZoom().

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

Definition at line 969 of file CPImageCtrl.cpp.

References m_firstInvTrans, m_firstTrans, and m_secondInvTrans.

Referenced by CPEditorPanel::Create().

void CPImageCtrl::ShowLines ( bool  isShown)

Definition at line 1822 of file CPImageCtrl.cpp.

References m_showLines.

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

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 1124 of file CPImageCtrl.cpp.

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

Referenced by CPEditorPanel::estimateAndAddOtherPoint(), mouseReleaseLMBEvent(), CPEditorPanel::NewPointChange(), selectPoint(), and setNewPoint().

void CPImageCtrl::showSearchArea ( bool  show = true)

show/hide the search area rectangle

Definition at line 1736 of file CPImageCtrl.cpp.

References bitmap, DEBUG_DEBUG, HUGIN_FT_SEARCH_AREA_PERCENT, m_mousePos, m_realSize, m_searchRectWidth, and m_showSearchArea.

Referenced by CPEditorPanel::changeState().

void CPImageCtrl::showTemplateArea ( bool  show = true)
void CPImageCtrl::update ( )

Member Data Documentation

wxBitmap CPImageCtrl::bitmap
private
EditorState CPImageCtrl::editState
private
bool CPImageCtrl::fitToWindow
private

Definition at line 518 of file CPImageCtrl.h.

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

std::string CPImageCtrl::imageFilename
private

Definition at line 472 of file CPImageCtrl.h.

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

wxSize CPImageCtrl::imageSize
private

Definition at line 474 of file CPImageCtrl.h.

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

wxCursor* CPImageCtrl::m_CPSelectCursor
private

Definition at line 487 of file CPImageCtrl.h.

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

CPEditorPanel* CPImageCtrl::m_editPanel
private

Definition at line 533 of file CPImageCtrl.h.

Referenced by Init(), and OnKey().

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

Definition at line 508 of file CPImageCtrl.h.

Referenced by getFirstInvTrans(), and setTransforms().

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

Definition at line 507 of file CPImageCtrl.h.

Referenced by getFirstTrans(), and setTransforms().

bool CPImageCtrl::m_forceMagnifier
private

Definition at line 541 of file CPImageCtrl.h.

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

ImageCache::EntryPtr CPImageCtrl::m_img
private
ImageCache::RequestPtr CPImageCtrl::m_imgRequest
private

Definition at line 538 of file CPImageCtrl.h.

Referenced by setImage().

ImageRotation CPImageCtrl::m_imgRotation
private
wxBitmap CPImageCtrl::m_magImg
private

Definition at line 480 of file CPImageCtrl.h.

Referenced by GetMagBitmap().

hugin_utils::FDiff2D CPImageCtrl::m_magImgCenter
private

Definition at line 481 of file CPImageCtrl.h.

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

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

Definition at line 512 of file CPImageCtrl.h.

Referenced by GetMagBitmap(), and setMagTransforms().

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

Definition at line 511 of file CPImageCtrl.h.

Referenced by GetMagBitmap(), and setMagTransforms().

bool CPImageCtrl::m_mouseInWindow
private

Definition at line 540 of file CPImageCtrl.h.

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

hugin_utils::FDiff2D CPImageCtrl::m_mousePos
private
wxPoint CPImageCtrl::m_mouseScrollPos
private

Definition at line 524 of file CPImageCtrl.h.

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

wxOverlay CPImageCtrl::m_overlay
private

Definition at line 478 of file CPImageCtrl.h.

Referenced by DrawSelectionRectangle(), and mouseReleaseRMBEvent().

std::vector<DisplayedControlPoint> CPImageCtrl::m_points
private
wxSize CPImageCtrl::m_realSize
private
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 498 of file CPImageCtrl.h.

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

wxCursor* CPImageCtrl::m_ScrollCursor
private

Definition at line 488 of file CPImageCtrl.h.

int CPImageCtrl::m_searchRectWidth
private

Definition at line 521 of file CPImageCtrl.h.

Referenced by OnDraw(), and showSearchArea().

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

Definition at line 509 of file CPImageCtrl.h.

Referenced by getSecondInvTrans(), and setTransforms().

DisplayedControlPoint CPImageCtrl::m_selectedPoint
private

Definition at line 493 of file CPImageCtrl.h.

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

bool CPImageCtrl::m_showLines { true }
private

Definition at line 483 of file CPImageCtrl.h.

Referenced by IsShowingLines(), and ShowLines().

bool CPImageCtrl::m_showSearchArea
private

Definition at line 520 of file CPImageCtrl.h.

Referenced by mouseMoveEvent(), OnDraw(), and showSearchArea().

bool CPImageCtrl::m_showTemplateArea
private

Definition at line 526 of file CPImageCtrl.h.

Referenced by OnDraw(), and showTemplateArea().

int CPImageCtrl::m_templateRectWidth
private

Definition at line 527 of file CPImageCtrl.h.

Referenced by OnDraw(), and showTemplateArea().

wxTimer CPImageCtrl::m_timer
private

Definition at line 542 of file CPImageCtrl.h.

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

hugin_utils::FDiff2D CPImageCtrl::newPoint
private
std::vector<wxColour> CPImageCtrl::pointColors
private

Definition at line 515 of file CPImageCtrl.h.

Referenced by setCtrlPoint().

hugin_utils::FDiff2D CPImageCtrl::rectStartPos
private

Definition at line 501 of file CPImageCtrl.h.

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

double CPImageCtrl::scaleFactor
private

Definition at line 517 of file CPImageCtrl.h.

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

unsigned int CPImageCtrl::selectedPointNr
private
std::vector<wxColour> CPImageCtrl::textColours
private

Definition at line 516 of file CPImageCtrl.h.

Referenced by setCtrlPoint().


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