casa::PlotWheelEvent Class Reference

#include <PlotEvent.h>

Inheritance diagram for casa::PlotWheelEvent:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Event for when the user scrolls the scroll wheel.

The scroll event contains a "delta" which is negative when the user scrolls back and positive when the user scrolls forward. The number indicates how many "clicks" the user scrolled.

Definition at line 185 of file PlotEvent.h.

Public Member Functions

 PlotWheelEvent (PlotCanvas *canvas, int delta, const PlotCoordinate &c)
 Constructor which takes the originating canvas, the wheel delta, and the location.
 ~PlotWheelEvent ()
 Destructor.
void * origin () const
 Overrides PlotEvent::origin().
PlotCanvascanvas () const
 Canvas that was scrolled upon.
int delta () const
 Scroll delta.
PlotCoordinate where () const
 Where the scroll happened.

Protected Attributes

PlotCanvasm_canvas
int m_delta
PlotCoordinate m_coord


Constructor & Destructor Documentation

casa::PlotWheelEvent::PlotWheelEvent ( PlotCanvas canvas,
int  delta,
const PlotCoordinate &  c 
)

Constructor which takes the originating canvas, the wheel delta, and the location.

casa::PlotWheelEvent::~PlotWheelEvent (  ) 

Destructor.


Member Function Documentation

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

Overrides PlotEvent::origin().

Implements casa::PlotEvent.

Definition at line 195 of file PlotEvent.h.

References canvas().

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

Canvas that was scrolled upon.

Referenced by origin().

int casa::PlotWheelEvent::delta (  )  const

Scroll delta.

PlotCoordinate casa::PlotWheelEvent::where (  )  const

Where the scroll happened.


Member Data Documentation

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

Definition at line 207 of file PlotEvent.h.

int casa::PlotWheelEvent::m_delta [protected]

Definition at line 208 of file PlotEvent.h.

PlotCoordinate casa::PlotWheelEvent::m_coord [protected]

Definition at line 209 of file PlotEvent.h.


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