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

TxqLinLogViewPort Class Reference

The TxqLinLogViewPort class converts between the pixel and real world coordinate system using a linear scale for the X axis and a log scale for the Y axis transformation. More...

#include <TxqLinLogViewPort.h>

Inheritance diagram for TxqLinLogViewPort::

TxqLogViewPort TxqViewPort List of all members.

Public Methods

 TxqLinLogViewPort ()
 The constructor is default. More...

virtual double pixelToX (const QPoint &p)
 Convert the pixel to the plot x value. More...

virtual short xToPixel (double x)
 Convert the x coordinate on the plot to a x pixel value. More...

virtual void setXmin (double val)
 set the X minimum value of the plot region. More...

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

 ~TxqLinLogViewPort ()
 The destructor. More...


Detailed Description

The TxqLinLogViewPort class converts between the pixel and real world coordinate system using a linear scale for the X axis and a log scale for the Y axis transformation.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

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

Definition at line 37 of file TxqLinLogViewPort.h.


Constructor & Destructor Documentation

TxqLinLogViewPort::TxqLinLogViewPort ( )
 

The constructor is default.

TxqLinLogViewPort::~TxqLinLogViewPort ( )
 

The destructor.


Member Function Documentation

double TxqLinLogViewPort::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 TxqLogViewPort.

void TxqLinLogViewPort::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 TxqLogViewPort.

void TxqLinLogViewPort::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 TxqLogViewPort.

short TxqLinLogViewPort::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 TxqLogViewPort.


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