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

Txq3dDrawable Class Reference

The Txq3dDrawable is a derived class for all Txq3dCanvas drawables. More...

#include <Txq3dDrawable.h>

Inheritance diagram for Txq3dDrawable::

TxqDrawable Txq3dAxis Txq3dLabel Txq3dLine Txq3dPoints Txq3dFontLabel Txq3dStrokeLabel List of all members.

Public Methods

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

virtual ~Txq3dDrawable ()
 The destructor. More...

virtual void paintGL ()=0
 The paintGL method must be implemented for each drawable, so it is abstract here. More...

virtual void initializeGL ()
 virtual method to initialize with any OpenGL commands. More...

virtual void setColor (QColor c)
 Sets the color of the object. More...

void setRange (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
 Set the x, y, and z range. More...

double getXmin ()
 Get the X minimum value of the plot region. More...

double getXmax ()
 Get the X maximum value of the plot region. More...

double getYmin ()
 Get the Y minimum value of the plot region. More...

double getYmax ()
 Get the Y maximum value of the plot region. More...

double getZmin ()
 Get the Z minimum value of the plot region. More...

double getZmax ()
 Get the Z maximum value of the plot region. More...

void setAngle (double xa, double ya, double za)
 Set the objects rotation angles. More...

void setTranslation (double xt, double yt, double zt)
 Set the axes translation values. More...

void setScale (double xs, double ys, double zs)
 Set the data scale values. More...


Protected Attributes

double xmin
 The X min. More...

double xmax
 The X max. More...

double ymin
 The Y min. More...

double ymax
 The Y max. More...

double zmin
 The Z min. More...

double zmax
 The Z max. More...

float red
 The red color component. More...

float green
 The green color component. More...

float blue
 The blue color component. More...

double xAngle
 The X angle of rotation. More...

double yAngle
 The Y angle of rotation. More...

double zAngle
 The Z angle of rotation. More...

double xtrans
 The X axis translation value. More...

double ytrans
 The Y axis translation value. More...

double ztrans
 The Z axis translation value. More...

double xScale
 The X axis data scale value. More...

double yScale
 The Y axis data scale value. More...

double zScale
 The Z axis data scale value. More...


Detailed Description

The Txq3dDrawable is a derived class for all Txq3dCanvas drawables.

This class will implement OpenGL draws to draw the object.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq3dDrawable.h,v 1.5 2001/10/11 19:54:13 kgl Exp

Definition at line 35 of file Txq3dDrawable.h.


Constructor & Destructor Documentation

Txq3dDrawable::Txq3dDrawable ( )
 

The Txq3dDrawable constructor is default.

Txq3dDrawable::~Txq3dDrawable ( ) [virtual]
 

The destructor.


Member Function Documentation

double Txq3dDrawable::getXmax ( ) [inline]
 

Get the X maximum value of the plot region.

Returns:
the value for the top edge of the plot.

Definition at line 97 of file Txq3dDrawable.h.

double Txq3dDrawable::getXmin ( ) [inline]
 

Get the X minimum value of the plot region.

Returns:
the value for the bottom edge of the plot.

Definition at line 90 of file Txq3dDrawable.h.

double Txq3dDrawable::getYmax ( ) [inline]
 

Get the Y maximum value of the plot region.

Returns:
the value for the top edge of the plot.

Definition at line 111 of file Txq3dDrawable.h.

double Txq3dDrawable::getYmin ( ) [inline]
 

Get the Y minimum value of the plot region.

Returns:
the value for the bottom edge of the plot.

Definition at line 104 of file Txq3dDrawable.h.

double Txq3dDrawable::getZmax ( ) [inline]
 

Get the Z maximum value of the plot region.

Returns:
the value for the top edge of the plot.

Definition at line 125 of file Txq3dDrawable.h.

double Txq3dDrawable::getZmin ( ) [inline]
 

Get the Z minimum value of the plot region.

Returns:
the value for the bottom edge of the plot.

Definition at line 118 of file Txq3dDrawable.h.

void Txq3dDrawable::initializeGL ( ) [virtual]
 

virtual method to initialize with any OpenGL commands.

void Txq3dDrawable::paintGL ( ) [pure virtual]
 

The paintGL method must be implemented for each drawable, so it is abstract here.

Reimplemented in Txq3dAxis, Txq3dFontLabel, Txq3dLabel, Txq3dLine, Txq3dPoints, and Txq3dStrokeLabel.

void Txq3dDrawable::setAngle ( double xa,
double ya,
double za )
 

Set the objects rotation angles.

Parameters:
xa   the desired rotation angle on the X-Axis.
ya   the desired rotation angle on the Y-Axis.
za   the desired rotation angle on the Z-Axis.

void Txq3dDrawable::setColor ( QColor c ) [virtual]
 

Sets the color of the object.

Reimplemented from TxqDrawable.

void Txq3dDrawable::setRange ( double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax ) [inline]
 

Set the x, y, and z range.

Parameters:
xMin   the X data min
xMax   the X data max
yMin   the Y data min
yMax   the Y data max
zMin   the Z data min
zMax   the Z data max

Definition at line 75 of file Txq3dDrawable.h.

void Txq3dDrawable::setScale ( double xs,
double ys,
double zs )
 

Set the data scale values.

Parameters:
xs   the scale value for the X-Axis data.
ys   the scale value for the Y-Axis data.
zs   the scale value for the Z-Axis data.

void Txq3dDrawable::setTranslation ( double xt,
double yt,
double zt )
 

Set the axes translation values.

Parameters:
xt   the translation value on the X-Axis.
yt   the translation value on the Y-Axis.
zt   the translation value on the Z-Axis.


Member Data Documentation

float Txq3dDrawable::blue [protected]
 

The blue color component.

Definition at line 196 of file Txq3dDrawable.h.

float Txq3dDrawable::green [protected]
 

The green color component.

Definition at line 191 of file Txq3dDrawable.h.

float Txq3dDrawable::red [protected]
 

The red color component.

Definition at line 186 of file Txq3dDrawable.h.

double Txq3dDrawable::xAngle [protected]
 

The X angle of rotation.

Definition at line 201 of file Txq3dDrawable.h.

double Txq3dDrawable::xScale [protected]
 

The X axis data scale value.

Definition at line 231 of file Txq3dDrawable.h.

double Txq3dDrawable::xmax [protected]
 

The X max.

Definition at line 161 of file Txq3dDrawable.h.

double Txq3dDrawable::xmin [protected]
 

The X min.

Definition at line 156 of file Txq3dDrawable.h.

double Txq3dDrawable::xtrans [protected]
 

The X axis translation value.

Definition at line 216 of file Txq3dDrawable.h.

double Txq3dDrawable::yAngle [protected]
 

The Y angle of rotation.

Definition at line 206 of file Txq3dDrawable.h.

double Txq3dDrawable::yScale [protected]
 

The Y axis data scale value.

Definition at line 236 of file Txq3dDrawable.h.

double Txq3dDrawable::ymax [protected]
 

The Y max.

Definition at line 171 of file Txq3dDrawable.h.

double Txq3dDrawable::ymin [protected]
 

The Y min.

Definition at line 166 of file Txq3dDrawable.h.

double Txq3dDrawable::ytrans [protected]
 

The Y axis translation value.

Definition at line 221 of file Txq3dDrawable.h.

double Txq3dDrawable::zAngle [protected]
 

The Z angle of rotation.

Definition at line 211 of file Txq3dDrawable.h.

double Txq3dDrawable::zScale [protected]
 

The Z axis data scale value.

Definition at line 241 of file Txq3dDrawable.h.

double Txq3dDrawable::zmax [protected]
 

The Z max.

Definition at line 181 of file Txq3dDrawable.h.

double Txq3dDrawable::zmin [protected]
 

The Z min.

Definition at line 176 of file Txq3dDrawable.h.

double Txq3dDrawable::ztrans [protected]
 

The Z axis translation value.

Definition at line 226 of file Txq3dDrawable.h.


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