casa::PlotMouseEvent Class Reference

#include <PlotEvent.h>

Inheritance diagram for casa::PlotMouseEvent:

Inheritance graph
[legend]
Collaboration diagram for casa::PlotMouseEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

Generic mouse event where the canvas is the origin, and the type, button, and location of the event are provided.

Definition at line 80 of file PlotEvent.h.

Public Types

enum  Type {
  CLICK,
  PRESS,
  RELEASE,
  DRAG,
  MOVE
}
 Mouse event types. More...
enum  Button {
  SINGLE,
  DOUBLE,
  CONTEXT,
  MIDDLE
}
 Mouse button types that we care about. More...

Public Member Functions

 PlotMouseEvent (PlotCanvas *canvas, Type type, Button button, const PlotCoordinate &coord)
 Constructor which takes the originating canvas, type, button, and location.
virtual ~PlotMouseEvent ()
 Destructor.
void * origin () const
 Overrides PlotEvent::origin().
PlotCanvascanvas () const
 Canvas origin of event.
Type type () const
 Type of event.
Button button () const
 Button of event.
PlotCoordinate where () const
 Location of event.

Protected Attributes

PlotCanvasm_canvas
Type m_type
Button m_button
PlotCoordinate m_coord


Member Enumeration Documentation

enum casa::PlotMouseEvent::Type

Mouse event types.

Enumerator:
CLICK 
PRESS 
RELEASE 
DRAG 
MOVE 

Definition at line 83 of file PlotEvent.h.

enum casa::PlotMouseEvent::Button

Mouse button types that we care about.

Enumerator:
SINGLE 
DOUBLE 
CONTEXT 
MIDDLE 

Definition at line 92 of file PlotEvent.h.


Constructor & Destructor Documentation

casa::PlotMouseEvent::PlotMouseEvent ( PlotCanvas canvas,
Type  type,
Button  button,
const PlotCoordinate &  coord 
)

Constructor which takes the originating canvas, type, button, and location.

virtual casa::PlotMouseEvent::~PlotMouseEvent (  )  [virtual]

Destructor.


Member Function Documentation

void* casa::PlotMouseEvent::origin (  )  const [inline, virtual]

Overrides PlotEvent::origin().

Implements casa::PlotEvent.

Definition at line 108 of file PlotEvent.h.

References canvas().

PlotCanvas* casa::PlotMouseEvent::canvas (  )  const

Canvas origin of event.

Referenced by origin().

Type casa::PlotMouseEvent::type (  )  const

Type of event.

Button casa::PlotMouseEvent::button (  )  const

Button of event.

PlotCoordinate casa::PlotMouseEvent::where (  )  const

Location of event.


Member Data Documentation

PlotCanvas* casa::PlotMouseEvent::m_canvas [protected]

Definition at line 123 of file PlotEvent.h.

Type casa::PlotMouseEvent::m_type [protected]

Definition at line 124 of file PlotEvent.h.

Button casa::PlotMouseEvent::m_button [protected]

Definition at line 125 of file PlotEvent.h.

PlotCoordinate casa::PlotMouseEvent::m_coord [protected]

Definition at line 126 of file PlotEvent.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 27 21:28:19 2009 for NRAOCASA by  doxygen 1.5.1