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

Public Methods | |
| TxqViewPort () | |
| The constructor is default. More... | |
| virtual double | getXmin () |
| get the X minimum value of the plot region. More... | |
| virtual double | getXmax () |
| get the X maximum value of the plot region. More... | |
| virtual double | getYmin () |
| get the Y minimum value of the plot region. More... | |
| virtual double | getYmax () |
| get the Y maximum value of the plot region. More... | |
| virtual double | pixelToX (const QPoint &p)=0 |
| Convert the pixel to the plot x value. More... | |
| virtual double | pixelToY (const QPoint &p)=0 |
| Convert the pixel to the plot y value. More... | |
| virtual QPoint | xyToPixel (double x, double y) |
| Convert the x,y plot cordinates to a screen pixel point. More... | |
| virtual short | xToPixel (double x)=0 |
| Convert the x coordinate on the plot to a x pixel value. More... | |
| virtual short | yToPixel (double y)=0 |
| Convert the y coordinate on the plot to a y pixel value. More... | |
| virtual void | setXmin (double val)=0 |
| set the X minimum value of the plot region. More... | |
| virtual void | setXmax (double val)=0 |
| set the X maximum value of the plot region. More... | |
| virtual void | setYmin (double val)=0 |
| set the Y minimum value of the plot region. More... | |
| virtual void | setYmax (double val)=0 |
| set the Y maximum value of the plot region. More... | |
| virtual void | setBounds (double plxmin, double plymin, double plxmax, double plymax, int cwidth, int cheight) |
| set the x and y bounds of the plot region. More... | |
| virtual void | setBounds (double plxmin, double plymin, double plxmax, double plymax, int transx, int transy, int cwidth, int cheight) |
| set the x and y bounds of the plot region. More... | |
| virtual void | setBounds (double plxmin, double plymin, double plxmax, double plymax) |
| set the x and y bounds of the plot region. More... | |
| virtual void | setPlotRegion (int transx, int transy, int cwidth, int cheight) |
| Define the plot region. More... | |
| virtual QRect | getPlotRegion () |
| Get the plot region as a QRect. More... | |
| virtual int | width () |
| Get the canvas width. More... | |
| virtual int | getWidth () |
| Get the canvas width. More... | |
| virtual int | height () |
| Get the canvas height. More... | |
| virtual int | getHeight () |
| Get the canvas height. More... | |
| virtual void | setScreenCoordinates (bool b) |
| Set the screen coordinate flag. More... | |
| virtual bool | isScreenCoordinates () |
| Get the screen coordinate flag. More... | |
| virtual | ~TxqViewPort () |
| The destructor. More... | |
Protected Attributes | |
| double | xmin |
| The x min value for the plot. More... | |
| double | xmax |
| The x max value for the plot. More... | |
| double | ymin |
| The y min value for the plot. More... | |
| double | ymax |
| The y max value for the plot. More... | |
| int | xwidth |
| The canvas width. More... | |
| int | yheight |
| The canvas height. More... | |
| QRect | plotRect |
| The plot region rectangle. More... | |
| bool | scFlag |
| the screen coordinate flag. More... | |
Derived classes can be used to change the X or Y scaling. The pure virtual classes must be implemented in the derived classes.
Copyright 2000 by Tech-X Corporation
Definition at line 42 of file TxqViewPort.h.
|
|
The constructor is default.
|
|
|
The destructor.
|
|
|
Get the canvas height.
|
|
|
Get the plot region as a QRect.
|
|
|
Get the canvas width.
|
|
|
get the X maximum value of the plot region.
Referenced by Txq2dDrawable::getXmax(), and Txq2dCanvas::getXmax().
|
|
|
get the X minimum value of the plot region.
Referenced by Txq2dDrawable::getXmin(), and Txq2dCanvas::getXmin().
|
|
|
get the Y maximum value of the plot region.
Referenced by Txq2dDrawable::getYmax(), and Txq2dCanvas::getYmax().
|
|
|
get the Y minimum value of the plot region.
Referenced by Txq2dDrawable::getYmin(), and Txq2dCanvas::getYmin().
|
|
|
Get the canvas height.
|
|
|
Get the screen coordinate flag.
|
|
|
Convert the pixel to the plot x value.
Reimplemented in TxqLinLogViewPort, TxqLinViewPort, and TxqLogViewPort. Referenced by Txq2dDrawable::pixelToX(), and Txq2dCanvas::pixelToX().
|
|
|
Convert the pixel to the plot y value.
Reimplemented in TxqLinViewPort, TxqLogLinViewPort, and TxqLogViewPort. Referenced by Txq2dDrawable::pixelToY(), and Txq2dCanvas::pixelToY().
|
|
|
set the x and y bounds of the plot region. The bounds are the real-world cordinates of the TxqCanvas This method may be used in conjuntion with setPlotRegion.
|
|
|
set the x and y bounds of the plot region. The bounds are the real-world cordinates of the TxqCanvas
|
|
|
set the x and y bounds of the plot region. The bounds are the real-world cordinates of the TxqCanvas
Referenced by Txq2dCanvas::setRange().
|
|
|
Define the plot region. The plot region is defined as the starting X and the starting Y pixel values followed by the width and height of the region. All graphics will be bounded within this region.
|
|
|
Set the screen coordinate flag.
|
|
|
set the X maximum value of the plot region.
Reimplemented in TxqLinLogViewPort, TxqLinViewPort, and TxqLogViewPort. Referenced by Txq2dCanvas::setXmax().
|
|
|
set the X minimum value of the plot region.
Reimplemented in TxqLinLogViewPort, TxqLinViewPort, and TxqLogViewPort. Referenced by Txq2dCanvas::setXmin().
|
|
|
set the Y maximum value of the plot region.
Reimplemented in TxqLinViewPort, TxqLogLinViewPort, and TxqLogViewPort. Referenced by Txq2dCanvas::setYmax().
|
|
|
set the Y minimum value of the plot region.
Reimplemented in TxqLinViewPort, TxqLogLinViewPort, and TxqLogViewPort. Referenced by Txq2dCanvas::setYmin().
|
|
|
Get the canvas width.
|
|
|
Convert the x coordinate on the plot to a x pixel value. Larger valued x pixels are to the right on the screen.
Reimplemented in TxqLinLogViewPort, TxqLinViewPort, and TxqLogViewPort. Referenced by Txq2dDrawable::xToPixel(), and Txq2dCanvas::xToPixel().
|
|
|
Convert the x,y plot cordinates to a screen pixel point.
Referenced by Txq2dDrawable::xyToPixel(), and Txq2dCanvas::xyToPixel().
|
|
|
Convert the y coordinate on the plot to a y pixel value. Larger valued y pixels are lower on the screen.
Reimplemented in TxqLinViewPort, TxqLogLinViewPort, and TxqLogViewPort. Referenced by Txq2dDrawable::yToPixel(), and Txq2dCanvas::yToPixel().
|
|
|
The plot region rectangle.
Definition at line 294 of file TxqViewPort.h. |
|
|
the screen coordinate flag.
Definition at line 299 of file TxqViewPort.h. |
|
|
The x max value for the plot.
Definition at line 271 of file TxqViewPort.h. |
|
|
The x min value for the plot.
Definition at line 267 of file TxqViewPort.h. |
|
|
The canvas width.
Definition at line 284 of file TxqViewPort.h. |
|
|
The canvas height.
Definition at line 289 of file TxqViewPort.h. |
|
|
The y max value for the plot.
Definition at line 279 of file TxqViewPort.h. |
|
|
The y min value for the plot.
Definition at line 275 of file TxqViewPort.h. |
Copyright Tech-X Corporation, all rights reserved.