PLplot  5.10.0
QtPLWidget Class Reference

#include "qt.h"

Inheritance diagram for QtPLWidget:
QtPLDriver QtExtWidget sipQtPLWidget sipQtExtWidget

List of all members.

Public Member Functions

 QtPLWidget (int i_iWidth=QT_DEFAULT_X, int i_iHeight=QT_DEFAULT_Y, QWidget *parent=0)
virtual ~QtPLWidget ()
void clearWidget ()
void clearBuffer ()
void drawArc (short x, short y, short width, short height, PLFLT angle1, PLFLT angle2, PLFLT rotate, bool fill)
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 setBackgroundColor (int r, int g, int b, double alpha)
void setGradient (int x1, int x2, int y1, int y2, unsigned char *r, unsigned char *g, unsigned char *b, PLFLT *alpha, PLINT ncol1)
void setWidthF (PLFLT r)
void drawText (EscText *txt)
void flush ()
void getCursorCmd (PLGraphicsIn *ptr)

Public Attributes

int pageNumber
int r
int g
int b
double alpha

Protected Slots

void mousePressEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void keyPressEvent (QKeyEvent *event)
void closeEvent (QCloseEvent *event)
void nextPage ()

Protected Member Functions

void resizeEvent (QResizeEvent *)
void paintEvent (QPaintEvent *)
void mouseEvent (QMouseEvent *event)
void getPlotParameters (double &io_dXFact, double &io_dYFact, double &io_dXOffset, double &io_dYOffset)
void doPlot (QPainter *p, double x_fact, double y_fact, double x_offset, double y_offset)
void renderText (QPainter *p, struct TextStruct_ *s, double x_fact, double x_offset, double y_fact, double y_offset)
void lookupButtonEvent (QMouseEvent *event)
void locate ()
void resetPensAndBrushes (QPainter *)

Protected Attributes

double m_dAspectRatio
QPixmap * m_pixPixmap
QLinkedList< BufferElementm_listBuffer
bool redrawFromLastFlush
bool redrawAll
QPen SolidPen
QPen NoPen
bool hasPen
QBrush SolidBrush
QLinkedList< BufferElement >
::const_iterator 
start_iterator
struct {
   int   r
   int   g
   int   b
   double   alpha
lastColour
struct {
   int   r
   int   g
   int   b
   double   alpha
bgColour
PLGraphicsIn gin
int locate_mode

Detailed Description

Definition at line 306 of file qt.h.


Constructor & Destructor Documentation

QtPLWidget::QtPLWidget ( int  i_iWidth = QT_DEFAULT_X,
int  i_iHeight = QT_DEFAULT_Y,
QWidget *  parent = 0 
)
virtual QtPLWidget::~QtPLWidget ( ) [virtual]

Member Function Documentation

void QtPLWidget::closeEvent ( QCloseEvent *  event) [protected, slot]

Reimplemented in sipQtPLWidget, and sipQtExtWidget.

void QtPLWidget::doPlot ( QPainter *  p,
double  x_fact,
double  y_fact,
double  x_offset,
double  y_offset 
) [protected]
void QtPLWidget::drawArc ( short  x,
short  y,
short  width,
short  height,
PLFLT  angle1,
PLFLT  angle2,
PLFLT  rotate,
bool  fill 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::drawLine ( short  x1,
short  y1,
short  x2,
short  y2 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::drawPolygon ( short *  x,
short *  y,
PLINT  npts 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::drawPolyline ( short *  x,
short *  y,
PLINT  npts 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::drawText ( EscText txt) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::getPlotParameters ( double &  io_dXFact,
double &  io_dYFact,
double &  io_dXOffset,
double &  io_dYOffset 
) [protected]
void QtPLWidget::keyPressEvent ( QKeyEvent *  event) [protected, slot]

Reimplemented in sipQtPLWidget, and sipQtExtWidget.

void QtPLWidget::locate ( ) [protected]
void QtPLWidget::lookupButtonEvent ( QMouseEvent *  event) [protected]
void QtPLWidget::mouseEvent ( QMouseEvent *  event) [protected]
void QtPLWidget::mouseMoveEvent ( QMouseEvent *  event) [protected, slot]

Reimplemented in QtExtWidget, sipQtPLWidget, and sipQtExtWidget.

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

Reimplemented in QtExtWidget, sipQtPLWidget, and sipQtExtWidget.

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

Reimplemented in QtExtWidget, sipQtPLWidget, and sipQtExtWidget.

void QtPLWidget::nextPage ( ) [protected, slot]
void QtPLWidget::paintEvent ( QPaintEvent *  ) [protected]

Reimplemented in QtExtWidget, sipQtPLWidget, and sipQtExtWidget.

void QtPLWidget::renderText ( QPainter *  p,
struct TextStruct_ s,
double  x_fact,
double  x_offset,
double  y_fact,
double  y_offset 
) [protected]
void QtPLWidget::resetPensAndBrushes ( QPainter *  ) [protected]
void QtPLWidget::resizeEvent ( QResizeEvent *  ) [protected]

Reimplemented in sipQtPLWidget, and sipQtExtWidget.

void QtPLWidget::setBackgroundColor ( int  r,
int  g,
int  b,
double  alpha 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::setColor ( int  r,
int  g,
int  b,
double  alpha 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::setGradient ( int  x1,
int  x2,
int  y1,
int  y2,
unsigned char *  r,
unsigned char *  g,
unsigned char *  b,
PLFLT alpha,
PLINT  ncol1 
) [virtual]

Reimplemented from QtPLDriver.

void QtPLWidget::setWidthF ( PLFLT  r) [virtual]

Reimplemented from QtPLDriver.


Member Data Documentation

Definition at line 373 of file qt.h.

Definition at line 372 of file qt.h.

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

Definition at line 371 of file qt.h.

Definition at line 384 of file qt.h.

bool QtPLWidget::hasPen [protected]

Definition at line 362 of file qt.h.

struct { ... } QtPLWidget::lastColour [protected]
int QtPLWidget::locate_mode [protected]

Definition at line 385 of file qt.h.

double QtPLWidget::m_dAspectRatio [protected]

Definition at line 350 of file qt.h.

QLinkedList<BufferElement> QtPLWidget::m_listBuffer [protected]

Definition at line 353 of file qt.h.

QPixmap* QtPLWidget::m_pixPixmap [protected]

Definition at line 351 of file qt.h.

QPen QtPLWidget::NoPen [protected]

Definition at line 361 of file qt.h.

Definition at line 320 of file qt.h.

Definition at line 370 of file qt.h.

bool QtPLWidget::redrawAll [protected]

Definition at line 357 of file qt.h.

Definition at line 356 of file qt.h.

QBrush QtPLWidget::SolidBrush [protected]

Definition at line 363 of file qt.h.

QPen QtPLWidget::SolidPen [protected]

Definition at line 360 of file qt.h.

QLinkedList<BufferElement>::const_iterator QtPLWidget::start_iterator [protected]

Definition at line 366 of file qt.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines