#include <SIG_Polygon.h>
Public Methods | |
SIG_Polygon (SIG_Geometry *within) | |
Quasi standard constructor. More... | |
SIG_Polygon (SIG_Geometry *mygeom, QTextStream & tx) | |
Unstreaming constructor. More... | |
~SIG_Polygon (void) | |
Destructor. More... | |
void | appendVertex (DL_vector pt) |
Appends a vertex to the polygon. More... | |
int | getNumVertices (void) const |
Returns the number of vertices. More... | |
DL_vector | getVertex (int nr) const |
Returns the ith vertex. More... | |
int | getVertexIndex (int nr) const |
Returns the index of the ith vertex. More... | |
void | writeToFileTransfer (QTextStream & tx) const |
Writes the polygon to a stream. More... | |
Protected Methods | |
SIG_Polygon (SIG_Geometry *within, SIG_Polygon *other) | |
"Unreal" copy constructor. More... | |
Private Attributes | |
SIG_Geometry* | myGeometry |
QArray<int> | vertices |
Friends | |
class | SIG_Geometry |
Definition at line 15 of file SIG_Polygon.h.
|
"Unreal" copy constructor. Duplicates the array of vertex indexes. This is intended to be called by SIG_Geometry only. You probably guess that this could be the reason why the constructor is protected. Definition at line 6 of file SIG_Polygon.cpp. |
|
Quasi standard constructor. This constructor creates an empty polygon. Definition at line 15 of file SIG_Polygon.cpp. |
|
Unstreaming constructor. Reads the polygon data from a stream. Definition at line 22 of file SIG_Polygon.cpp. |
|
Destructor.
Definition at line 39 of file SIG_Polygon.cpp. |
|
Appends a vertex to the polygon.
Definition at line 43 of file SIG_Polygon.cpp. |
|
Returns the number of vertices.
Definition at line 50 of file SIG_Polygon.cpp. Referenced by SIGEL_Visualisation::SIG_RobotRenderer::buildDisplayLists(). |
|
Returns the ith vertex.
Definition at line 55 of file SIG_Polygon.cpp. Referenced by SIGEL_Visualisation::SIG_RobotRenderer::buildDisplayLists(). |
|
Returns the index of the ith vertex. The index is an index into the array of vertices held in the SIG_Geometry object. Definition at line 60 of file SIG_Polygon.cpp. |
|
Writes the polygon to a stream.
Definition at line 65 of file SIG_Polygon.cpp. |
|
Definition at line 16 of file SIG_Polygon.h. |
|
Definition at line 19 of file SIG_Polygon.h. |
|
Definition at line 20 of file SIG_Polygon.h. |