|
| SHAPE_SIMPLE () |
| Constructor Creates an empty polygon.
|
|
| SHAPE_SIMPLE (const SHAPE_SIMPLE &aOther) |
|
SHAPE * | Clone () const override |
| Function Clone() More...
|
|
void | Clear () |
| Function Clear() Removes all points from the polygon.
|
|
const BOX2I | BBox (int aClearance=0) const override |
| Function BBox() More...
|
|
int | PointCount () const |
| Function PointCount() More...
|
|
VECTOR2I & | Point (int aIndex) |
| Function Point() More...
|
|
const VECTOR2I & | CPoint (int aIndex) const |
| Function CPoint() More...
|
|
const VECTOR2D | CDPoint (int aIndex) const |
| Function CDPoint() More...
|
|
const SHAPE_LINE_CHAIN & | Vertices () const |
| Function Vertices() More...
|
|
void | Append (int aX, int aY) |
| Function Append() More...
|
|
void | Append (const VECTOR2I &aP) |
| Function Append() More...
|
|
bool | Collide (const SEG &aSeg, int aClearance=0) const override |
| Function Collide() More...
|
|
void | Move (const VECTOR2I &aVector) override |
|
bool | IsSolid () const override |
|
| SHAPE_SIMPLE () |
| Constructor Creates an empty polygon.
|
|
| SHAPE_SIMPLE (const SHAPE_SIMPLE &aOther) |
|
SHAPE * | Clone () const override |
| Function Clone() More...
|
|
void | Clear () |
| Function Clear() Removes all points from the polygon.
|
|
const BOX2I | BBox (int aClearance=0) const override |
| Function BBox() More...
|
|
int | PointCount () const |
| Function PointCount() More...
|
|
VECTOR2I & | Point (int aIndex) |
| Function Point() More...
|
|
const VECTOR2I & | CPoint (int aIndex) const |
| Function CPoint() More...
|
|
const VECTOR2D | CDPoint (int aIndex) const |
| Function CDPoint() More...
|
|
const SHAPE_LINE_CHAIN & | Vertices () const |
| Function Vertices() More...
|
|
void | Append (int aX, int aY) |
| Function Append() More...
|
|
void | Append (const VECTOR2I &aP) |
| Function Append() More...
|
|
bool | Collide (const SEG &aSeg, int aClearance=0) const override |
| Function Collide() More...
|
|
void | Move (const VECTOR2I &aVector) override |
|
bool | IsSolid () const override |
|
| SHAPE (SHAPE_TYPE aType) |
| Constructor. More...
|
|
SHAPE_TYPE | Type () const |
| Function Type() More...
|
|
virtual bool | Collide (const VECTOR2I &aP, int aClearance=0) const |
| Function Collide() More...
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance, VECTOR2I &aMTV) const |
| Function Collide() More...
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance=0) const |
|
virtual VECTOR2I | Centre () const |
| Function Centre() More...
|
|
virtual bool | Parse (std::stringstream &aStream) |
|
virtual const std::string | Format () const |
|
| SHAPE (SHAPE_TYPE aType) |
| Constructor. More...
|
|
SHAPE_TYPE | Type () const |
| Function Type() More...
|
|
virtual bool | Collide (const VECTOR2I &aP, int aClearance=0) const |
| Function Collide() More...
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance, VECTOR2I &aMTV) const |
| Function Collide() More...
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance=0) const |
|
virtual VECTOR2I | Centre () const |
| Function Centre() More...
|
|
virtual bool | Parse (std::stringstream &aStream) |
|
virtual const std::string | Format () const |
|
Class SHAPE_SIMPLE.
Represents a simple polygon consisting of a zero-thickness closed chain of connected line segments.
Internally the vertices are held in a SHAPE_LINE_CHAIN, please note that there is a "virtual" line segment between the last and first vertex.