QtPLWidget Class Reference

#include <QtPLWidget.h>

List of all members.

Public Slots

void paintEvent (QPaintEvent *)
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void resizeEvent (QResizeEvent *)

Signals

void resized (double ratio)

Public Member Functions

 QtPLWidget (int i_iWidth=500, int i_iHeight=500, double i_dSaveWidth=500., double i_dSaveHeight=500., QWidget *i_wiParent=0)
 ~QtPLWidget ()
void clearWidget ()
void drawLine (short x1, short y1, short x2, short y2, PLINT ymax)
void drawPolyline (short *x, short *y, PLINT npts, PLINT ymax)
void drawPolygon (short *x, short *y, PLINT npts, PLINT ymax)
void setColor (int r, int g, int b)
void setWidth (PLFLT r)
void setDashed (PLINT nms, PLINT *mark, PLINT *space)
void setSolid ()
void setSmooth (bool)
void setNewSaveSize (double i_dSaveWidth, double i_dSaveHeight)
void savePixmap (QString &name, char *format, int width, int height, int compression)
void print (QPrinter &printer)
void plot (QPainter *p, double x_fact, double y_fact, double x_offset, double y_offset)
void captureMouse (double *xi, double *yi, double *xf, double *yf)
void captureMouse2 (double *xi, double *yi, double *xf, double *yf)
void clearBuffer ()
double getVirtualWidth ()
double getVirtualHeight ()

Protected Member Functions

void getPlotParameters (double &io_dXFact, double &io_dYFact, double &io_dXOffset, double &io_dYOffset, double &io_dRatio, double i_dWidth=-1., double i_dHeight=-1.)

Protected Attributes

std::list< BufferElementm_listBuffer
int m_iPreviousWidth
int m_iPreviousHeight
int m_iOldSize
double m_dSaveWidth
double m_dSaveHeight
bool m_bAwaitingRedraw
QPen m_penCurrent
QBrush m_brushCurrent
QPainter * m_painterP
QPixmap * m_pixPixmap
PLFLT m_dVirtualWidth
PLFLT m_dVirtualHeight
double m_dAspectRatio
struct {
   bool   isTracking
   int   step
   double   cursor_start_x
   double   cursor_start_y
   double   cursor_end_x
   double   cursor_end_y
cursorParameters


Constructor & Destructor Documentation

QtPLWidget::QtPLWidget ( int  i_iWidth = 500,
int  i_iHeight = 500,
double  i_dSaveWidth = 500.,
double  i_dSaveHeight = 500.,
QWidget *  i_wiParent = 0 
)

QtPLWidget::~QtPLWidget (  ) 


Member Function Documentation

void QtPLWidget::captureMouse ( double *  xi,
double *  yi,
double *  xf,
double *  yf 
)

void QtPLWidget::captureMouse2 ( double *  xi,
double *  yi,
double *  xf,
double *  yf 
)

void QtPLWidget::clearBuffer (  ) 

void QtPLWidget::clearWidget (  ) 

void QtPLWidget::drawLine ( short  x1,
short  y1,
short  x2,
short  y2,
PLINT  ymax 
)

void QtPLWidget::drawPolygon ( short *  x,
short *  y,
PLINT  npts,
PLINT  ymax 
)

void QtPLWidget::drawPolyline ( short *  x,
short *  y,
PLINT  npts,
PLINT  ymax 
)

void QtPLWidget::getPlotParameters ( double &  io_dXFact,
double &  io_dYFact,
double &  io_dXOffset,
double &  io_dYOffset,
double &  io_dRatio,
double  i_dWidth = -1.,
double  i_dHeight = -1. 
) [protected]

double QtPLWidget::getVirtualHeight (  )  [inline]

double QtPLWidget::getVirtualWidth (  )  [inline]

void QtPLWidget::mouseMoveEvent ( QMouseEvent *  event  )  [slot]

void QtPLWidget::mousePressEvent ( QMouseEvent *  event  )  [slot]

void QtPLWidget::mouseReleaseEvent ( QMouseEvent *  event  )  [slot]

void QtPLWidget::paintEvent ( QPaintEvent *   )  [slot]

void QtPLWidget::plot ( QPainter *  p,
double  x_fact,
double  y_fact,
double  x_offset,
double  y_offset 
)

void QtPLWidget::print ( QPrinter &  printer  ) 

void QtPLWidget::resized ( double  ratio  )  [signal]

void QtPLWidget::resizeEvent ( QResizeEvent *   )  [slot]

void QtPLWidget::savePixmap ( QString &  name,
char *  format,
int  width,
int  height,
int  compression 
)

void QtPLWidget::setColor ( int  r,
int  g,
int  b 
)

void QtPLWidget::setDashed ( PLINT  nms,
PLINT mark,
PLINT space 
)

void QtPLWidget::setNewSaveSize ( double  i_dSaveWidth,
double  i_dSaveHeight 
)

void QtPLWidget::setSmooth ( bool  b  ) 

void QtPLWidget::setSolid (  ) 

void QtPLWidget::setWidth ( PLFLT  r  ) 


Member Data Documentation

struct { ... } QtPLWidget::cursorParameters [protected]

QBrush QtPLWidget::m_brushCurrent [protected]

double QtPLWidget::m_dAspectRatio [protected]

double QtPLWidget::m_dSaveHeight [protected]

double QtPLWidget::m_dSaveWidth [protected]

int QtPLWidget::m_iOldSize [protected]

std::list<BufferElement> QtPLWidget::m_listBuffer [protected]

QPainter* QtPLWidget::m_painterP [protected]

QPen QtPLWidget::m_penCurrent [protected]

QPixmap* QtPLWidget::m_pixPixmap [protected]


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

Generated on Tue Dec 9 16:55:38 2008 for QSAS by  doxygen 1.5.7