PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
QtPLDriver Class Reference

#include "qt.h"

Public Member Functions

 QtPLDriver (PLINT i_iWidth=QT_DEFAULT_X, PLINT i_iHeight=QT_DEFAULT_Y)
virtual ~QtPLDriver ()
void setPLStream (PLStream *pls)
virtual void drawArc (short x, short y, short width, short height, PLFLT angle1, PLFLT angle2, PLFLT rotate, bool fill)
virtual void drawLine (short x1, short y1, short x2, short y2)
virtual void drawPolyline (short *x, short *y, PLINT npts)
virtual void drawPolygon (short *x, short *y, PLINT npts)
virtual void drawText (EscText *txt)
virtual void setColor (int r, int g, int b, double alpha)
virtual void setBackgroundColor (int, int, int, double)
virtual void setGradient (int x1, int x2, int y1, int y2, unsigned char *r, unsigned char *g, unsigned char *b, PLFLT *alpha, PLINT ncol1)
virtual void setWidthF (PLFLT w)
virtual void setSolid ()

Public Attributes

double downscale
double m_dWidth
double m_dHeight

Static Public Attributes

static QMutex mutex

Protected Member Functions

QFont getFont (PLUNICODE code)
void drawTextInPicture (QPainter *, const QString &)
QPicture getTextPicture (PLUNICODE fci, PLUNICODE *text, int len, PLFLT chrht)

Protected Attributes

bool underlined
bool overlined
double currentFontScale
double currentFontSize
double yOffset
double xOffset
PLStreampls
QPainter * m_painterP

Detailed Description

Definition at line 117 of file qt.h.

Constructor & Destructor Documentation

QtPLDriver::QtPLDriver ( PLINT  i_iWidth = QT_DEFAULT_X,
PLINT  i_iHeight = QT_DEFAULT_Y 
)

Definition at line 69 of file plqt.cpp.

QtPLDriver::~QtPLDriver ( )
virtual

Definition at line 75 of file plqt.cpp.

Member Function Documentation

void QtPLDriver::drawArc ( short  x,
short  y,
short  width,
short  height,
PLFLT  angle1,
PLFLT  angle2,
PLFLT  rotate,
bool  fill 
)
virtual

Definition at line 84 of file plqt.cpp.

void QtPLDriver::drawLine ( short  x1,
short  y1,
short  x2,
short  y2 
)
virtual

Definition at line 112 of file plqt.cpp.

void QtPLDriver::drawPolygon ( short *  x,
short *  y,
PLINT  npts 
)
virtual

Definition at line 139 of file plqt.cpp.

void QtPLDriver::drawPolyline ( short *  x,
short *  y,
PLINT  npts 
)
virtual

Definition at line 125 of file plqt.cpp.

void QtPLDriver::drawText ( EscText txt)
virtual

Definition at line 363 of file plqt.cpp.

void QtPLDriver::drawTextInPicture ( QPainter *  p,
const QString &  text 
)
protected

Definition at line 197 of file plqt.cpp.

QFont QtPLDriver::getFont ( PLUNICODE  code)
protected

Definition at line 157 of file plqt.cpp.

QPicture QtPLDriver::getTextPicture ( PLUNICODE  fci,
PLUNICODE text,
int  len,
PLFLT  chrht 
)
protected

Definition at line 240 of file plqt.cpp.

virtual void QtPLDriver::setBackgroundColor ( int  ,
int  ,
int  ,
double   
)
inlinevirtual

Definition at line 134 of file qt.h.

void QtPLDriver::setColor ( int  r,
int  g,
int  b,
double  alpha 
)
virtual

Definition at line 414 of file plqt.cpp.

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

Definition at line 429 of file plqt.cpp.

void QtPLDriver::setPLStream ( PLStream pls)

Definition at line 79 of file plqt.cpp.

void QtPLDriver::setSolid ( )
virtual

Definition at line 480 of file plqt.cpp.

void QtPLDriver::setWidthF ( PLFLT  w)
virtual

Definition at line 455 of file plqt.cpp.

Member Data Documentation

double QtPLDriver::currentFontScale
protected

Definition at line 157 of file qt.h.

double QtPLDriver::currentFontSize
protected

Definition at line 158 of file qt.h.

double QtPLDriver::downscale

Definition at line 142 of file qt.h.

double QtPLDriver::m_dHeight

Definition at line 143 of file qt.h.

double QtPLDriver::m_dWidth

Definition at line 143 of file qt.h.

QPainter* QtPLDriver::m_painterP
protected

Definition at line 164 of file qt.h.

QMutex QtPLDriver::mutex
static

Definition at line 144 of file qt.h.

bool QtPLDriver::overlined
protected

Definition at line 156 of file qt.h.

PLStream* QtPLDriver::pls
protected

Definition at line 162 of file qt.h.

bool QtPLDriver::underlined
protected

Definition at line 155 of file qt.h.

double QtPLDriver::xOffset
protected

Definition at line 160 of file qt.h.

double QtPLDriver::yOffset
protected

Definition at line 159 of file qt.h.


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