|
| SHAPE_LINE_CHAIN_BASE (SHAPE_TYPE aType) |
|
virtual bool | Collide (const VECTOR2I &aP, int aClearance=0, int *aActual=nullptr, VECTOR2I *aLocation=nullptr) const override |
| Check if point aP lies closer to us than aClearance.
|
|
virtual bool | Collide (const SEG &aSeg, int aClearance=0, int *aActual=nullptr, VECTOR2I *aLocation=nullptr) const override |
| Check if segment aSeg lies closer to us than aClearance.
|
|
SEG::ecoord | SquaredDistance (const VECTOR2I &aP, bool aOutlineOnly=false) const |
|
bool | PointInside (const VECTOR2I &aPt, int aAccuracy=0, bool aUseBBoxCache=false) const |
| Check if point aP lies inside a polygon (any type) defined by the line chain.
|
|
bool | PointOnEdge (const VECTOR2I &aP, int aAccuracy=0) const |
| Check if point aP lies on an edge or vertex of the line chain.
|
|
int | EdgeContainingPoint (const VECTOR2I &aP, int aAccuracy=0) const |
| Check if point aP lies on an edge or vertex of the line chain.
|
|
virtual const VECTOR2I | GetPoint (int aIndex) const =0 |
|
virtual const SEG | GetSegment (int aIndex) const =0 |
|
virtual size_t | GetPointCount () const =0 |
|
virtual size_t | GetSegmentCount () const =0 |
|
virtual bool | IsClosed () const =0 |
|
virtual BOX2I * | GetCachedBBox () const |
|
| SHAPE (SHAPE_TYPE aType) |
| Create an empty shape of type aType.
|
|
virtual SHAPE * | Clone () const |
| Return a dynamically allocated copy of the shape.
|
|
bool | IsNull () const |
| Return true if the shape is a null shape.
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance, VECTOR2I *aMTV) const |
| Check if the boundary of shape (this) lies closer to the shape aShape than aClearance, indicating a collision.
|
|
virtual bool | Collide (const SHAPE *aShape, int aClearance=0, int *aActual=nullptr, VECTOR2I *aLocation=nullptr) const |
|
virtual const BOX2I | BBox (int aClearance=0) const =0 |
| Compute a bounding box of the shape, with a margin of aClearance a collision.
|
|
virtual VECTOR2I | Centre () const |
| Compute a center-of-mass of the shape.
|
|
virtual void | Rotate (double aAngle, const VECTOR2I &aCenter={ 0, 0 })=0 |
|
virtual void | Move (const VECTOR2I &aVector)=0 |
|
virtual bool | IsSolid () const =0 |
|
virtual bool | Parse (std::stringstream &aStream) |
|
virtual const std::string | Format () const |
|
| SHAPE_BASE (SHAPE_TYPE aType) |
| Create an empty shape of type aType.
|
|
SHAPE_TYPE | Type () const |
| Return the type of the shape.
|
|
virtual bool | HasIndexableSubshapes () const |
|
virtual size_t | GetIndexableSubshapeCount () const |
|
virtual void | GetIndexableSubshapes (std::vector< SHAPE * > &aSubshapes) |
|