57 return wxT(
"PCB_SHAPE" );
65 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
104 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override 106 return hitTest( aPosition, aAccuracy );
109 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override 111 return hitTest( aRect, aContained, aAccuracy );
114 virtual void Move(
const wxPoint& aMoveVector )
override;
116 virtual void Rotate(
const wxPoint& aRotCentre,
double aAngle )
override;
118 virtual void Flip(
const wxPoint& aCentre,
bool aFlipLeftRight )
override;
120 void Scale(
double aScale );
137 bool ignoreLineWidth =
false )
const override;
155 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
163 #endif // PCB_SHAPE_H An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
virtual void SwapData(BOARD_ITEM *aImage) override
Swap data between aItem and aImage.
wxPoint getCenter() const
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void Scale(double aScale)
virtual EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool hitTest(const wxPoint &aPosition, int aAccuracy=0) const
virtual BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool operator()(const BOARD_ITEM *aFirst, const BOARD_ITEM *aSecond) const
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
The base class for create windows for drawing purpose.
virtual void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate this object.
PCB_SHAPE(BOARD_ITEM *aParent, KICAD_T idtype, SHAPE_T shapetype)
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
wxPoint getParentPosition() const override
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
virtual void Move(const wxPoint &aMoveVector) override
Move this object.
Represent a set of closed polygons.
wxPoint GetCenter() const override
This defaults to the center of the bounding box if not overridden.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
void SetPosition(const wxPoint &aPos) override
bool HitTest(const EDA_RECT &aRect, bool aContained, int aAccuracy=0) const override
Test if aRect intersects this item.
void setPosition(const wxPoint &aPos)
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const override
Make a set of SHAPE objects representing the PCB_SHAPE.
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
virtual wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
wxPoint GetPosition() const override
const EDA_RECT getBoundingBox() const
bool IsType(const KICAD_T aScanTypes[]) const override
Check whether the item is one of the listed types.
wxString GetClass() const override
Return the class name.
BITMAPS
A list of all bitmap identifiers.
FOOTPRINT * GetParentFootprint() const
Return the parent footprint or NULL if PCB_SHAPE does not belong to a footprint.
PCB_LAYER_ID
A quick note on layer IDs:
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Handle the component boundary box.
const wxPoint GetFocusPosition() const override
Allows items to return their visual center rather than their anchor.
A base class for most all the KiCad significant classes used in schematics and boards.
static bool ClassOf(const EDA_ITEM *aItem)
wxPoint getPosition() const
virtual void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip this object, i.e.
EDA_MSG_PANEL items for displaying messages.
void TransformShapeWithClearanceToPolygon(SHAPE_POLY_SET &aCornerBuffer, PCB_LAYER_ID aLayer, int aClearanceValue, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=false) const override
Convert the shape to a closed polygon.
class PCB_SHAPE, a segment not on copper layers
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
KICAD_T Type() const
Returns the type of object.
double getParentOrientation() const override