31 #ifndef TEXT_MODULE_H_ 32 #define TEXT_MODULE_H_ 46 #define UMBILICAL_COLOR LIGHTBLUE 102 void Rotate(
const wxPoint& aOffset,
double aAngle )
override;
113 void Mirror(
const wxPoint& aCentre,
bool aMirrorAroundXAxis );
201 virtual bool TextHitTest(
const EDA_RECT& aRect,
bool aContains =
false,
int aAccuracy = 0 )
const override;
208 virtual bool HitTest(
const EDA_RECT& aRect,
bool aContained =
false,
int aAccuracy = 0 )
const override 210 return TextHitTest( aRect, aContained, aAccuracy );
215 return wxT(
"MTEXT" );
228 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
233 virtual void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
249 #endif // TEXT_MODULE_H_ KICAD_T Type() const
Function Type()
TEXT_TYPE
Text module type: there must be only one (and only one) for each of the reference and value texts in ...
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
virtual unsigned int ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Function ViewGetLOD() Returns the level of detail (LOD) of the item.
Class LINE_READER is an abstract class from which implementation specific LINE_READERs may be derived...
void SwapEffects(EDA_TEXT &aTradingPartner)
Function SwapEffects swaps the text effects of the two involved instances.
double GetDrawRotation() const
PNG memory record (file in memory).
const wxPoint & GetTextPos() const
TEXTE_MODULE(MODULE *parent, TEXT_TYPE text_type=TEXT_is_DIVERS)
static bool ClassOf(const EDA_ITEM *aItem)
Class BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class...
virtual const BOX2I ViewBBox() const override
Function ViewBBox() returns the bounding box of the item covering all its layers. ...
TEXT_TYPE GetType() const
const wxPoint & GetPos0() const
void Rotate(const wxPoint &aOffset, double aAngle) override
Rotate text, in footprint editor (for instance in footprint rotation transform)
Classes BOARD_ITEM and BOARD_CONNECTED_ITEM.
void SetEffects(const EDA_TEXT &aSrc)
Function SetEffects sets the text effects from another instance.
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
void Move(const wxPoint &aMoveVector) override
move text in move transform, in footprint editor
void SetTextPos(const wxPoint &aPoint)
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
void SwapEffects(TEXTE_MODULE &aTradingPartner)
Function SwapEffects swaps the text effects of the two involved instances.
bool IsParentFlipped() const
virtual wxString GetShownText() const override
Returns the string actually shown after processing of the base text.
Definition of base KiCad text object.
static wxPoint ZeroOffset
A value of wxPoint(0,0) which can be passed to the Draw() functions.
Class EDA_TEXT is a mix-in class (via multiple inheritance) that handles texts such as labels...
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
virtual bool HitTest(const wxPoint &aPosition) const override
Function HitTest tests if aPosition is contained within or on the bounding area of an item...
void GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override
Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects with it's internal state for displ...
wxString GetClass() const override
Function GetClass returns the class name.
void Flip(const wxPoint &aCentre) override
Flip entity during module flip.
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
virtual void SetPosition(const wxPoint &aPos) override
void Draw(EDA_DRAW_PANEL *aPanel, wxDC *aDC, GR_DRAWMODE aDrawMode, const wxPoint &aOffset=ZeroOffset) override
Function Draw Draw the text according to the footprint pos and orient.
void SetType(TEXT_TYPE aType)
void SetPos0(const wxPoint &aPos)
class TEXTE_MODULE, text in a footprint
void SetLocalCoord()
Set relative coordinates.
virtual bool HitTest(const EDA_RECT &aRect, bool aContained=false, int aAccuracy=0) const override
Function HitTest tests if the aRect intersects or contains this object (depending on aContained)...
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
Function ViewGetLayers() Returns the all the layers within the VIEW the object is painted on...
virtual const wxPoint GetPosition() const override
wxPoint m_Pos0
text coordinates relative to the footprint anchor, orient 0.
void SetUnlocked(bool unlocked)
virtual bool TextHitTest(const wxPoint &aPoint, int aAccuracy=0) const override
Function TextHitTest Test if aPoint is within the bounds of this object.
void SetDrawCoord()
Set absolute coordinates.
Class EDA_RECT handles the component boundary box.
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
void DrawUmbilical(EDA_DRAW_PANEL *aPanel, wxDC *aDC, GR_DRAWMODE aDrawMode, const wxPoint &aOffset=ZeroOffset)
Function DrawUmbilical draws a line from the TEXTE_MODULE origin to parent MODULE origin...
void Mirror(const wxPoint &aCentre, bool aMirrorAroundXAxis)
Mirror text position in footprint edition the text itself is not mirrored, and the layer not modified...
void SetEffects(const TEXTE_MODULE &aSrc)
Function SetEffects sets the text effects from another instance.
void SetTextAngle(double aAngle)
Class EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
TEXT_TYPE m_Type
0=ref, 1=val, etc.
double GetDrawRotationRadians() const