casa::PlotResizeEvent Class Reference

#include <PlotEvent.h>

Inheritance diagram for casa::PlotResizeEvent:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Event for when a canvas or plotter is resized.

Definition at line 280 of file PlotEvent.h.

Public Member Functions

 PlotResizeEvent (PlotCanvas *canvas, int oldWidth, int oldHeight, int newWidth, int newHeight)
 Canvas resize constructor, which takes the old and new sizes.
 PlotResizeEvent (Plotter *plotter, int oldWidth, int oldHeight, int newWidth, int newHeight)
 Plotter resize constructor, which takes the old and new sizes.
 ~PlotResizeEvent ()
 Destructor.
void * origin () const
 Overrides PlotEvent::origin().
PlotCanvascanvas () const
 Canvas that was resized, or NULL if it was a plotter.
Plotterplotter () const
 Plotter that was resize, or NULL if it was a canvas.
pair< int, int > oldSize () const
 Old size, in pixels.
pair< int, int > newSize () const
 New size, in pixels.

Protected Attributes

Plotterm_plotter
PlotCanvasm_canvas
pair< int, int > m_old
pair< int, int > m_new


Constructor & Destructor Documentation

casa::PlotResizeEvent::PlotResizeEvent ( PlotCanvas canvas,
int  oldWidth,
int  oldHeight,
int  newWidth,
int  newHeight 
)

Canvas resize constructor, which takes the old and new sizes.

casa::PlotResizeEvent::PlotResizeEvent ( Plotter plotter,
int  oldWidth,
int  oldHeight,
int  newWidth,
int  newHeight 
)

Plotter resize constructor, which takes the old and new sizes.

casa::PlotResizeEvent::~PlotResizeEvent (  ) 

Destructor.


Member Function Documentation

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

Overrides PlotEvent::origin().

Implements casa::PlotEvent.

Definition at line 294 of file PlotEvent.h.

References canvas(), and plotter().

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

Canvas that was resized, or NULL if it was a plotter.

Referenced by origin().

Plotter* casa::PlotResizeEvent::plotter (  )  const

Plotter that was resize, or NULL if it was a canvas.

Referenced by origin().

pair<int, int> casa::PlotResizeEvent::oldSize (  )  const

Old size, in pixels.

pair<int, int> casa::PlotResizeEvent::newSize (  )  const

New size, in pixels.


Member Data Documentation

Plotter* casa::PlotResizeEvent::m_plotter [protected]

Definition at line 312 of file PlotEvent.h.

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

Definition at line 313 of file PlotEvent.h.

pair<int, int> casa::PlotResizeEvent::m_old [protected]

Definition at line 314 of file PlotEvent.h.

pair<int, int> casa::PlotResizeEvent::m_new [protected]

Definition at line 315 of file PlotEvent.h.


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