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

TxqLogLinViewPort Class Reference

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

#include <TxqLogLinViewPort.h>

Inheritance diagram for TxqLogLinViewPort::

TxqLogViewPort TxqViewPort List of all members.

Public Methods

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

double pixelToY (const QPoint &p)
 Convert the pixel to the plot y value. More...

short yToPixel (double y)
 Convert the y coordinate on the plot to a y pixel value. 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...

 ~TxqLogLinViewPort ()
 The destructor. More...


Private Attributes

double lxmin
 The log of the minimum. More...

double lxmax
 The log of the maximum. More...


Detailed Description

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

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

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

Definition at line 36 of file TxqLogLinViewPort.h.


Constructor & Destructor Documentation

TxqLogLinViewPort::TxqLogLinViewPort ( )
 

The constructor is default.

TxqLogLinViewPort::~TxqLogLinViewPort ( )
 

The destructor.


Member Function Documentation

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

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

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

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


Member Data Documentation

double TxqLogLinViewPort::lxmax [private]
 

The log of the maximum.

Reimplemented from TxqLogViewPort.

Definition at line 95 of file TxqLogLinViewPort.h.

double TxqLogLinViewPort::lxmin [private]
 

The log of the minimum.

Reimplemented from TxqLogViewPort.

Definition at line 90 of file TxqLogLinViewPort.h.


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