Hugintrunk
0.1
|
Events to notify about new point / region / point change. More...
#include <CPImageCtrl.h>
Public Member Functions | |
CPEvent () | |
CPEvent (wxWindow *win, CPEventMode mode) | |
create a specific CPEvent More... | |
CPEvent (wxWindow *win, hugin_utils::FDiff2D &p) | |
a new point has been created. More... | |
CPEvent (wxWindow *win, unsigned int cpNr) | |
a point has been selected More... | |
CPEvent (wxWindow *win, unsigned int cpNr, const hugin_utils::FDiff2D &p) | |
a point has been moved More... | |
CPEvent (wxWindow *win, const hugin_utils::FDiff2D &p1, const hugin_utils::FDiff2D &p2) | |
delete region selected More... | |
CPEvent (wxWindow *win, CPEventMode mode, const hugin_utils::FDiff2D &p) | |
right mouse click More... | |
CPEvent (wxWindow *win, CPEventMode mode, const HuginBase::ControlPoint cp) | |
new control point More... | |
CPEvent (wxWindow *win, CPEventMode mode, size_t cpNr, const HuginBase::ControlPoint cp) | |
updated control point More... | |
virtual wxEvent * | Clone () const |
CPEventMode | getMode () |
accessor functions (they could check mode to see if a getXYZ() is allowed More... | |
const wxRect & | getRect () |
const hugin_utils::FDiff2D & | getPoint () |
unsigned int | getPointNr () |
const HuginBase::ControlPoint & | getControlPoint () |
Private Types | |
enum | CPEventMode { NONE, NEW_POINT_CHANGED, NEW_LINE_ADDED, POINT_SELECTED, POINT_CHANGED, RIGHT_CLICK, SCROLLED, DELETE_REGION_SELECTED, CANCELED } |
Private Attributes | |
CPEventMode | mode |
wxRect | region |
hugin_utils::FDiff2D | point |
HuginBase::ControlPoint | m_cp |
int | pointNr |
Events to notify about new point / region / point change.
Definition at line 40 of file CPImageCtrl.h.
|
private |
Enumerator | |
---|---|
NONE | |
NEW_POINT_CHANGED | |
NEW_LINE_ADDED | |
POINT_SELECTED | |
POINT_CHANGED | |
RIGHT_CLICK | |
SCROLLED | |
DELETE_REGION_SELECTED | |
CANCELED |
Definition at line 44 of file CPImageCtrl.h.
CPEvent::CPEvent | ( | ) |
Definition at line 59 of file CPImageCtrl.cpp.
References EVT_CPEVENT, mode, and NONE.
Referenced by Clone().
CPEvent::CPEvent | ( | wxWindow * | win, |
CPEventMode | mode | ||
) |
create a specific CPEvent
Definition at line 66 of file CPImageCtrl.cpp.
References EVT_CPEVENT, and mode.
CPEvent::CPEvent | ( | wxWindow * | win, |
hugin_utils::FDiff2D & | p | ||
) |
a new point has been created.
Definition at line 73 of file CPImageCtrl.cpp.
References EVT_CPEVENT, mode, NEW_POINT_CHANGED, and point.
CPEvent::CPEvent | ( | wxWindow * | win, |
unsigned int | cpNr | ||
) |
a point has been selected
Definition at line 81 of file CPImageCtrl.cpp.
References EVT_CPEVENT, mode, POINT_SELECTED, and pointNr.
CPEvent::CPEvent | ( | wxWindow * | win, |
unsigned int | cpNr, | ||
const hugin_utils::FDiff2D & | p | ||
) |
a point has been moved
Definition at line 89 of file CPImageCtrl.cpp.
References EVT_CPEVENT, mode, point, POINT_CHANGED, and pointNr.
CPEvent::CPEvent | ( | wxWindow * | win, |
const hugin_utils::FDiff2D & | p1, | ||
const hugin_utils::FDiff2D & | p2 | ||
) |
delete region selected
Definition at line 98 of file CPImageCtrl.cpp.
References DELETE_REGION_SELECTED, EVT_CPEVENT, 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 107 of file CPImageCtrl.cpp.
References EVT_CPEVENT, mode, and point.
CPEvent::CPEvent | ( | wxWindow * | win, |
CPEventMode | mode, | ||
const HuginBase::ControlPoint | cp | ||
) |
new control point
Definition at line 115 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 123 of file CPImageCtrl.cpp.
References EVT_CPEVENT, m_cp, mode, and pointNr.
|
virtual |
Definition at line 132 of file CPImageCtrl.cpp.
References CPEvent().
|
inline |
Definition at line 81 of file CPImageCtrl.h.
Referenced by CPEditorPanel::OnCPEvent().
|
inline |
accessor functions (they could check mode to see if a getXYZ() is allowed
Definition at line 69 of file CPImageCtrl.h.
References mode.
Referenced by CPEditorPanel::OnCPEvent().
|
inline |
Definition at line 75 of file CPImageCtrl.h.
References point.
Referenced by CPEditorPanel::OnCPEvent().
|
inline |
Definition at line 78 of file CPImageCtrl.h.
References pointNr.
Referenced by CPEditorPanel::OnCPEvent().
|
inline |
Definition at line 72 of file CPImageCtrl.h.
References region.
Referenced by CPEditorPanel::OnCPEvent().
|
private |
Definition at line 87 of file CPImageCtrl.h.
Referenced by CPEvent().
|
private |
Definition at line 82 of file CPImageCtrl.h.
|
private |
Definition at line 86 of file CPImageCtrl.h.
Referenced by CPEvent(), and getPoint().
|
private |
Definition at line 88 of file CPImageCtrl.h.
Referenced by CPEvent(), and getPointNr().
|
private |
Definition at line 85 of file CPImageCtrl.h.