CPEvent Class Reference

Events to notify about new point / region / point change. More...

#include <CPImageCtrl.h>

List of all members.

Public Member Functions

 CPEvent ()
 CPEvent (wxWindow *win, CPEventMode mode)
 create a specific CPEvent
 CPEvent (wxWindow *win, hugin_utils::FDiff2D &p)
 a new point has been created.
 CPEvent (wxWindow *win, unsigned int cpNr)
 a point has been selected
 CPEvent (wxWindow *win, unsigned int cpNr, const hugin_utils::FDiff2D &p)
 a point has been moved
 CPEvent (wxWindow *win, const hugin_utils::FDiff2D &p1, const hugin_utils::FDiff2D &p2)
 delete region selected
 CPEvent (wxWindow *win, CPEventMode mode, const hugin_utils::FDiff2D &p)
 right mouse click
 CPEvent (wxWindow *win, CPEventMode mode, const HuginBase::ControlPoint cp)
 new control point
 CPEvent (wxWindow *win, CPEventMode mode, size_t cpNr, const HuginBase::ControlPoint cp)
 updated control point
virtual wxEvent * Clone () const
CPEventMode getMode ()
 accessor functions (they could check mode to see if a getXYZ() is allowed
const wxRect & getRect ()
const hugin_utils::FDiff2DgetPoint ()
unsigned int getPointNr ()
const HuginBase::ControlPointgetControlPoint ()

Private Types

enum  CPEventMode {
  NONE, NEW_POINT_CHANGED, NEW_LINE_ADDED, POINT_SELECTED,
  POINT_CHANGED, RIGHT_CLICK, SCROLLED, DELETE_REGION_SELECTED
}

Private Attributes

CPEventMode mode
wxRect region
hugin_utils::FDiff2D point
HuginBase::ControlPoint m_cp
int pointNr


Detailed Description

Events to notify about new point / region / point change.

Definition at line 38 of file CPImageCtrl.h.


Member Enumeration Documentation

enum CPEvent::CPEventMode [private]
 

Enumeration values:
NONE 
NEW_POINT_CHANGED 
NEW_LINE_ADDED 
POINT_SELECTED 
POINT_CHANGED 
RIGHT_CLICK 
SCROLLED 
DELETE_REGION_SELECTED 

Definition at line 42 of file CPImageCtrl.h.

Referenced by getMode().


Constructor & Destructor Documentation

CPEvent::CPEvent  ) 
 

Definition at line 62 of file CPImageCtrl.cpp.

References EVT_CPEVENT, and mode.

Referenced by Clone().

CPEvent::CPEvent wxWindow *  win,
CPEventMode  mode
 

create a specific CPEvent

CPEvent::CPEvent wxWindow *  win,
hugin_utils::FDiff2D p
 

a new point has been created.

Definition at line 69 of file CPImageCtrl.cpp.

References EVT_CPEVENT, hugin_utils::FDiff2D, mode, and point.

CPEvent::CPEvent wxWindow *  win,
unsigned int  cpNr
 

a point has been selected

Definition at line 77 of file CPImageCtrl.cpp.

References EVT_CPEVENT, mode, and pointNr.

CPEvent::CPEvent wxWindow *  win,
unsigned int  cpNr,
const hugin_utils::FDiff2D p
 

a point has been moved

Definition at line 85 of file CPImageCtrl.cpp.

References EVT_CPEVENT, hugin_utils::FDiff2D, mode, point, and pointNr.

CPEvent::CPEvent wxWindow *  win,
const hugin_utils::FDiff2D p1,
const hugin_utils::FDiff2D p2
 

delete region selected

Definition at line 94 of file CPImageCtrl.cpp.

References EVT_CPEVENT, hugin_utils::FDiff2D, celeste::min(), mode, region, hugin_utils::roundi(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

CPEvent::CPEvent wxWindow *  win,
CPEventMode  mode,
const hugin_utils::FDiff2D p
 

right mouse click

Definition at line 102 of file CPImageCtrl.cpp.

References EVT_CPEVENT, hugin_utils::FDiff2D, mode, and point.

CPEvent::CPEvent wxWindow *  win,
CPEventMode  mode,
const HuginBase::ControlPoint  cp
 

new control point

Definition at line 110 of file CPImageCtrl.cpp.

References EVT_CPEVENT, m_cp, and mode.

CPEvent::CPEvent wxWindow *  win,
CPEventMode  mode,
size_t  cpNr,
const HuginBase::ControlPoint  cp
 

updated control point

Definition at line 118 of file CPImageCtrl.cpp.

References EVT_CPEVENT, m_cp, mode, and pointNr.


Member Function Documentation

wxEvent * CPEvent::Clone  )  const [virtual]
 

Definition at line 127 of file CPImageCtrl.cpp.

References CPEvent().

const HuginBase::ControlPoint& CPEvent::getControlPoint  )  [inline]
 

Definition at line 79 of file CPImageCtrl.h.

Referenced by CPEditorPanel::OnCPEvent().

CPEventMode CPEvent::getMode  )  [inline]
 

accessor functions (they could check mode to see if a getXYZ() is allowed

Definition at line 67 of file CPImageCtrl.h.

References CPEventMode.

Referenced by CPEditorPanel::OnCPEvent().

const hugin_utils::FDiff2D& CPEvent::getPoint  )  [inline]
 

Definition at line 73 of file CPImageCtrl.h.

References hugin_utils::FDiff2D.

Referenced by CPEditorPanel::OnCPEvent().

unsigned int CPEvent::getPointNr  )  [inline]
 

Definition at line 76 of file CPImageCtrl.h.

Referenced by CPEditorPanel::OnCPEvent().

const wxRect& CPEvent::getRect  )  [inline]
 

Definition at line 70 of file CPImageCtrl.h.

Referenced by CPEditorPanel::OnCPEvent().


Member Data Documentation

HuginBase::ControlPoint CPEvent::m_cp [private]
 

Definition at line 85 of file CPImageCtrl.h.

Referenced by CPEvent().

CPEventMode CPEvent::mode [private]
 

Definition at line 82 of file CPImageCtrl.h.

Referenced by CPEvent().

hugin_utils::FDiff2D CPEvent::point [private]
 

Definition at line 84 of file CPImageCtrl.h.

Referenced by CPEvent().

int CPEvent::pointNr [private]
 

Definition at line 86 of file CPImageCtrl.h.

Referenced by CPEvent().

wxRect CPEvent::region [private]
 

Definition at line 83 of file CPImageCtrl.h.

Referenced by CPEvent().


The documentation for this class was generated from the following files:
Generated on Wed Jul 30 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1