#include <Txq2dSegmented.h>
Inheritance diagram for Txq2dSegmented::

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<Txq2dSeg> | getSegments () |
| Returns the vector of segments. More... | |
Private Attributes | |
| std::vector<Txq2dSeg> | segments |
| The class segment vector. More... | |
A Txq2dSegmented object will contain a vector of Txq2dSeg objects which are pieces of curves or straight lines which have two end points.
Definition at line 35 of file Txq2dSegmented.h.
|
|
The default constructor.
Definition at line 42 of file Txq2dSegmented.h. |
|
|
the default destructor.
Definition at line 47 of file Txq2dSegmented.h. |
|
|
Adds segments to the vector list of segments.
Definition at line 58 of file Txq2dSegmented.h. |
|
|
Returns number of segments.
Definition at line 72 of file Txq2dSegmented.h. |
|
|
Returns i-th element of the list of segments.
Definition at line 67 of file Txq2dSegmented.h. |
|
|
Returns the vector of segments.
Definition at line 87 of file Txq2dSegmented.h. |
|
|
paint method must be defined but does nothing.
Reimplemented from Txq2dSeg. Reimplemented in Txq2dPolygon, and Txq2dPolygonArray. Definition at line 52 of file Txq2dSegmented.h. |
|
|
Sets the number of segments.
Definition at line 78 of file Txq2dSegmented.h. |
|
|
The class segment vector.
Definition at line 97 of file Txq2dSegmented.h. |
Copyright Tech-X Corporation, all rights reserved.