Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqLinViewPort Class Reference

The TxqLinViewPort converts between the pixel and real world coordinate system. More...

#include <TxqLinViewPort.h>

Inheritance diagram for TxqLinViewPort::

TxqViewPort List of all members.

Public Methods

 TxqLinViewPort ()
 The constructor is default. 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...

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 setXmin (double val)
 set the X minimum value of the plot region. More...

void setXmax (double val)
 set the X maximum value of the plot region. More...

void setYmin (double val)
 set the Y minimum value of the plot region. More...

void setYmax (double val)
 set the Y maximum value of the plot region. More...

 ~TxqLinViewPort ()
 The destructor. More...


Detailed Description

The TxqLinViewPort converts between the pixel and real world coordinate system.

using a linear scale factor for both X and Y axes.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqLinViewPort.h,v 1.4 2001/10/09 23:36:44 kgl Exp

Definition at line 32 of file TxqLinViewPort.h.


Constructor & Destructor Documentation

TxqLinViewPort::TxqLinViewPort ( )
 

The constructor is default.

TxqLinViewPort::~TxqLinViewPort ( )
 

The destructor.


Member Function Documentation

double TxqLinViewPort::pixelToX ( const QPoint & p ) [virtual]
 

Convert the pixel to the plot x value.

Parameters:
p   the pixel point.
Returns:
the plot x coordinate for a given screen pixel p.

Reimplemented from TxqViewPort.

double TxqLinViewPort::pixelToY ( const QPoint & p ) [virtual]
 

Convert the pixel to the plot y value.

Parameters:
p   the pixel point.
Returns:
the plot y coordinate for a given screen pixel p.

Reimplemented from TxqViewPort.

void TxqLinViewPort::setXmax ( double val ) [virtual]
 

set the X maximum value of the plot region.

Parameters:
val   the value for the right edge of the plot.

Reimplemented from TxqViewPort.

void TxqLinViewPort::setXmin ( double val ) [virtual]
 

set the X minimum value of the plot region.

Parameters:
val   the value for the left edge of the plot.

Reimplemented from TxqViewPort.

void TxqLinViewPort::setYmax ( double val ) [virtual]
 

set the Y maximum value of the plot region.

Parameters:
val   the value for the top edge of the plot.

Reimplemented from TxqViewPort.

void TxqLinViewPort::setYmin ( double val ) [virtual]
 

set the Y minimum value of the plot region.

Parameters:
val   the value for the bottom edge of the plot.

Reimplemented from TxqViewPort.

short TxqLinViewPort::xToPixel ( double x ) [virtual]
 

Convert the x coordinate on the plot to a x pixel value.

Larger valued x pixels are to the right on the screen.

Parameters:
x   the plot coordinate x
Returns:
the x pixel

Reimplemented from TxqViewPort.

short TxqLinViewPort::yToPixel ( double y ) [virtual]
 

Convert the y coordinate on the plot to a y pixel value.

Larger valued y pixels are lower on the screen.

Parameters:
y   the plot coordinate y
Returns:
the y pixel

Reimplemented from TxqViewPort.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.