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

Txq2dAxis Class Reference

A Txq2dAxis is an Axis class which is described in a real world coordinate system. More...

#include <Txq2dAxis.h>

Inheritance diagram for Txq2dAxis::

Txq2dDrawable TxqAxis TxqDrawable List of all members.

Public Methods

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

virtual ~Txq2dAxis ()
 The destructor is default. More...

void setTitleLabel (QString lablel)
 set the title label. More...

void setTitleLabel (QString lablel, double xpos, double ypos)
 set the title label. More...

QString getTitleLabel ()
 get the title label. More...

void setTitleLabelFont (QFont f)
 set the title label font. More...

void setTitleLabelColor (QColor c)
 set the title label color. More...

int getAxisMaxWidth ()
 get the max axis width. More...

int getAxisMaxHeight ()
 get the max axis height. More...

void paint (QPainter *g)
 Paint the Txq2dAxis. More...


Private Methods

void paintAxis (QPainter *g)
 Paints the Axis. More...

void paintTickMarks (QPainter *g)
 Paints the TickMarks. More...

void paintLogTickMarks (QPainter *g)
 Paints the log TickMarks. More...

void paintLabels (QPainter *g)
 Paints the Labels. More...


Private Attributes

Txq2dLabel titleLabel
 the title label. More...

double titleX
 The X title location. More...

double titleY
 The Y title location. More...

int yTickLabelPos
 the y tick label position. More...


Detailed Description

A Txq2dAxis is an Axis class which is described in a real world coordinate system.

This object can be drawn on a Txq2dCanvas.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq2dAxis.h,v 1.7 2001/10/10 22:41:05 kgl Exp

Definition at line 37 of file Txq2dAxis.h.


Constructor & Destructor Documentation

Txq2dAxis::Txq2dAxis ( )
 

The constructor is default.

Txq2dAxis::~Txq2dAxis ( ) [virtual]
 

The destructor is default.


Member Function Documentation

int Txq2dAxis::getAxisMaxHeight ( ) [virtual]
 

get the max axis height.

Returns:
the height in which the axis will need to paint return of 0 if the axis orientation is HORIZONTAL

Reimplemented from TxqAxis.

int Txq2dAxis::getAxisMaxWidth ( ) [virtual]
 

get the max axis width.

Returns:
the width in which axis will need to paint return of 0 if the axis orientation is VERTICAL

Reimplemented from TxqAxis.

QString Txq2dAxis::getTitleLabel ( ) [virtual]
 

get the title label.

Returns:
the title label

Reimplemented from TxqAxis.

void Txq2dAxis::paint ( QPainter * g ) [virtual]
 

Paint the Txq2dAxis.

Parameters:
g   the QPainter device to paint upon.

Reimplemented from Txq2dDrawable.

void Txq2dAxis::paintAxis ( QPainter * g ) [inline, private]
 

Paints the Axis.

Parameters:
g   the QPainter device to paint upon.

void Txq2dAxis::paintLabels ( QPainter * g ) [inline, private]
 

Paints the Labels.

Parameters:
g   the QPainter device to paint upon.

void Txq2dAxis::paintLogTickMarks ( QPainter * g ) [inline, private]
 

Paints the log TickMarks.

Parameters:
g   the QPainter device to paint upon.

void Txq2dAxis::paintTickMarks ( QPainter * g ) [inline, private]
 

Paints the TickMarks.

Parameters:
g   the QPainter device to paint upon.

void Txq2dAxis::setTitleLabel ( QString lablel,
double xpos,
double ypos ) [virtual]
 

set the title label.

Parameters:
label   the title label
xpos   the x position of the label
ypos   the y position of the label

Reimplemented from TxqAxis.

void Txq2dAxis::setTitleLabel ( QString lablel ) [virtual]
 

set the title label.

Parameters:
label   the title label

Reimplemented from TxqAxis.

void Txq2dAxis::setTitleLabelColor ( QColor c ) [virtual]
 

set the title label color.

Parameters:
c   the title label color

Reimplemented from TxqAxis.

void Txq2dAxis::setTitleLabelFont ( QFont f ) [virtual]
 

set the title label font.

Parameters:
font   the font for the title labels

Reimplemented from TxqAxis.


Member Data Documentation

Txq2dLabel Txq2dAxis::titleLabel [private]
 

the title label.

Definition at line 138 of file Txq2dAxis.h.

double Txq2dAxis::titleX [private]
 

The X title location.

Definition at line 143 of file Txq2dAxis.h.

double Txq2dAxis::titleY [private]
 

The Y title location.

Definition at line 147 of file Txq2dAxis.h.

int Txq2dAxis::yTickLabelPos [private]
 

the y tick label position.

Definition at line 152 of file Txq2dAxis.h.


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