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

Txq2dSegmented Class Reference

Txq2dSegmented is a figure made up of a finite number of segments. More...

#include <Txq2dSegmented.h>

Inheritance diagram for Txq2dSegmented::

Txq2dSeg Txq2dDrawable TxqDrawable Txq2dOutlined Txq2dPolygon Txq2dPolygonArray List of all members.

Public Methods

 Txq2dSegmented ()
 The default constructor. More...

 ~Txq2dSegmented ()
 the default destructor. More...

void paint (QPainter *g)
 paint method must be defined but does nothing. More...

void addSegment (Txq2dSeg seg)
 Adds segments to the vector list of segments. More...

Txq2dSeg getSegment (int i)
 Returns i-th element of the list of segments. More...

int getNumSegments ()
 Returns number of segments. More...

void resetSegments (int initialCapacity)
 Sets the number of segments. More...

std::vector<Txq2dSeggetSegments ()
 Returns the vector of segments. More...


Private Attributes

std::vector<Txq2dSegsegments
 The class segment vector. More...


Detailed Description

Txq2dSegmented is a figure made up of a finite number of segments.

A Txq2dSegmented object will contain a vector of Txq2dSeg objects which are pieces of curves or straight lines which have two end points.

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

Definition at line 35 of file Txq2dSegmented.h.


Constructor & Destructor Documentation

Txq2dSegmented::Txq2dSegmented ( ) [inline]
 

The default constructor.

Definition at line 42 of file Txq2dSegmented.h.

Txq2dSegmented::~Txq2dSegmented ( ) [inline]
 

the default destructor.

Definition at line 47 of file Txq2dSegmented.h.


Member Function Documentation

void Txq2dSegmented::addSegment ( Txq2dSeg seg ) [inline]
 

Adds segments to the vector list of segments.

Parameters:
seg   the segment to add

Definition at line 58 of file Txq2dSegmented.h.

int Txq2dSegmented::getNumSegments ( ) [inline]
 

Returns number of segments.

Definition at line 72 of file Txq2dSegmented.h.

Txq2dSeg Txq2dSegmented::getSegment ( int i ) [inline]
 

Returns i-th element of the list of segments.

Parameters:
i   the index number
Returns:
the Txq2dSeg at this index

Definition at line 67 of file Txq2dSegmented.h.

std::vector< Txq2dSeg > Txq2dSegmented::getSegments ( ) [inline]
 

Returns the vector of segments.

Definition at line 87 of file Txq2dSegmented.h.

void Txq2dSegmented::paint ( QPainter * g ) [inline, virtual]
 

paint method must be defined but does nothing.

Reimplemented from Txq2dSeg.

Reimplemented in Txq2dPolygon, and Txq2dPolygonArray.

Definition at line 52 of file Txq2dSegmented.h.

void Txq2dSegmented::resetSegments ( int initialCapacity ) [inline]
 

Sets the number of segments.

Parameters:
initialCapacity   the size of the segments vector

Definition at line 78 of file Txq2dSegmented.h.


Member Data Documentation

std::vector< Txq2dSeg > Txq2dSegmented::segments [private]
 

The class segment vector.

Definition at line 97 of file Txq2dSegmented.h.


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