52 bool IsType(
const std::vector<KICAD_T>& aScanTypes )
const override
57 for(
KICAD_T scanType : aScanTypes )
69 void SetTop(
int aVal )
override;
70 void SetLeft(
int aVal )
override;
93 void Flip(
const VECTOR2I& aCentre,
bool aFlipLeftRight )
override;
98 void Mirror(
const VECTOR2I& aCentre,
bool aMirrorAroundXAxis )
override;
106 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy )
const override;
107 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
111 bool aIgnoreLineWidth =
false )
const override;
122 return wxT(
"FP_TEXTBOX" );
131 virtual wxString
GetShownText(
int aDepth = 0,
bool aAllowExtraText =
true )
const override;
133 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
138 virtual void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
BITMAPS
A list of all bitmap identifiers.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
virtual void SetDrawCoord()
Set draw coordinates (absolute values ) from relative coordinates.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy) const override
Test if aPosition is inside or on the boundary of this item.
virtual wxString GetShownText(int aDepth=0, bool aAllowExtraText=true) const override
Return the string actually shown after processing of the base text.
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
void TransformShapeToPolygon(SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=false) const override
Convert the item shape to a closed polygon.
VECTOR2I m_Pos0
text coordinates relative to the footprint anchor, orient 0.
FP_TEXTBOX(FOOTPRINT *aParentFootprint)
void SetBottom(int aVal) override
void SetTop(int aVal) override
wxString GetParentAsString() const
int GetTextMargin() const
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
void Move(const VECTOR2I &aMoveVector) override
Move this object.
VECTOR2I GetDrawPos() const override
void SetPos0(const VECTOR2I &aPos)
void SetRight(int aVal) override
void TransformTextToPolySet(SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc) const
virtual EDA_ANGLE GetDrawRotation() const override
static bool ClassOf(const EDA_ITEM *aItem)
bool IsType(const std::vector< KICAD_T > &aScanTypes) const override
Check whether the item is one of the listed types.
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.
void Mirror(const VECTOR2I &aCentre, bool aMirrorAroundXAxis) override
Mirror the textbox's position, but not the text (or its justification).
const VECTOR2I & GetPos0() const
void Flip(const VECTOR2I &aCentre, bool aFlipLeftRight) override
Flip entity relative to aCentre.
std::vector< VECTOR2I > GetAnchorAndOppositeCorner() const
void SetLeft(int aVal) override
void Rotate(const VECTOR2I &aOffset, const EDA_ANGLE &aAngle) override
Rotate this object.
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
VECTOR2I GetTopLeft() const override
wxString GetClass() const override
Return the class name.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
VECTOR2I GetBotRight() const override
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
EDA_MSG_PANEL items for displaying messages.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
Represent a set of closed polygons.
An abstract shape on 2D plane.
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
PCB_LAYER_ID
A quick note on layer IDs:
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
@ PCB_FP_TEXT_T
class FP_TEXT, text in a footprint