#include <polyver.h>
Public Member Functions | |
| a2dVertexArray () | |
| constructor | |
| a2dVertexArray (const a2dVertexArray &other) | |
| constructor | |
| a2dVertexArray (const a2dVertexList &other) | |
| ~a2dVertexArray () | |
| destructor | |
| a2dVertexArray & | operator= (const a2dVertexArray &other) |
| operator = | |
| a2dVertexArray & | operator= (const a2dVertexList &other) |
| a2dLineSegmentPtr | GetPreviousAround (wxUint32 index) const |
| get the previous segment as a polygon ( GetLast() is no previous ) | |
| a2dLineSegmentPtr | GetNextAround (wxUint32 index) const |
| get the next segment as a polygon ( GetFirst() is no next ) | |
| a2dLineSegmentPtr | Item (wxUint32 index) |
| a2dLineSegmentPtr | Item (wxUint32 index) const |
| void | RemoveAt (size_t index) |
| void | Insert (a2dLineSegment *segment, size_t index) |
| double | Length () const |
| calculate length of path | |
| void | AddPoint (const a2dPoint2D &point, bool atEnd=true) |
| add point to end or begin | |
| void | AddPoint (double x, double y, bool atEnd=true) |
| add point to end or begin | |
| void | SetPointAdjustArcs (unsigned int n, double x, double y, bool polygon) |
| sets a point of a segment and adjusts arc it midpoints. | |
| void | SetPointAdjustArcs (a2dLineSegmentPtr seg, double x, double y, bool polygon) |
| sets a point of a segment and adjusts arc it midpoints. | |
| double | CalcArea () const |
| void | ConvertToLines (double aberation=0) |
| Convert complex segments to line segments. | |
| void | Transform (const a2dAffineMatrix &world) |
| transform all segments with given matrix | |
| bool | HasArcs () const |
| return true if there are a2dArcSegment segments. | |
| a2dBoundingBox | GetBbox (const a2dAffineMatrix &lworld=a2dIDENTITY_MATRIX) |
| return a boundingbox of a transformed vertexarray | |
| a2dVertexArray * | Contour (double distance, a2dPATH_END_TYPE pathtype) |
| create a contour around polygon/polyline | |
| a2dVertexArray * | ConvertSplinedPolygon (double Aber) const |
| Spline conversion for polygon. | |
| a2dVertexArray * | ConvertSplinedPolyline (double Aber) const |
| Spline conversion for polyline. | |
| a2dVpath * | ConvertToVpath (bool arc, bool closed=false) |
| return converted vector Vpath, arc segments stay intact if arc is true | |
| a2dHit | HitTestPolygon (const a2dPoint2D &ptest, double margin) |
| extensive hittesting on vertex list seen as polygon. | |
| a2dHit | HitTestPolyline (const a2dPoint2D &ptest, double margin) |
| extensive hittesting on vertex list seen as polyline. | |
| bool | RemoveRedundant (bool polygon) |
| line segments ( not arcs ) with same point are removed | |
| a2dVertexList * | GetRedundant (bool polygon, double smallest=0) |
| line segments ( not arcs ) with same point are returned | |
Holds a wxArray of a2dLineSegment objects. Drawing the sequence of segments, represents the form of the shape. Shape depends on the type of segment and style of that segment. There are two type, straight line segments and arc segments
Definition at line 489 of file polyver.h.
| double a2dVertexArray::CalcArea | ( | ) | const |
calculate the area of simple polygons (not selfintersecting) coordinates may be negatif
Definition at line 778 of file polyver.cpp.
| void a2dVertexArray::Transform | ( | const a2dAffineMatrix & | world | ) |
transform all segments with given matrix
Definition at line 820 of file polyver.cpp.
| a2dHit a2dVertexArray::HitTestPolygon | ( | const a2dPoint2D & | ptest, | |
| double | margin | |||
| ) |
extensive hittesting on vertex list seen as polygon.
| ptest | point to test against polygon. | |
| margin | point with this margin around. |
Definition at line 1250 of file polyver.cpp.
| a2dHit a2dVertexArray::HitTestPolyline | ( | const a2dPoint2D & | ptest, | |
| double | margin | |||
| ) |
extensive hittesting on vertex list seen as polyline.
| ptest | point to test against polyline. | |
| margin | point with this margin around. |
Definition at line 1449 of file polyver.cpp.