56 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
67 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override 82 void Move(
const wxPoint& aMoveVector )
override 89 void Rotate(
const wxPoint& aRotCentre,
double aAngle )
override;
91 void Flip(
const wxPoint& aCentre,
bool aFlipLeftRight )
override;
95 bool HitTest(
const wxPoint& aPosition,
int aAccuracy )
const override 103 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override 105 return TextHitTest( aRect, aContained, aAccuracy );
110 return wxT(
"PTEXT" );
127 int aClearanceValue,
int aError,
ERROR_LOC aErrorLoc,
128 bool aIgnoreLineWidth =
false )
const override;
145 virtual void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
149 #endif // #define PCB_TEXT_H void Offset(const wxPoint &aOffset)
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
virtual bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
PNG memory record (file in memory).
virtual void SetPosition(const wxPoint &aPos) override
virtual void SwapData(BOARD_ITEM *aImage) override
Swap data between aItem and aImage.
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip this object, i.e.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void TransformTextShapeWithClearanceToPolygon(SHAPE_POLY_SET &aCornerBuffer, PCB_LAYER_ID aLayer, int aClearanceValue, int aError, ERROR_LOC aErrorLoc) const
Function TransformTextShapeWithClearanceToPolygon Convert the text to a polygonSet describing the act...
void SetTextAngle(double aAngle) override
wxString GetClass() const override
Return the class name.
void TransformShapeWithClearanceToPolygon(SHAPE_POLY_SET &aCornerBuffer, PCB_LAYER_ID aLayer, int aClearanceValue, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=false) const override
Convert the item shape to a closed polygon.
void SetTextPos(const wxPoint &aPoint)
class PCB_TEXT, text on a layer
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.
The base class for create windows for drawing purpose.
PCB_TEXT(BOARD_ITEM *parent)
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
virtual std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
wxString GetShownText(int aDepth=0) const override
Return the string actually shown after processing of the base text.
PCB_LAYER_ID
A quick note on layer IDs:
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
virtual wxPoint GetPosition() const override
Represent a set of closed polygons.
bool IsType(const KICAD_T aScanTypes[]) const override
Check whether the item is one of the listed types.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
static bool ClassOf(const EDA_ITEM *aItem)
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
bool HitTest(const EDA_RECT &aRect, bool aContained, int aAccuracy=0) const override
void Move(const wxPoint &aMoveVector) override
Move this object.
Handle the component boundary box.
virtual bool TextHitTest(const wxPoint &aPoint, int aAccuracy=0) const
Test if aPoint is within the bounds of this object.
A base class for most all the KiCad significant classes used in schematics and boards.
bool HitTest(const wxPoint &aPosition, int aAccuracy) const override
Test if aPosition is contained within or on the bounding box of an item.
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate this object.
const wxPoint & GetTextPos() const
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
KICAD_T Type() const
Returns the type of object.