casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casa::PlotResizeEvent Class Reference

Event for when a canvas or plotter is resized. More...

#include <PlotEvent.h>

Inheritance diagram for casa::PlotResizeEvent:
casa::PlotEvent

Public Member Functions

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

Protected Attributes

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

Detailed Description

Event for when a canvas or plotter is resized.

Definition at line 278 of file PlotEvent.h.

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

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

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

Referenced by origin().

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

New size, in pixels.

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

Old size, in pixels.

void* casa::PlotResizeEvent::origin ( ) const
inlinevirtual

Overrides PlotEvent::origin().

Implements casa::PlotEvent.

Definition at line 292 of file PlotEvent.h.

References canvas(), and plotter().

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

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

Referenced by origin().

Member Data Documentation

PlotCanvas* casa::PlotResizeEvent::m_canvas
protected

Definition at line 311 of file PlotEvent.h.

std::pair<int, int> casa::PlotResizeEvent::m_new
protected

Definition at line 313 of file PlotEvent.h.

std::pair<int, int> casa::PlotResizeEvent::m_old
protected

Definition at line 312 of file PlotEvent.h.

Plotter* casa::PlotResizeEvent::m_plotter
protected

Definition at line 310 of file PlotEvent.h.


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