#include <Txq2dDrawable.h>
Inheritance diagram for Txq2dDrawable::

Public Methods | |
| Txq2dDrawable () | |
| The constructor is default. More... | |
| virtual | ~Txq2dDrawable () |
| The destructor does nothing. More... | |
| void | update (QPainter *g) |
| Update will repaint this Txq2dDrawable object. More... | |
| virtual void | paint (QPainter *g)=0 |
| The paint method must be implemented for each drawable, so it is abstract here. More... | |
| double | getXmin () |
| Get the X minimum value of the plot region. More... | |
| double | getXmax () |
| Get the X maximum value of the plot region. More... | |
| double | getYmin () |
| Get the Y minimum value of the plot region. More... | |
| double | getYmax () |
| Get the Y maximum value of the plot region. More... | |
| double | pixelToX (const QPoint &p) |
| Convert the pixel to the plot x value. More... | |
| double | pixelToY (const QPoint &p) |
| Convert the pixel to the plot y value. More... | |
| QPoint | xyToPixel (double x, double y) |
| Convert the x,y plot cordinates to a screen pixel point. More... | |
| short | xToPixel (double x) |
| Convert the x coordinate on the plot to a x pixel value. More... | |
| short | yToPixel (double y) |
| Convert the y coordinate on the plot to a y pixel value. More... | |
| void | setViewPort (TxqViewPort *viewPort) |
| Set the viewport in order to obtain bounds methods. More... | |
Protected Attributes | |
| TxqViewPort* | view |
| The Viewport. More... | |
A canvas drawable is an object that can have a color value and knows how to paint itself given a QPainter device.
Copyright 2000 by Tech-X Corporation
Definition at line 43 of file Txq2dDrawable.h.
|
|
The constructor is default.
|
|
|
The destructor does nothing.
|
|
|
Get the X maximum value of the plot region.
Definition at line 81 of file Txq2dDrawable.h. |
|
|
Get the X minimum value of the plot region.
Definition at line 75 of file Txq2dDrawable.h. |
|
|
Get the Y maximum value of the plot region.
Definition at line 94 of file Txq2dDrawable.h. |
|
|
Get the Y minimum value of the plot region.
Definition at line 88 of file Txq2dDrawable.h. |
|
|
The paint method must be implemented for each drawable, so it is abstract here.
Reimplemented in Txq2dAxis, Txq2dLabel, Txq2dLine, Txq2dLineArray, Txq2dLineSeg, Txq2dPoint, Txq2dPointArray, Txq2dPoints, Txq2dPolygon, Txq2dPolygonArray, Txq2dSeg, Txq2dSegmented, Txq2dVector, and TxqAttribDrawable. Referenced by update().
|
|
|
Convert the pixel to the plot x value.
Definition at line 101 of file Txq2dDrawable.h. |
|
|
Convert the pixel to the plot y value.
Definition at line 108 of file Txq2dDrawable.h. |
|
|
Set the viewport in order to obtain bounds methods. The bounds are the real-world cordinates of the Txq2dCanvas
Definition at line 143 of file Txq2dDrawable.h. |
|
|
Update will repaint this Txq2dDrawable object.
Definition at line 62 of file Txq2dDrawable.h. |
|
|
Convert the x coordinate on the plot to a x pixel value. Larger valued x pixels are to the right on the screen.
Definition at line 126 of file Txq2dDrawable.h. |
|
|
Convert the x,y plot cordinates to a screen pixel point.
Definition at line 117 of file Txq2dDrawable.h. |
|
|
Convert the y coordinate on the plot to a y pixel value. Larger valued y pixels are lower on the screen.
Definition at line 135 of file Txq2dDrawable.h. |
|
|
The Viewport.
Definition at line 151 of file Txq2dDrawable.h. |
Copyright Tech-X Corporation, all rights reserved.