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

Txq3dAxis Class Reference

A Txq3dAxis is three dimensional axis class which is described in a real world coordinate system. More...

#include <Txq3dAxis.h>

Inheritance diagram for Txq3dAxis::

Txq3dDrawable TxqAxis TxqDrawable List of all members.

Public Methods

 Txq3dAxis ()
 Construct a three dimensional axis using default values. More...

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

void setOrientation (QString direction)
 Set the orientation of the axis. More...

QString getOrientation ()
 Return the orientation placement. More...

void setLocation (double x, double y, double z)
 Set the location point to reference the axes For example if the orientation direction is "X" then, setLocation(-1., -1., 1.); would set the x,y axes to cross at -1, -1 and the x-axis would be in the zplane at 1.0. More...

void setLocation (int x, int y)
 overloaded signature to prevent warnings. More...

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

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

void setTitleLabel (QString label, 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 maximum axis width. More...

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

void paintGL ()
 Paints the Txq3dAxis. More...


Private Methods

void paintAxis ()
 Paints the Axis. More...

void paintTickMarks ()
 Paints the TickMarks. More...

void paintLogTickMarks ()
 Paints the log TickMarks. More...

void paintLabels ()
 Paints the Labels. More...


Private Attributes

Txq3dStrokeLabel titleLabel
 The title label. More...

bool xAxis
 The axis orientation bool flag for the x axis. More...

bool yAxis
 The axis orientation bool flag for the y axis. More...

bool zAxis
 The axis orientation bool flag for the z axis. More...

double xLoc
 The axis location point for the x axis. More...

double yLoc
 The axis location point for the y axis. More...

double zLoc
 The axis location point for the z axis. More...

double yAxisTitleX
 The X location of the y axis label. More...

double zAxisTitleX
 The x location of the z axis label. More...

double xAxisTitleY
 The Y location of the x axis label. More...


Detailed Description

A Txq3dAxis is three dimensional axis class which is described in a real world coordinate system.

This object can be drawn on a Txq3dCanvas using OpenGL

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq3dAxis.h,v 1.12 2001/10/11 17:02:53 kgl Exp

Definition at line 36 of file Txq3dAxis.h.


Constructor & Destructor Documentation

Txq3dAxis::Txq3dAxis ( )
 

Construct a three dimensional axis using default values.

Txq3dAxis::~Txq3dAxis ( ) [virtual]
 

The destructor is default.


Member Function Documentation

int Txq3dAxis::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 Txq3dAxis::getAxisMaxWidth ( ) [virtual]
 

Get the maximum axis width.

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

Reimplemented from TxqAxis.

QString Txq3dAxis::getOrientation ( )
 

Return the orientation placement.

Returns:
the orientation placement of the axis X for a x-axis Txq3dAxis, Y for a y-axis Txq3dAxis Z for a z-axis Txq3dAxis

Reimplemented from TxqAxis.

QString Txq3dAxis::getTitleLabel ( ) [virtual]
 

Get the title label.

Returns:
the title label

Reimplemented from TxqAxis.

void Txq3dAxis::paintAxis ( ) [inline, private]
 

Paints the Axis.

void Txq3dAxis::paintGL ( ) [virtual]
 

Paints the Txq3dAxis.

Reimplemented from Txq3dDrawable.

void Txq3dAxis::paintLabels ( ) [inline, private]
 

Paints the Labels.

void Txq3dAxis::paintLogTickMarks ( ) [inline, private]
 

Paints the log TickMarks.

void Txq3dAxis::paintTickMarks ( ) [inline, private]
 

Paints the TickMarks.

void Txq3dAxis::setLocation ( int x,
int y ) [inline, virtual]
 

overloaded signature to prevent warnings.

Reimplemented from TxqDrawable.

Definition at line 87 of file Txq3dAxis.h.

void Txq3dAxis::setLocation ( double x,
double y,
double z )
 

Set the location point to reference the axes For example if the orientation direction is "X" then, setLocation(-1., -1., 1.); would set the x,y axes to cross at -1, -1 and the x-axis would be in the zplane at 1.0.

Parameters:
x   the reference location of the x axis point
y   the reference location of the y axis point
z   the reference location of the z axis point

void Txq3dAxis::setOrientation ( QString direction )
 

Set the orientation of the axis.

The orientation is either horizontal or vertical and can be specified with these QStrings: X, x Y, y Z, z

Parameters:
direction   the orientation direction

Reimplemented from TxqAxis.

void Txq3dAxis::setTitleLabel ( QString label,
double xpos,
double ypos ) [inline, virtual]
 

Set the title label.

This is the overloaded method from the base class to prevent compiler warnings but should not be used, unless one wants the zpos to be defaulted to 0.0.

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

Reimplemented from TxqAxis.

Definition at line 114 of file Txq3dAxis.h.

void Txq3dAxis::setTitleLabel ( QString lablel,
double xpos,
double ypos,
double zpos )
 

Set the title label.

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

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

Set the title label.

Parameters:
label   the title label

Reimplemented from TxqAxis.

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

Set the title label color.

Parameters:
c   the title label color

Reimplemented from TxqAxis.

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

Set the title label font.

Parameters:
f   the font for the title labels

Reimplemented from TxqAxis.


Member Data Documentation

Txq3dStrokeLabel Txq3dAxis::titleLabel [private]
 

The title label.

Definition at line 186 of file Txq3dAxis.h.

bool Txq3dAxis::xAxis [private]
 

The axis orientation bool flag for the x axis.

Reimplemented from TxqAxis.

Definition at line 191 of file Txq3dAxis.h.

double Txq3dAxis::xAxisTitleY [private]
 

The Y location of the x axis label.

Definition at line 227 of file Txq3dAxis.h.

double Txq3dAxis::xLoc [private]
 

The axis location point for the x axis.

Definition at line 204 of file Txq3dAxis.h.

bool Txq3dAxis::yAxis [private]
 

The axis orientation bool flag for the y axis.

Reimplemented from TxqAxis.

Definition at line 195 of file Txq3dAxis.h.

double Txq3dAxis::yAxisTitleX [private]
 

The X location of the y axis label.

Definition at line 217 of file Txq3dAxis.h.

double Txq3dAxis::yLoc [private]
 

The axis location point for the y axis.

Definition at line 208 of file Txq3dAxis.h.

bool Txq3dAxis::zAxis [private]
 

The axis orientation bool flag for the z axis.

Reimplemented from TxqAxis.

Definition at line 199 of file Txq3dAxis.h.

double Txq3dAxis::zAxisTitleX [private]
 

The x location of the z axis label.

Definition at line 222 of file Txq3dAxis.h.

double Txq3dAxis::zLoc [private]
 

The axis location point for the z axis.

Definition at line 212 of file Txq3dAxis.h.


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