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

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

#include <CPImageCtrl.h>

Inheritance diagram for CPEvent:
Inheritance graph

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 wxRectgetRect ()
 
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 ,
  CANCELED
}
 

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

Member Enumeration Documentation

◆ CPEventMode

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.

Constructor & Destructor Documentation

◆ CPEvent() [1/9]

CPEvent::CPEvent ( )

Definition at line 56 of file CPImageCtrl.cpp.

References threshold().

Referenced by Clone().

◆ CPEvent() [2/9]

CPEvent::CPEvent ( wxWindow *  win,
CPEventMode  mode 
)

create a specific CPEvent

Definition at line 63 of file CPImageCtrl.cpp.

References mode, and threshold().

◆ CPEvent() [3/9]

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

a new point has been created.

Definition at line 70 of file CPImageCtrl.cpp.

References mode, NEW_POINT_CHANGED, point, and threshold().

◆ CPEvent() [4/9]

CPEvent::CPEvent ( wxWindow *  win,
unsigned int  cpNr 
)

a point has been selected

Definition at line 78 of file CPImageCtrl.cpp.

References mode, POINT_SELECTED, pointNr, and threshold().

◆ CPEvent() [5/9]

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

a point has been moved

Definition at line 86 of file CPImageCtrl.cpp.

References mode, point, POINT_CHANGED, pointNr, and threshold().

◆ CPEvent() [6/9]

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

◆ CPEvent() [7/9]

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

right mouse click

Definition at line 104 of file CPImageCtrl.cpp.

References mode, point, and threshold().

◆ CPEvent() [8/9]

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

new control point

Definition at line 112 of file CPImageCtrl.cpp.

References m_cp, mode, and threshold().

◆ CPEvent() [9/9]

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

updated control point

Definition at line 120 of file CPImageCtrl.cpp.

References m_cp, mode, pointNr, and threshold().

Member Function Documentation

◆ Clone()

wxEvent * CPEvent::Clone ( ) const
virtual

Definition at line 129 of file CPImageCtrl.cpp.

References CPEvent().

◆ getControlPoint()

const HuginBase::ControlPoint & CPEvent::getControlPoint ( )
inline

Definition at line 81 of file CPImageCtrl.h.

References m_cp.

Referenced by CPEditorPanel::OnCPEvent().

◆ getMode()

CPEventMode CPEvent::getMode ( )
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().

◆ getPoint()

const hugin_utils::FDiff2D & CPEvent::getPoint ( )
inline

Definition at line 75 of file CPImageCtrl.h.

References point.

Referenced by CPEditorPanel::OnCPEvent().

◆ getPointNr()

unsigned int CPEvent::getPointNr ( )
inline

Definition at line 78 of file CPImageCtrl.h.

References pointNr.

Referenced by CPEditorPanel::OnCPEvent().

◆ getRect()

const wxRect & CPEvent::getRect ( )
inline

Definition at line 72 of file CPImageCtrl.h.

References region.

Referenced by CPEditorPanel::OnCPEvent().

Member Data Documentation

◆ m_cp

HuginBase::ControlPoint CPEvent::m_cp
private

Definition at line 87 of file CPImageCtrl.h.

Referenced by CPEvent(), CPEvent(), and getControlPoint().

◆ mode

CPEventMode CPEvent::mode
private

Definition at line 84 of file CPImageCtrl.h.

Referenced by CPEvent(), CPEvent(), CPEvent(), CPEvent(), CPEvent(), CPEvent(), CPEvent(), CPEvent(), and getMode().

◆ point

hugin_utils::FDiff2D CPEvent::point
private

Definition at line 86 of file CPImageCtrl.h.

Referenced by CPEvent(), CPEvent(), CPEvent(), and getPoint().

◆ pointNr

int CPEvent::pointNr
private

Definition at line 88 of file CPImageCtrl.h.

Referenced by CPEvent(), CPEvent(), CPEvent(), and getPointNr().

◆ region

wxRect CPEvent::region
private

Definition at line 85 of file CPImageCtrl.h.

Referenced by CPEvent(), and getRect().


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