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

Txq3dLine Class Reference

The Txq3dLine is a three dimensional line with internal data of endpoints, The line must contain at lest two endpoints. More...

#include <Txq3dLine.h>

Inheritance diagram for Txq3dLine::

Txq3dDrawable TxqDrawable List of all members.

Public Methods

 Txq3dLine ()
 Default construction of a Txq3dLine. More...

 Txq3dLine (int x1, int y1, int z1, int x2, int y2, int z2)
 Construct a Txq3dLine with the starting and ending integer points of the line in real-world coordinates,. More...

 Txq3dLine (const std::vector< int > &xpoints, const std::vector< int > &ypoints, const std::vector< int > &zpoints)
 Constructs the line points with a vector of integer points in the real-world coordinates. More...

 Txq3dLine (float x1, float y1, float z1, float x2, float y2, float z2)
 Constructs with the starting and ending float points of the line in real-world coordinates. More...

 Txq3dLine (const std::vector< float > &xpoints, const std::vector< float > &ypoints, const std::vector< float > &zpoints)
 Constructs the line points with a vector of float points in the real-world coordinates. More...

 Txq3dLine (double x1, double y1, double z1, double x2, double y2, double z2)
 Constructs with the starting and ending double points of the line in real-world coordinates. More...

 Txq3dLine (const std::vector< double > &xpoints, const std::vector< double > &ypoints, const std::vector< double > &zpoints)
 Constructs the line points with a vector of double points in the real-world coordinates. More...

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

void addPoint (int x, int y, int z)
 Add a point to the line vector. More...

void addPoint (float x, float y, float z)
 Add a point to the line vector. More...

void addPoint (double x, double y, double z)
 Add a point to the line vector. More...

void initialize ()
 Initialize the class data members. More...

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

void dump (QTextStream *ts)
 Dump the objects contents to the text stream ts. More...


Private Attributes

std::vector<int> ixpoints
 The vector of x integer points making up the line. More...

std::vector<int> iypoints
 The vector of y integer points making up the line. More...

std::vector<int> izpoints
 The vector of z integer points making up the line. More...

std::vector<float> fxpoints
 The vector of float x points making up the line. More...

std::vector<float> fypoints
 The vector of float y points making up the line. More...

std::vector<float> fzpoints
 The vector of float z points making up the line. More...

std::vector<double> dxpoints
 The vector of double x points making up the line. More...

std::vector<double> dypoints
 The vector of double y points making up the line. More...

std::vector<double> dzpoints
 The vector of double z points making up the line. More...

int numPoints
 The number of points. More...


Detailed Description

The Txq3dLine is a three dimensional line with internal data of endpoints, The line must contain at lest two endpoints.

Copyright 1998 - 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

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

Definition at line 36 of file Txq3dLine.h.


Constructor & Destructor Documentation

Txq3dLine::Txq3dLine ( )
 

Default construction of a Txq3dLine.

Txq3dLine::Txq3dLine ( int x1,
int y1,
int z1,
int x2,
int y2,
int z2 )
 

Construct a Txq3dLine with the starting and ending integer points of the line in real-world coordinates,.

Parameters:
x1   the starting x integer point
y1   the starting y integer point
z1   the starting z integer point
x2   the ending x integer point
y2   the ending y integer point
z2   the ending z integer point

Txq3dLine::Txq3dLine ( const std::vector< int > & xpoints,
const std::vector< int > & ypoints,
const std::vector< int > & zpoints )
 

Constructs the line points with a vector of integer points in the real-world coordinates.

Parameters:
xpoints   the vector of integer xpoints
ypoints   the vector of integer ypoints
zpoints   the vector of integer zpoints

Txq3dLine::Txq3dLine ( float x1,
float y1,
float z1,
float x2,
float y2,
float z2 )
 

Constructs with the starting and ending float points of the line in real-world coordinates.

Parameters:
x1   the starting x float point
y1   the starting y float point
z1   the starting z float point
x2   the ending x float point
y2   the ending y float point
z2   the ending z float point

Txq3dLine::Txq3dLine ( const std::vector< float > & xpoints,
const std::vector< float > & ypoints,
const std::vector< float > & zpoints )
 

Constructs the line points with a vector of float points in the real-world coordinates.

Parameters:
xpoints   the vector of float xpoints
ypoints   the vector of float ypoints
zpoints   the vector of float zpoints

Txq3dLine::Txq3dLine ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2 )
 

Constructs with the starting and ending double points of the line in real-world coordinates.

Parameters:
x1   the starting x double point
y1   the starting y double point
z1   the starting z double point
x2   the ending x double point
y2   the ending y double point
z2   the ending z double point

Txq3dLine::Txq3dLine ( const std::vector< double > & xpoints,
const std::vector< double > & ypoints,
const std::vector< double > & zpoints )
 

Constructs the line points with a vector of double points in the real-world coordinates.

Parameters:
xpoints   the vector of double xpoints
ypoints   the vector of double ypoints
zpoints   the vector of double zpoints

Txq3dLine::~Txq3dLine ( ) [virtual]
 

The destructor.


Member Function Documentation

void Txq3dLine::addPoint ( double x,
double y,
double z )
 

Add a point to the line vector.

Parameters:
x   the x point to add
y   the y point to add
z   the z point to add

void Txq3dLine::addPoint ( float x,
float y,
float z )
 

Add a point to the line vector.

Parameters:
x   the x point to add
y   the y point to add
z   the z point to add

void Txq3dLine::addPoint ( int x,
int y,
int z )
 

Add a point to the line vector.

Parameters:
x   the x point to add
y   the y point to add
z   the z point to add

void Txq3dLine::dump ( QTextStream * ts ) [virtual]
 

Dump the objects contents to the text stream ts.

Parameters:
ts   the text stream to dump contents.

Reimplemented from TxqDrawable.

void Txq3dLine::initialize ( ) [virtual]
 

Initialize the class data members.

Reimplemented from TxqDrawable.

void Txq3dLine::paintGL ( ) [virtual]
 

Paints the line.

Reimplemented from Txq3dDrawable.


Member Data Documentation

std::vector< double > Txq3dLine::dxpoints [private]
 

The vector of double x points making up the line.

Definition at line 207 of file Txq3dLine.h.

std::vector< double > Txq3dLine::dypoints [private]
 

The vector of double y points making up the line.

Definition at line 212 of file Txq3dLine.h.

std::vector< double > Txq3dLine::dzpoints [private]
 

The vector of double z points making up the line.

Definition at line 217 of file Txq3dLine.h.

std::vector< float > Txq3dLine::fxpoints [private]
 

The vector of float x points making up the line.

Definition at line 192 of file Txq3dLine.h.

std::vector< float > Txq3dLine::fypoints [private]
 

The vector of float y points making up the line.

Definition at line 197 of file Txq3dLine.h.

std::vector< float > Txq3dLine::fzpoints [private]
 

The vector of float z points making up the line.

Definition at line 202 of file Txq3dLine.h.

std::vector< int > Txq3dLine::ixpoints [private]
 

The vector of x integer points making up the line.

Definition at line 177 of file Txq3dLine.h.

std::vector< int > Txq3dLine::iypoints [private]
 

The vector of y integer points making up the line.

Definition at line 182 of file Txq3dLine.h.

std::vector< int > Txq3dLine::izpoints [private]
 

The vector of z integer points making up the line.

Definition at line 187 of file Txq3dLine.h.

int Txq3dLine::numPoints [private]
 

The number of points.

Definition at line 222 of file Txq3dLine.h.


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