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

Public Methods | |
| Txq2dPolygon () | |
| This constructor is default. More... | |
| Txq2dPolygon (const std::vector< int > &xpoints, const std::vector< int > &ypoints) | |
| Constructs a Txq2dPolygon with the points xpoints[i], ypoints[i] as the vertices. More... | |
| Txq2dPolygon (const std::vector< double > &xpoints, const std::vector< double > &ypoints) | |
| Constructs a Txq2dPolygon with the points xpoints[i], ypoints[i] as the vertices. More... | |
| Txq2dPolygon (const std::vector< QPoint > &points) | |
| Constructs a Txq2dPolygon with the points points[i].x(), points[i].y() as the vertices. More... | |
| virtual | ~Txq2dPolygon () |
| destructor. More... | |
| void | resetSegments () |
| Resets the segments vector. More... | |
| void | makePolygon (int cx, int cy) |
| Makes a polygon suitable for drawing with drawPolygon. More... | |
| void | updatePolarArrays () |
| Updates the polar arrays of the Txq2dPolygon from the x and y arrays of the Polygon and the current center point. More... | |
| void | addPoint (int x, int y) |
| Appends a point to the (r,theta) array and to the Polygon of Txq2dPolygon. More... | |
| void | addPoint (double x, double y) |
| Appends a point to the (r,theta) array and to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (int x1, int y1, int x2, int y2) |
| Appends the points x1,y1, x2,y2 to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (double x1, double y1, double x2, double y2) |
| Appends the points x1,y1, x2,y2 to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (QPoint p1, QPoint p2) |
| Appends the points p1.x, p1,y, p2.x, p2.y to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (const std::vector< int > &xpoints, const std::vector< int > &ypoints) |
| Appends the points x[i], y[i] to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (const std::vector< double > &xpoints, const std::vector< double > &ypoints) |
| Appends the points x[i], y[i] to the Polygon of Txq2dPolygon. More... | |
| void | setPoints (const std::vector< QPoint > &points) |
| Appends the points p.x[i], p.y[i] to the Polygon of Txq2dPolygon. More... | |
| void | clearPoints () |
| Clears the polygon be creating a new one. More... | |
| void | rotate (double delta) |
| Rotates the Polygon of Txq2dPolygon. More... | |
| void | paint (QPainter *g) |
| Paints the polygon with fillPolygon() if it is set to be filled and drawPolygon() if it is set to be outlined. More... | |
| void | drawPolygon (QPainter *g) |
| Draw the polygon line by line. More... | |
Protected Methods | |
| void | initialize () |
| Initialize the class data members. More... | |
| void | dump (QTextStream *ts) |
| Dump the object contents to the text stream ts. More... | |
Private Attributes | |
| Polygon | polygon |
| The polygon. More... | |
Copyright 2000 by Tech-X Corporation
Definition at line 39 of file Txq2dPolygon.h.
|
|
This constructor is default.
|
|
|
Constructs a Txq2dPolygon with the points xpoints[i], ypoints[i] as the vertices.
|
|
|
Constructs a Txq2dPolygon with the points xpoints[i], ypoints[i] as the vertices.
|
|
|
Constructs a Txq2dPolygon with the points points[i].x(), points[i].y() as the vertices.
|
|
|
destructor.
|
|
|
Appends a point to the (r,theta) array and to the Polygon of Txq2dPolygon.
|
|
|
Appends a point to the (r,theta) array and to the Polygon of Txq2dPolygon.
|
|
|
Clears the polygon be creating a new one.
|
|
|
Draw the polygon line by line.
|
|
|
Dump the object contents to the text stream ts.
Reimplemented from TxqDrawable. |
|
|
Initialize the class data members.
Reimplemented from TxqDrawable. |
|
|
Makes a polygon suitable for drawing with drawPolygon. The params must be in screen coordinates!
|
|
|
Paints the polygon with fillPolygon() if it is set to be filled and drawPolygon() if it is set to be outlined.
Reimplemented from Txq2dSegmented. |
|
|
Resets the segments vector.
|
|
|
Rotates the Polygon of Txq2dPolygon.
Reimplemented from TxqDrawable. |
|
|
Appends the points p.x[i], p.y[i] to the Polygon of Txq2dPolygon.
|
|
|
Appends the points x[i], y[i] to the Polygon of Txq2dPolygon.
|
|
|
Appends the points x[i], y[i] to the Polygon of Txq2dPolygon.
|
|
|
Appends the points p1.x, p1,y, p2.x, p2.y to the Polygon of Txq2dPolygon.
|
|
|
Appends the points x1,y1, x2,y2 to the Polygon of Txq2dPolygon.
|
|
|
Appends the points x1,y1, x2,y2 to the Polygon of Txq2dPolygon.
|
|
|
Updates the polar arrays of the Txq2dPolygon from the x and y arrays of the Polygon and the current center point.
|
|
|
The polygon.
Definition at line 221 of file Txq2dPolygon.h. |
Copyright Tech-X Corporation, all rights reserved.