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

Txq2dVector Class Reference

A Txq2dVector is a drawable consisting of a shaft and arror. More...

#include <Txq2dVector.h>

Inheritance diagram for Txq2dVector::

Txq2dLineSeg Txq2dSeg Txq2dDrawable TxqDrawable List of all members.

Public Methods

 Txq2dVector ()
 Creates a Txq2dVector with the default start and end points. More...

 Txq2dVector (const std::vector< double > &xstart, const std::vector< double > &ystart, const std::vector< double > &xend, const std::vector< double > &yend)
 Constructs the vectors by secifying the start and end point of the vector, in the real-world coordinate system. More...

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

void setPoints (const std::vector< double > &xstart, const std::vector< double > &ystart, const std::vector< double > &xend, const std::vector< double > &yend)
 Set the vector points by secifying the start and end point of the vector, in the real-world coordinate system. More...

void paint (QPainter *g)
 Paints the vector(s). More...

void setColor (QColor c)
 Set the color. More...

void setPrintColor (QColor c)
 Set the print color. More...


Protected Methods

void makeVectors ()
 Make the vector. More...

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

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


Private Methods

void addPoint (TxqDoublePoint start, TxqDoublePoint end)
 Add a point to the points container. More...


Private Attributes

std::vector<Txq2dLineSeg*> lineSeg
 The vector of Txq2dLineSeg's making the vectors. More...

int lineSegPoints
 The length of the points vector. More...


Detailed Description

A Txq2dVector is a drawable consisting of a shaft and arror.

It is make up of Txq2dLineSeg segments.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq2dVector.h,v 1.6 2002/01/17 19:44:52 kgl Exp

Definition at line 39 of file Txq2dVector.h.


Constructor & Destructor Documentation

Txq2dVector::Txq2dVector ( )
 

Creates a Txq2dVector with the default start and end points.

Txq2dVector::Txq2dVector ( const std::vector< double > & xstart,
const std::vector< double > & ystart,
const std::vector< double > & xend,
const std::vector< double > & yend )
 

Constructs the vectors by secifying the start and end point of the vector, in the real-world coordinate system.

Parameters:
xstart   the vector of double X start points
ystart   the vector of double Y start points
xend   the vector of double X end points
yend   the vector of double Y end points

Txq2dVector::~Txq2dVector ( ) [virtual]
 

The destructor.


Member Function Documentation

void Txq2dVector::addPoint ( TxqDoublePoint start,
TxqDoublePoint end ) [private]
 

Add a point to the points container.

Parameters:
start   the TxqDoublePoint start point
end   the TxqDoublePoint end point

void Txq2dVector::dump ( QTextStream * ts ) [protected, virtual]
 

Dump the object contents to the text stream ts.

Parameters:
ts   the text stream to dump contents.

Reimplemented from Txq2dLineSeg.

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

Initialize the class data members.

Reimplemented from Txq2dLineSeg.

void Txq2dVector::makeVectors ( ) [protected]
 

Make the vector.

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

Paints the vector(s).

Parameters:
g   the paint device

Reimplemented from Txq2dLineSeg.

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

Set the color.

Parameters:
c   the vector color

Reimplemented from TxqDrawable.

void Txq2dVector::setPoints ( const std::vector< double > & xstart,
const std::vector< double > & ystart,
const std::vector< double > & xend,
const std::vector< double > & yend )
 

Set the vector points by secifying the start and end point of the vector, in the real-world coordinate system.

Parameters:
xstart   the vector of double X start points
ystart   the vector of double Y start points
xend   the vector of double X end points
yend   the vector of double Y end points

void Txq2dVector::setPrintColor ( QColor c ) [virtual]
 

Set the print color.

Parameters:
c   the vector print color

Reimplemented from TxqDrawable.


Member Data Documentation

std::vector< Txq2dLineSeg *> Txq2dVector::lineSeg [private]
 

The vector of Txq2dLineSeg's making the vectors.

Definition at line 129 of file Txq2dVector.h.

int Txq2dVector::lineSegPoints [private]
 

The length of the points vector.

Definition at line 134 of file Txq2dVector.h.


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