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

Txq3dPoints Class Reference

The Txq3dPoints is a set of three dimensional points with a size. More...

#include <Txq3dPoints.h>

Inheritance diagram for Txq3dPoints::

Txq3dDrawable TxqDrawable List of all members.

Public Methods

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

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

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

void setPoints (const std::vector< float > &xpoints, const std::vector< float > &ypoints, const std::vector< float > &zpoints)
 Updates the 3d vector points with a new set of vector float points. More...

void setEnableLighting (bool f)
 Enable or disable lighting. More...

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

void setColors (std::vector< QColor > &c)
 Set the colors vector. More...

void setPointSize (int ps)
 Set the point size. More...

int getPointSize ()
 Get the point size. More...


Protected Methods

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<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...

int numPoints
 The number of points. More...

std::vector<QColorcolors
 The colors vector. More...

bool enableLighting
 The bool flag for lighting. More...

int pointSize
 The point size of the 3d point. More...


Detailed Description

The Txq3dPoints is a set of three dimensional points with a size.

Copyright 2002 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq3dPoints.h,v 1.8 2002/04/16 18:23:07 kgl Exp

Definition at line 35 of file Txq3dPoints.h.


Constructor & Destructor Documentation

Txq3dPoints::Txq3dPoints ( )
 

Default construction of a Txq3dPoints.

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

Constructs 3d 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

Txq3dPoints::~Txq3dPoints ( ) [virtual]
 

The destructor.


Member Function Documentation

void Txq3dPoints::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 Txq3dPoints::dump ( QTextStream * ts ) [protected, virtual]
 

Dump the objects contents to the text stream ts.

Parameters:
ts   the text stream to dump contents.

Reimplemented from TxqDrawable.

int Txq3dPoints::getPointSize ( ) [inline]
 

Get the point size.

Definition at line 101 of file Txq3dPoints.h.

void Txq3dPoints::initialize ( ) [protected, virtual]
 

Initialize the class data members.

Reimplemented from TxqDrawable.

void Txq3dPoints::paintGL ( ) [protected, virtual]
 

Paints the line.

Reimplemented from Txq3dDrawable.

void Txq3dPoints::setColors ( std::vector< QColor > & c ) [inline]
 

Set the colors vector.

Definition at line 91 of file Txq3dPoints.h.

void Txq3dPoints::setEnableLighting ( bool f ) [inline]
 

Enable or disable lighting.

Parameters:
f   set true if lighting is enabled.

Definition at line 77 of file Txq3dPoints.h.

void Txq3dPoints::setPointSize ( int ps ) [inline]
 

Set the point size.

Definition at line 96 of file Txq3dPoints.h.

void Txq3dPoints::setPoints ( const std::vector< float > & xpoints,
const std::vector< float > & ypoints,
const std::vector< float > & zpoints )
 

Updates the 3d vector points with a new set of vector float points.

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


Member Data Documentation

std::vector< QColor > Txq3dPoints::colors [private]
 

The colors vector.

Definition at line 146 of file Txq3dPoints.h.

bool Txq3dPoints::enableLighting [private]
 

The bool flag for lighting.

Definition at line 151 of file Txq3dPoints.h.

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

The vector of float x points making up the line.

Definition at line 126 of file Txq3dPoints.h.

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

The vector of float y points making up the line.

Definition at line 131 of file Txq3dPoints.h.

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

The vector of float z points making up the line.

Definition at line 136 of file Txq3dPoints.h.

int Txq3dPoints::numPoints [private]
 

The number of points.

Definition at line 141 of file Txq3dPoints.h.

int Txq3dPoints::pointSize [private]
 

The point size of the 3d point.

Definition at line 156 of file Txq3dPoints.h.


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