KiCad PCB EDA Suite
sch_text.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
30 #ifndef CLASS_TEXT_LABEL_H
31 #define CLASS_TEXT_LABEL_H
32 
33 
34 #include <macros.h>
35 #include <eda_text.h>
36 #include <sch_item_struct.h>
37 
38 
39 class LINE_READER;
41 
42 
43 /* Shape/Type of SCH_HIERLABEL and SCH_GLOBALLABEL
44  * mainly used to handle the graphic associated shape
45  */
52 };
53 
54 
55 extern const char* SheetLabelType[]; /* names of types of labels */
56 
57 
58 class SCH_TEXT : public SCH_ITEM, public EDA_TEXT
59 {
60 protected:
62 
66 
77 
78 public:
79  SCH_TEXT( const wxPoint& pos = wxPoint( 0, 0 ),
80  const wxString& text = wxEmptyString,
81  KICAD_T aType = SCH_TEXT_T );
82 
90  SCH_TEXT( const SCH_TEXT& aText );
91 
92  ~SCH_TEXT() { }
93 
94  virtual wxString GetClass() const override
95  {
96  return wxT( "SCH_TEXT" );
97  }
98 
105  void IncrementLabel( int aIncrement );
106 
118  virtual void SetLabelSpinStyle( int aSpinStyle );
119  int GetLabelSpinStyle() const { return m_spin_style; }
120 
122 
123  void SetShape( PINSHEETLABEL_SHAPE aShape ) { m_shape = aShape; }
124 
132  virtual wxPoint GetSchematicTextOffset() const;
133 
134  virtual void Draw( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
135  GR_DRAWMODE draw_mode, COLOR4D Color = COLOR4D::UNSPECIFIED ) override;
136 
144  virtual void CreateGraphicShape( std::vector <wxPoint>& aPoints, const wxPoint& Pos )
145  {
146  aPoints.clear();
147  }
148 
149  virtual void SwapData( SCH_ITEM* aItem ) override;
150 
151  virtual const EDA_RECT GetBoundingBox() const override;
152 
153  virtual bool Save( FILE* aFile ) const override;
154 
155  virtual bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
156 
157  virtual int GetPenSize() const override;
158 
159  // Geometric transforms (used in block operations):
160 
161  virtual void Move( const wxPoint& aMoveVector ) override
162  {
163  EDA_TEXT::Offset( aMoveVector );
164  }
165 
166  virtual void MirrorY( int aYaxis_position ) override;
167 
168  virtual void MirrorX( int aXaxis_position ) override;
169 
170  virtual void Rotate( wxPoint aPosition ) override;
171 
172  virtual bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
173 
174  virtual bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL ) override
175  {
176  return EDA_ITEM::Replace( aSearchData, m_Text );
177  }
178 
179  virtual bool IsReplaceable() const override { return true; }
180 
181  virtual void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) override;
182 
183  virtual bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList ) override;
184 
185  virtual bool IsDangling() const override { return m_isDangling; }
186 
187  virtual bool IsSelectStateChanged( const wxRect& aRect ) override;
188 
189  virtual void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
190 
191  virtual bool CanIncrementLabel() const override { return true; }
192 
193  virtual wxString GetSelectMenuText() const override;
194 
195  virtual BITMAP_DEF GetMenuImage() const override;
196 
197  virtual void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
198  SCH_SHEET_PATH* aSheetPath ) override;
199 
200  virtual wxPoint GetPosition() const override { return EDA_TEXT::GetTextPos(); }
201 
202  virtual void SetPosition( const wxPoint& aPosition ) override { EDA_TEXT::SetTextPos( aPosition ); }
203 
204  virtual bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
205 
206  virtual bool HitTest( const EDA_RECT& aRect, bool aContained = false,
207  int aAccuracy = 0 ) const override;
208 
209  virtual void Plot( PLOTTER* aPlotter ) override;
210 
211  virtual EDA_ITEM* Clone() const override;
212 
213  void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
214 
215 #if defined(DEBUG)
216  void Show( int nestLevel, std::ostream& os ) const override;
217 #endif
218 };
219 
220 
221 class SCH_LABEL : public SCH_TEXT
222 {
223 public:
224  SCH_LABEL( const wxPoint& pos = wxPoint( 0, 0 ), const wxString& text = wxEmptyString );
225 
226  // Do not create a copy constructor. The one generated by the compiler is adequate.
227 
229 
230  void Draw( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
231  GR_DRAWMODE draw_mode, COLOR4D Color = COLOR4D::UNSPECIFIED ) override;
232 
233  wxString GetClass() const override
234  {
235  return wxT( "SCH_LABEL" );
236  }
237 
238  void SetLabelSpinStyle( int aSpinStyle ) override;
239 
240  wxPoint GetSchematicTextOffset() const override;
241 
242  void MirrorX( int aXaxis_position ) override;
243 
244  void Rotate( wxPoint aPosition ) override;
245 
246  const EDA_RECT GetBoundingBox() const override;
247 
248  bool Save( FILE* aFile ) const override;
249 
250  bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
251 
252  bool IsConnectable() const override { return true; }
253 
254  wxString GetSelectMenuText() const override;
255 
256  BITMAP_DEF GetMenuImage() const override;
257 
258  bool IsReplaceable() const override { return true; }
259 
260  EDA_ITEM* Clone() const override;
261 
262 private:
263  bool doIsConnected( const wxPoint& aPosition ) const override { return EDA_TEXT::GetTextPos() == aPosition; }
264 };
265 
266 
267 class SCH_GLOBALLABEL : public SCH_TEXT
268 {
269 public:
270  SCH_GLOBALLABEL( const wxPoint& pos = wxPoint( 0, 0 ), const wxString& text = wxEmptyString );
271 
272  // Do not create a copy constructor. The one generated by the compiler is adequate.
273 
275 
276  void Draw( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
277  GR_DRAWMODE draw_mode, COLOR4D Color = COLOR4D::UNSPECIFIED ) override;
278 
279  wxString GetClass() const override
280  {
281  return wxT( "SCH_GLOBALLABEL" );
282  }
283 
284  void SetLabelSpinStyle( int aSpinStyle ) override;
285 
286  wxPoint GetSchematicTextOffset() const override;
287 
288  bool Save( FILE* aFile ) const override;
289 
290  bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
291 
292  const EDA_RECT GetBoundingBox() const override;
293 
294  void CreateGraphicShape( std::vector <wxPoint>& aPoints, const wxPoint& aPos ) override;
295 
296  void MirrorY( int aYaxis_position ) override;
297 
298  void MirrorX( int aXaxis_position ) override;
299 
300  void Rotate( wxPoint aPosition ) override;
301 
302  bool IsConnectable() const override { return true; }
303 
304  wxString GetSelectMenuText() const override;
305 
306  BITMAP_DEF GetMenuImage() const override;
307 
308  EDA_ITEM* Clone() const override;
309 
310 private:
311  bool doIsConnected( const wxPoint& aPosition ) const override { return EDA_TEXT::GetTextPos() == aPosition; }
312 };
313 
314 
315 class SCH_HIERLABEL : public SCH_TEXT
316 {
317 public:
318  SCH_HIERLABEL( const wxPoint& pos = wxPoint( 0, 0 ),
319  const wxString& text = wxEmptyString,
321 
322  // Do not create a copy constructor. The one generated by the compiler is adequate.
323 
325 
326  void Draw( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
327  GR_DRAWMODE draw_mode, COLOR4D Color = COLOR4D::UNSPECIFIED ) override;
328 
329  wxString GetClass() const override
330  {
331  return wxT( "SCH_HIERLABEL" );
332  }
333 
334  void SetLabelSpinStyle( int aSpinStyle ) override;
335 
336  wxPoint GetSchematicTextOffset() const override;
337 
338  void CreateGraphicShape( std::vector <wxPoint>& aPoints, const wxPoint& Pos ) override;
339 
340  bool Save( FILE* aFile ) const override;
341 
342  bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
343 
344  const EDA_RECT GetBoundingBox() const override;
345 
346  void MirrorY( int aYaxis_position ) override;
347 
348  void MirrorX( int aXaxis_position ) override;
349 
350  void Rotate( wxPoint aPosition ) override;
351 
352  bool IsConnectable() const override { return true; }
353 
354  wxString GetSelectMenuText() const override;
355 
356  BITMAP_DEF GetMenuImage() const override;
357 
358  EDA_ITEM* Clone() const override;
359 
360 private:
361  bool doIsConnected( const wxPoint& aPosition ) const override { return EDA_TEXT::GetTextPos() == aPosition; }
362 };
363 
364 #endif /* CLASS_TEXT_LABEL_H */
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Definition: sch_text.cpp:1012
PINSHEETLABEL_SHAPE GetShape() const
Definition: sch_text.h:121
void Offset(const wxPoint &aOffset)
Definition: eda_text.h:229
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
Definition: sch_text.cpp:1020
void SetShape(PINSHEETLABEL_SHAPE aShape)
Definition: sch_text.h:123
Class LINE_READER is an abstract class from which implementation specific LINE_READERs may be derived...
Definition: richio.h:81
virtual bool HitTest(const wxPoint &aPosition, int aAccuracy) const override
Function HitTest tests if aPosition is contained within or on the bounding box of an item...
Definition: sch_text.cpp:656
wxString m_Text
Definition: eda_text.h:346
bool IsReplaceable() const override
Function IsReplaceable.
Definition: sch_text.h:258
virtual bool CanIncrementLabel() const override
Definition: sch_text.h:191
PNG memory record (file in memory).
Definition: bitmap_types.h:38
virtual void Draw(EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &offset, GR_DRAWMODE draw_mode, COLOR4D Color=COLOR4D::UNSPECIFIED) override
Function Draw Draw a schematic item.
Definition: sch_text.cpp:344
virtual bool IsDangling() const override
Definition: sch_text.h:185
const wxPoint & GetTextPos() const
Definition: eda_text.h:224
virtual bool Save(FILE *aFile) const override
Function Save writes the data structures for this object out to a FILE in "*.sch" format...
Definition: sch_text.cpp:382
virtual int GetPenSize() const override
Function GetPenSize virtual pure.
Definition: sch_text.cpp:326
Base schematic object class definition.
bool Replace(wxFindReplaceData &aSearchData, wxString &aText)
Helper function used in search and replace dialog Function Replace performs a text replace on aText u...
SCH_GLOBALLABEL(const wxPoint &pos=wxPoint(0, 0), const wxString &text=wxEmptyString)
Definition: sch_text.cpp:1026
virtual bool IsReplaceable() const override
Function IsReplaceable.
Definition: sch_text.h:179
virtual void SetPosition(const wxPoint &aPosition) override
Function SetPosition set the schematic item position to aPosition.
Definition: sch_text.h:202
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...
Definition: sch_text.cpp:724
bool m_isDangling
True if not connected to another object if the object derive from SCH_TEXT supports connections...
Definition: sch_text.h:65
virtual bool Matches(wxFindReplaceData &aSearchData, void *aAuxData, wxPoint *aFindLocation) override
Function Matches compares the item against the search criteria in aSearchData.
Definition: sch_text.cpp:176
virtual void SetLabelSpinStyle(int aSpinStyle)
Function SetLabelSpinStyle sets a spin or rotation angle, along with specific horizontal and vertical...
Definition: sch_text.cpp:277
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
Definition: sch_text.cpp:1823
void SetTextPos(const wxPoint &aPoint)
Definition: eda_text.h:223
int GetLabelSpinStyle() const
Definition: sch_text.h:119
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
Definition: sch_text.cpp:1806
wxPoint GetSchematicTextOffset() const override
Function GetSchematicTextOffset (virtual)
Definition: sch_text.cpp:851
virtual bool Load(LINE_READER &aLine, wxString &aErrorMsg) override
Function Load reads a schematic item from aLine in a .sch file.
Definition: sch_text.cpp:421
Definition of base KiCad text object.
bool Save(FILE *aFile) const override
Function Save writes the data structures for this object out to a FILE in "*.sch" format...
Definition: sch_text.cpp:896
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
Definition: sch_text.cpp:1158
KICAD_T
Enum KICAD_T is the set of class identification values, stored in EDA_ITEM::m_StructType.
Definition: typeinfo.h:90
void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
Definition: sch_text.cpp:1785
virtual void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
Definition: sch_text.cpp:217
void Draw(EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &offset, GR_DRAWMODE draw_mode, COLOR4D Color=COLOR4D::UNSPECIFIED) override
Function Draw Draw a schematic item.
Definition: sch_text.cpp:981
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
Definition: sch_text.cpp:1483
This file contains miscellaneous commonly used macros and functions.
virtual void Move(const wxPoint &aMoveVector) override
Function Move moves the item by aMoveVector to a new position.
Definition: sch_text.h:161
Class NETLIST_OBJECT_LIST is a container holding and owning NETLIST_OBJECTs, which are connected item...
bool Load(LINE_READER &aLine, wxString &aErrorMsg) override
Function Load reads a schematic item from aLine in a .sch file.
Definition: sch_text.cpp:915
Class EDA_TEXT is a mix-in class (via multiple inheritance) that handles texts such as labels...
Definition: eda_text.h:114
bool Load(LINE_READER &aLine, wxString &aErrorMsg) override
Function Load reads a schematic item from aLine in a .sch file.
Definition: sch_text.cpp:1061
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Definition: sch_text.cpp:845
wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_text.h:329
virtual EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Definition: sch_text.cpp:131
virtual void GetConnectionPoints(std::vector< wxPoint > &aPoints) const override
Function GetConnectionPoints add all the connection points for this item to aPoints.
Definition: sch_text.cpp:577
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Definition: sch_text.cpp:1500
bool doIsConnected(const wxPoint &aPosition) const override
Function doIsConnected provides the object specific test to see if it is connected to aPosition...
Definition: sch_text.h:263
wxPoint GetSchematicTextOffset() const override
Function GetSchematicTextOffset (virtual)
Definition: sch_text.cpp:1185
void SetLabelSpinStyle(int aSpinStyle) override
Function SetLabelSpinStyle sets a spin or rotation angle, along with specific horizontal and vertical...
Definition: sch_text.cpp:857
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
Definition: gr_basic.h:41
const char * SheetLabelType[]
Definition: sch_text.cpp:57
virtual wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Definition: sch_text.cpp:614
void Draw(EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &offset, GR_DRAWMODE draw_mode, COLOR4D Color=COLOR4D::UNSPECIFIED) override
Function Draw Draw a schematic item.
Definition: sch_text.cpp:1635
void CreateGraphicShape(std::vector< wxPoint > &aPoints, const wxPoint &aPos) override
Function CreateGraphicShape Calculates the graphic shape (a polygon) associated to the text...
Definition: sch_text.cpp:1313
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
Definition: sch_text.cpp:1423
virtual void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Function GetEndPoints adds the schematic item end points to aItemList if the item has end points...
Definition: sch_text.cpp:500
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
Definition: sch_text.cpp:1702
virtual const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
Definition: sch_text.cpp:587
Class SCH_SHEET_PATH.
wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_text.h:233
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
Definition: sch_text.cpp:886
bool Load(LINE_READER &aLine, wxString &aErrorMsg) override
Function Load reads a schematic item from aLine in a .sch file.
Definition: sch_text.cpp:1525
bool IsConnectable() const override
Function IsConnectable returns true if the schematic item can connect to another schematic item...
Definition: sch_text.h:252
virtual wxPoint GetPosition() const override
Function GetPosition.
Definition: sch_text.h:200
~SCH_LABEL()
Definition: sch_text.h:228
void CreateGraphicShape(std::vector< wxPoint > &aPoints, const wxPoint &Pos) override
Function CreateGraphicShape Calculates the graphic shape (a polygon) associated to the text...
Definition: sch_text.cpp:1679
bool Save(FILE *aFile) const override
Function Save writes the data structures for this object out to a FILE in "*.sch" format...
Definition: sch_text.cpp:1042
Base plotter engine class.
Definition: plot_common.h:86
void Draw(EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &offset, GR_DRAWMODE draw_mode, COLOR4D Color=COLOR4D::UNSPECIFIED) override
Function Draw Draw a schematic item.
Definition: sch_text.cpp:1268
void SetLabelSpinStyle(int aSpinStyle) override
Function SetLabelSpinStyle sets a spin or rotation angle, along with specific horizontal and vertical...
Definition: sch_text.cpp:1601
PINSHEETLABEL_SHAPE
Definition: sch_text.h:46
virtual void CreateGraphicShape(std::vector< wxPoint > &aPoints, const wxPoint &Pos)
Function CreateGraphicShape Calculates the graphic shape (a polygon) associated to the text...
Definition: sch_text.h:144
virtual bool IsSelectStateChanged(const wxRect &aRect) override
Function IsSelectStateChanged checks if the selection state of an item inside aRect has changed...
Definition: sch_text.cpp:564
wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_text.h:279
virtual void Plot(PLOTTER *aPlotter) override
Function Plot plots the schematic item to aPlotter.
Definition: sch_text.cpp:676
bool IsConnectable() const override
Function IsConnectable returns true if the schematic item can connect to another schematic item...
Definition: sch_text.h:302
virtual bool IsDanglingStateChanged(std::vector< DANGLING_END_ITEM > &aItemList) override
Function IsDanglingStateChanged tests the schematic item to aItemList to check if it's dangling state...
Definition: sch_text.cpp:511
virtual void SwapData(SCH_ITEM *aItem) override
Function SwapData swap the internal data structures aItem with the schematic item.
Definition: sch_text.cpp:311
virtual void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
Definition: sch_text.cpp:240
virtual wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_text.h:94
SCH_TEXT(const wxPoint &pos=wxPoint(0, 0), const wxString &text=wxEmptyString, KICAD_T aType=SCH_TEXT_T)
Definition: sch_text.cpp:107
virtual BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
Definition: sch_text.cpp:622
virtual bool Replace(wxFindReplaceData &aSearchData, void *aAuxData=NULL) override
Function Replace performs a text replace using the find and replace criteria in aSearchData on items ...
Definition: sch_text.h:174
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Definition: sch_text.cpp:1833
Class EDA_RECT handles the component boundary box.
int m_spin_style
The orientation of text and any associated drawing elements of derived objects.
Definition: sch_text.h:76
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
Definition: sch_text.cpp:863
~SCH_TEXT()
Definition: sch_text.h:92
virtual wxPoint GetSchematicTextOffset() const
Function GetSchematicTextOffset (virtual)
Definition: sch_text.cpp:143
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
Definition: base_struct.h:165
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
Definition: sch_text.cpp:988
SCH_HIERLABEL(const wxPoint &pos=wxPoint(0, 0), const wxString &text=wxEmptyString, KICAD_T aType=SCH_HIERARCHICAL_LABEL_T)
Definition: sch_text.cpp:1490
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Definition: sch_text.cpp:1475
PINSHEETLABEL_SHAPE m_shape
Definition: sch_text.h:61
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Definition: sch_text.cpp:1036
bool Save(FILE *aFile) const override
Function Save writes the data structures for this object out to a FILE in "*.sch" format...
Definition: sch_text.cpp:1506
virtual void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
Definition: sch_text.cpp:194
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
Definition: sch_text.cpp:1841
bool IsConnectable() const override
Function IsConnectable returns true if the schematic item can connect to another schematic item...
Definition: sch_text.h:352
Class SCH_ITEM is a base class for any item which can be embedded within the SCHEMATIC container clas...
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
Definition: sch_text.cpp:1175
SCH_LABEL(const wxPoint &pos=wxPoint(0, 0), const wxString &text=wxEmptyString)
Definition: sch_text.cpp:835
void SetLabelSpinStyle(int aSpinStyle) override
Function SetLabelSpinStyle sets a spin or rotation angle, along with specific horizontal and vertical...
Definition: sch_text.cpp:1234
wxPoint GetSchematicTextOffset() const override
Function GetSchematicTextOffset (virtual)
Definition: sch_text.cpp:1754
void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
Definition: sch_text.cpp:1136
bool doIsConnected(const wxPoint &aPosition) const override
Function doIsConnected provides the object specific test to see if it is connected to aPosition...
Definition: sch_text.h:311
virtual void GetNetListItem(NETLIST_OBJECT_LIST &aNetListItems, SCH_SHEET_PATH *aSheetPath) override
Function GetNetListItem creates a new NETLIST_OBJECT for the schematic object and adds it to aNetList...
Definition: sch_text.cpp:628
bool doIsConnected(const wxPoint &aPosition) const override
Function doIsConnected provides the object specific test to see if it is connected to aPosition...
Definition: sch_text.h:361
void IncrementLabel(int aIncrement)
Function IncrementLabel increments the label text, if it ends with a number.
Definition: sch_text.cpp:137
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39