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

Txq2dPolygonArray Class Reference

This class draws polygons. More...

#include <Txq2dPolygonArray.h>

Inheritance diagram for Txq2dPolygonArray::

Txq2dOutlined Txq2dSegmented Txq2dSeg Txq2dDrawable TxqDrawable List of all members.

Public Methods

 Txq2dPolygonArray (const vector< double > &x, const vector< double > &y, int np=4)
 This constructor draws np polygons before lifting the pen. More...

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

void paint (QPainter *g)
 Paint the polygons. More...


Protected Methods

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


Private Attributes

vector<double> x
 The X location vector. More...

vector<double> y
 The Y location vector. More...

int npoints
 The number of points in a polygon. More...


Detailed Description

This class draws polygons.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq2dPolygonArray.h,v 1.4 2001/10/12 18:58:11 kgl Exp

Definition at line 28 of file Txq2dPolygonArray.h.


Constructor & Destructor Documentation

Txq2dPolygonArray::Txq2dPolygonArray ( const vector< double > & x,
const vector< double > & y,
int np = 4 )
 

This constructor draws np polygons before lifting the pen.

Parameters:
x   the x location points
y   the y location points
np   the number of points in a polygon, defaulted to 4

Txq2dPolygonArray::~Txq2dPolygonArray ( ) [inline, virtual]
 

The destructor.

Definition at line 45 of file Txq2dPolygonArray.h.


Member Function Documentation

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

Dump the object contents to the text stream ts.

Parameters:
tx   the text stream to use.

Reimplemented from TxqDrawable.

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

Paint the polygons.

Parameters:
g   the paint device.

Reimplemented from Txq2dSegmented.


Member Data Documentation

int Txq2dPolygonArray::npoints [private]
 

The number of points in a polygon.

Definition at line 78 of file Txq2dPolygonArray.h.

vector< double > Txq2dPolygonArray::x [private]
 

The X location vector.

Definition at line 68 of file Txq2dPolygonArray.h.

vector< double > Txq2dPolygonArray::y [private]
 

The Y location vector.

Definition at line 73 of file Txq2dPolygonArray.h.


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