#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) |
| void | clicked (double x, double y, int pos_x, int pos_y) |
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) |
| void | drawPolyline (short *x, short *y, PLINT npts) |
| void | drawPolygon (short *x, short *y, PLINT npts) |
| void | setColor (int r, int g, int b, double alpha) |
| void | setWidth (PLFLT r) |
| void | drawText (PLStream *pls, EscText *txt) |
| void | renderText (QPainter *p, struct TextStruct_ *s, double x_fact, double x_offset, double y_fact, double y_offset) |
| void | setSmooth (bool) |
| void | setNewSaveSize (double i_dSaveWidth, double i_dSaveHeight) |
| void | savePixmap (QString &name, const 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, bool useCosmeticPens=true) |
| void | captureMouse (double *xi, double *yi, double *xf, double *yf, bool horizontalLine=true) |
| void | clearBuffer () |
| double | getVirtualWidth () |
| double | getVirtualHeight () |
Protected Member Functions | |
| void | getPlotParameters (double &io_dXFact, double &io_dYFact, double &io_dXOffset, double &io_dYOffset, double i_dWidth=-1., double i_dHeight=-1.) |
| QFont | getFont (PLUNICODE code) |
| void | drawTextInPicture (QPainter *, const QString &) |
| QPicture | getTextPicture (PLUNICODE fci, PLUNICODE *text, int len, double chrht, double y_fact) |
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 | |
| bool showHorizontalLine | |
| int step | |
| double cursor_start_x | |
| double cursor_start_y | |
| double cursor_end_x | |
| double cursor_end_y | |
| } | cursorParameters |
| double | currentFontScale |
| double | currentFontSize |
| bool | overlined |
| bool | underlined |
| double | yOffset |
| double | xOffset |
| int | currentMode |
| 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, | |||
| bool | horizontalLine = true | |||
| ) |
| void QtPLWidget::clearBuffer | ( | ) |
| void QtPLWidget::clearWidget | ( | ) |
| void QtPLWidget::clicked | ( | double | x, | |
| double | y, | |||
| int | pos_x, | |||
| int | pos_y | |||
| ) | [signal] |
| void QtPLWidget::drawLine | ( | short | x1, | |
| short | y1, | |||
| short | x2, | |||
| short | y2 | |||
| ) |
| void QtPLWidget::drawPolygon | ( | short * | x, | |
| short * | y, | |||
| PLINT | npts | |||
| ) |
| void QtPLWidget::drawPolyline | ( | short * | x, | |
| short * | y, | |||
| PLINT | npts | |||
| ) |
| void QtPLWidget::drawTextInPicture | ( | QPainter * | p, | |
| const QString & | text | |||
| ) | [protected] |
| QFont QtPLWidget::getFont | ( | PLUNICODE | code | ) | [protected] |
| void QtPLWidget::getPlotParameters | ( | double & | io_dXFact, | |
| double & | io_dYFact, | |||
| double & | io_dXOffset, | |||
| double & | io_dYOffset, | |||
| double | i_dWidth = -1., |
|||
| double | i_dHeight = -1. | |||
| ) | [protected] |
| QPicture QtPLWidget::getTextPicture | ( | PLUNICODE | fci, | |
| PLUNICODE * | text, | |||
| int | len, | |||
| double | chrht, | |||
| double | y_fact | |||
| ) | [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, | |||
| bool | useCosmeticPens = true | |||
| ) |
| void QtPLWidget::print | ( | QPrinter & | printer | ) |
| void QtPLWidget::renderText | ( | QPainter * | p, | |
| struct TextStruct_ * | s, | |||
| double | x_fact, | |||
| double | x_offset, | |||
| double | y_fact, | |||
| double | y_offset | |||
| ) |
| void QtPLWidget::resized | ( | double | ratio | ) | [signal] |
| void QtPLWidget::resizeEvent | ( | QResizeEvent * | ) | [slot] |
| void QtPLWidget::savePixmap | ( | QString & | name, | |
| const char * | format, | |||
| int | width, | |||
| int | height, | |||
| int | compression | |||
| ) |
| void QtPLWidget::setColor | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| double | alpha | |||
| ) |
| void QtPLWidget::setNewSaveSize | ( | double | i_dSaveWidth, | |
| double | i_dSaveHeight | |||
| ) |
| void QtPLWidget::setSmooth | ( | bool | b | ) |
| void QtPLWidget::setWidth | ( | PLFLT | r | ) |
double QtPLWidget::currentFontScale [protected] |
double QtPLWidget::currentFontSize [protected] |
int QtPLWidget::currentMode [protected] |
| 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] |
bool QtPLWidget::overlined [protected] |
| int QtPLWidget::step |
bool QtPLWidget::underlined [protected] |
double QtPLWidget::xOffset [protected] |
double QtPLWidget::yOffset [protected] |
1.5.7