#include <QtPLWidget.h>
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< BufferElement > | m_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 |
QtPLWidget::QtPLWidget | ( | int | i_iWidth = 500 , |
|
int | i_iHeight = 500 , |
|||
double | i_dSaveWidth = 500. , |
|||
double | i_dSaveHeight = 500. , |
|||
QWidget * | i_wiParent = 0 | |||
) |
QtPLWidget::~QtPLWidget | ( | ) |
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::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::setNewSaveSize | ( | double | i_dSaveWidth, | |
double | i_dSaveHeight | |||
) |
void QtPLWidget::setSmooth | ( | bool | b | ) |
void QtPLWidget::setSolid | ( | ) |
void QtPLWidget::setWidth | ( | PLFLT | r | ) |
double QtPLWidget::cursor_end_x |
double QtPLWidget::cursor_end_y |
double QtPLWidget::cursor_start_x |
double QtPLWidget::cursor_start_y |
struct { ... } QtPLWidget::cursorParameters [protected] |
bool QtPLWidget::m_bAwaitingRedraw [protected] |
QBrush QtPLWidget::m_brushCurrent [protected] |
double QtPLWidget::m_dAspectRatio [protected] |
double QtPLWidget::m_dSaveHeight [protected] |
double QtPLWidget::m_dSaveWidth [protected] |
PLFLT QtPLWidget::m_dVirtualHeight [protected] |
PLFLT QtPLWidget::m_dVirtualWidth [protected] |
int QtPLWidget::m_iOldSize [protected] |
int QtPLWidget::m_iPreviousHeight [protected] |
int QtPLWidget::m_iPreviousWidth [protected] |
std::list<BufferElement> QtPLWidget::m_listBuffer [protected] |
QPainter* QtPLWidget::m_painterP [protected] |
QPen QtPLWidget::m_penCurrent [protected] |
QPixmap* QtPLWidget::m_pixPixmap [protected] |
int QtPLWidget::step |