KiCad Pcbnew Python Scripting
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pcbnew.TRACK Class Reference
Inheritance diagram for pcbnew.TRACK:
Inheritance graph

Public Member Functions

def ClassOf (aItem)
def __init__ (self, aParent, idtype=PCB_TRACE_T)
def Next (self)
def Back (self)
def Move (self, aMoveVector)
def Rotate (self, aRotCentre, aAngle)
def Flip (self, aCentre)
def SetPosition (self, aPos)
def GetPosition (self)
def SetWidth (self, aWidth)
def GetWidth (self)
def SetEnd (self, aEnd)
def GetEnd (self)
def SetStart (self, aStart)
def GetStart (self)
def GetEndPoint (self, aEndPoint)
def GetBoundingBox (self)
def IsLocked (self)
def SetLocked (self, aLocked)
def GetBestInsertPoint (self, aPcb)
def GetStartNetCode (self, NetCode)
def GetEndNetCode (self, NetCode)
def GetLength (self)
def Draw (self, args)
def TransformShapeWithClearanceToPolygon (self, aCornerBuffer, aClearanceValue, aCircleToSegmentsCount, aCorrectionFactor)
def IsPointOnEnds (self, point, min_dist=0)
def IsNull (self)
def GetMsgPanelInfo (self, aList)
def ShowWidth (self)
def Visit (self, inspector, testData, scanTypes)
def HitTest (self, args)
def GetVia (self, args)
def GetTrack (self, aStartTrace, aEndTrace, aEndPoint, aSameNetOnly, aSequential)
def GetEndSegments (self, NbSegm, StartTrack, EndTrack)
def GetClass (self)
def GetClearance (self, aItem=None)
def GetSelectMenuText (self)
def GetMenuImage (self)
def Clone (self)
def ViewGetLayers (self, aLayers, aCount)
def ViewGetLOD (self, aLayer, aView)
def ViewBBox (self)
def SwapData (self, aImage)
- Public Member Functions inherited from pcbnew.BOARD_CONNECTED_ITEM
def __init__ (self, args, kwargs)
def ClassOf (aItem)
def IsConnected (self)
def GetNet (self)
def SetNet (self, aNetInfo)
def GetNetCode (self)
def SetNetCode (self, aNetCode, aNoAssert=False)
def GetNetname (self)
def GetShortNetname (self)
def GetClearance (self, aItem=None)
def GetNetClass (self)
def GetNetClassName (self)
def SetLocalRatsnestVisible (self, aVisible)
def GetLocalRatsnestVisible (self)
- Public Member Functions inherited from pcbnew.BOARD_ITEM
def __init__ (self, args, kwargs)
def GetPosition (self)
def GetCenter (self)
def SetPosition (self, aPos)
def IsConnected (self)
def Next (self)
def Back (self)
def GetParent (self)
def GetLayer (self)
def GetLayerSet (self)
def SetLayer (self, aLayer)
def Draw (self, args)
def SwapData (self, aImage)
def IsOnLayer (self, aLayer)
def IsTrack (self)
def IsLocked (self)
def SetLocked (self, aLocked)
def UnLink (self)
def DeleteStructure (self)
def ShowShape (aShape)
def Move (self, args)
def Rotate (self, args)
def Flip (self, args)
def GetBoard (self)
def GetLayerName (self)
def HitTest (self, args)
def FormatAngle (aAngle)
def FormatInternalUnits (args)
def ViewGetLayers (self, aLayers, aCount)
def TransformShapeWithClearanceToPolygon (self, aCornerBuffer, aClearanceValue, aCircleToSegmentsCount, aCorrectionFactor)
def Cast (self)
def Duplicate (self)
def SetPos (self, p)
def SetStartEnd (self, start, end)
- Public Member Functions inherited from pcbnew.EDA_ITEM
def __init__ (self, args, kwargs)
def Type (self)
def SetTimeStamp (self, aNewTimeStamp)
def GetTimeStamp (self)
def Next (self)
def Back (self)
def GetParent (self)
def GetList (self)
def SetParent (self, aParent)
def SetList (self, aList)
def IsNew (self)
def IsModified (self)
def IsMoving (self)
def IsDragging (self)
def IsWireImage (self)
def IsSelected (self)
def IsResized (self)
def IsHighlighted (self)
def IsBrightened (self)
def SetWireImage (self)
def SetSelected (self)
def SetHighlighted (self)
def SetBrightened (self)
def ClearSelected (self)
def ClearHighlighted (self)
def ClearBrightened (self)
def SetModified (self)
def GetState (self, type)
def SetState (self, type, state)
def GetStatus (self)
def SetStatus (self, aStatus)
def SetFlags (self, aMask)
def ClearFlags (self, aMask=-1)
def GetFlags (self)
def SetForceVisible (self, aEnable)
def GetMsgPanelInfo (self, aList)
def HitTest (self, aPosition)
def GetBoundingBox (self)
def Clone (self)
def IterateForward (listStart, inspector, testData, scanTypes)
def Visit (self, inspector, testData, scanTypes)
def GetClass (self)
def GetSelectMenuText (self)
def GetMenuImage (self)
def Matches (self, aSearchData, aAuxData, aFindLocation)
def Replace (self, args)
def IsReplaceable (self)
def __lt__ (self, aItem)
def Sort (aLeft, aRight)
def ViewBBox (self)
def ViewGetLayers (self, aLayers, aCount)

Public Attributes


Static Public Attributes

 ClassOf = staticmethod(ClassOf)
 start = _swig_property(_pcbnew.TRACK_start_get, _pcbnew.TRACK_start_set)
 end = _swig_property(_pcbnew.TRACK_end_get, _pcbnew.TRACK_end_set)
 m_Param = _swig_property(_pcbnew.TRACK_m_Param_get, _pcbnew.TRACK_m_Param_set)
- Static Public Attributes inherited from pcbnew.BOARD_CONNECTED_ITEM
 ClassOf = staticmethod(ClassOf)
- Static Public Attributes inherited from pcbnew.BOARD_ITEM
 ShowShape = staticmethod(ShowShape)
 FormatAngle = staticmethod(FormatAngle)
 FormatInternalUnits = staticmethod(FormatInternalUnits)
- Static Public Attributes inherited from pcbnew.EDA_ITEM
 IterateForward = staticmethod(IterateForward)
 Sort = staticmethod(Sort)

Detailed Description

Proxy of C++ TRACK class.

Definition at line 12376 of file

Constructor & Destructor Documentation

def pcbnew.TRACK.__init__ (   self,
  idtype = PCB_TRACE_T 
__init__(TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> TRACK
__init__(TRACK self, BOARD_ITEM aParent) -> TRACK

Definition at line 12409 of file

Member Function Documentation

def pcbnew.TRACK.Back (   self)
Back(TRACK self) -> TRACK

Definition at line 12425 of file

def pcbnew.TRACK.ClassOf (   aItem)
ClassOf(EDA_ITEM aItem) -> bool

Definition at line 12389 of file

def pcbnew.TRACK.Clone (   self)
Clone(TRACK self) -> EDA_ITEM

Definition at line 12618 of file

def pcbnew.TRACK.Draw (   self,
Draw(TRACK self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode, wxPoint aOffset)
Draw(TRACK self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode)

Definition at line 12525 of file

def pcbnew.TRACK.Flip (   self,
Flip(TRACK self, wxPoint aCentre)

Definition at line 12440 of file

def pcbnew.TRACK.GetBestInsertPoint (   self,
GetBestInsertPoint(TRACK self, BOARD aPcb) -> TRACK

Definition at line 12505 of file

def pcbnew.TRACK.GetBoundingBox (   self)
GetBoundingBox(TRACK self) -> EDA_RECT

Definition at line 12490 of file

def pcbnew.TRACK.GetClass (   self)
GetClass(TRACK self) -> wxString

Definition at line 12595 of file

def pcbnew.TRACK.GetClearance (   self,
  aItem = None 
GetClearance(TRACK self, BOARD_CONNECTED_ITEM aItem=None) -> int
GetClearance(TRACK self) -> int

Definition at line 12600 of file

def pcbnew.TRACK.GetEnd (   self)
GetEnd(TRACK self) -> wxPoint

Definition at line 12470 of file

def pcbnew.TRACK.GetEndNetCode (   self,
GetEndNetCode(TRACK self, int NetCode) -> TRACK

Definition at line 12515 of file

def pcbnew.TRACK.GetEndPoint (   self,
GetEndPoint(TRACK self, ENDPOINT_T aEndPoint) -> wxPoint

Definition at line 12485 of file

def pcbnew.TRACK.GetEndSegments (   self,
GetEndSegments(TRACK self, int NbSegm, TRACK ** StartTrack, TRACK ** EndTrack) -> int

Definition at line 12590 of file

def pcbnew.TRACK.GetLength (   self)
GetLength(TRACK self) -> double

Definition at line 12520 of file

def pcbnew.TRACK.GetMenuImage (   self)
GetMenuImage(TRACK self) -> BITMAP_DEF

Definition at line 12613 of file

def pcbnew.TRACK.GetMsgPanelInfo (   self,
GetMsgPanelInfo(TRACK self, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)

Definition at line 12551 of file

def pcbnew.TRACK.GetPosition (   self)
GetPosition(TRACK self) -> wxPoint

Definition at line 12450 of file

def pcbnew.TRACK.GetSelectMenuText (   self)
GetSelectMenuText(TRACK self) -> wxString

Definition at line 12608 of file

def pcbnew.TRACK.GetStart (   self)
GetStart(TRACK self) -> wxPoint

Definition at line 12480 of file

def pcbnew.TRACK.GetStartNetCode (   self,
GetStartNetCode(TRACK self, int NetCode) -> TRACK

Definition at line 12510 of file

def pcbnew.TRACK.GetTrack (   self,
GetTrack(TRACK self, TRACK aStartTrace, TRACK aEndTrace, ENDPOINT_T aEndPoint, bool aSameNetOnly, bool aSequential) -> TRACK

Definition at line 12585 of file

def pcbnew.TRACK.GetVia (   self,
GetVia(TRACK self, wxPoint aPosition, PCB_LAYER_ID aLayer=UNDEFINED_LAYER) -> VIA
GetVia(TRACK self, wxPoint aPosition) -> VIA
GetVia(TRACK self, TRACK aEndTrace, wxPoint aPosition, LSET aLayerMask) -> VIA

Definition at line 12576 of file

def pcbnew.TRACK.GetWidth (   self)
GetWidth(TRACK self) -> int

Definition at line 12460 of file

def pcbnew.TRACK.HitTest (   self,
HitTest(TRACK self, wxPoint aPosition) -> bool
HitTest(TRACK self, EDA_RECT aRect, bool aContained=True, int aAccuracy=0) -> bool
HitTest(TRACK self, EDA_RECT aRect, bool aContained=True) -> bool
HitTest(TRACK self, EDA_RECT aRect) -> bool

Definition at line 12566 of file

def pcbnew.TRACK.IsLocked (   self)
IsLocked(TRACK self) -> bool

Definition at line 12495 of file

def pcbnew.TRACK.IsNull (   self)
IsNull(TRACK self) -> bool

Definition at line 12546 of file

def pcbnew.TRACK.IsPointOnEnds (   self,
  min_dist = 0 
IsPointOnEnds(TRACK self, wxPoint point, int min_dist=0) -> STATUS_FLAGS
IsPointOnEnds(TRACK self, wxPoint point) -> STATUS_FLAGS

Definition at line 12538 of file

def pcbnew.TRACK.Move (   self,
Move(TRACK self, wxPoint aMoveVector)

Definition at line 12430 of file

def pcbnew.TRACK.Next (   self)
Next(TRACK self) -> TRACK

Definition at line 12420 of file

def pcbnew.TRACK.Rotate (   self,
Rotate(TRACK self, wxPoint aRotCentre, double aAngle)

Definition at line 12435 of file

def pcbnew.TRACK.SetEnd (   self,
SetEnd(TRACK self, wxPoint aEnd)

Definition at line 12465 of file

Here is the caller graph for this function:

def pcbnew.TRACK.SetLocked (   self,
SetLocked(TRACK self, bool aLocked)

Definition at line 12500 of file

def pcbnew.TRACK.SetPosition (   self,
SetPosition(TRACK self, wxPoint aPos)

Definition at line 12445 of file

def pcbnew.TRACK.SetStart (   self,
SetStart(TRACK self, wxPoint aStart)

Definition at line 12475 of file

Here is the caller graph for this function:

def pcbnew.TRACK.SetWidth (   self,
SetWidth(TRACK self, int aWidth)

Definition at line 12455 of file

def pcbnew.TRACK.ShowWidth (   self)
ShowWidth(TRACK self) -> wxString

Definition at line 12556 of file

def pcbnew.TRACK.SwapData (   self,
SwapData(TRACK self, BOARD_ITEM aImage)

Definition at line 12638 of file

def pcbnew.TRACK.TransformShapeWithClearanceToPolygon (   self,
TransformShapeWithClearanceToPolygon(TRACK self, SHAPE_POLY_SET aCornerBuffer, int aClearanceValue, int aCircleToSegmentsCount, double aCorrectionFactor)

Definition at line 12533 of file

def pcbnew.TRACK.ViewBBox (   self)
ViewBBox(TRACK self) -> BOX2I const

Definition at line 12633 of file

def pcbnew.TRACK.ViewGetLayers (   self,
ViewGetLayers(TRACK self, int [] aLayers, int & aCount)

Definition at line 12623 of file

def pcbnew.TRACK.ViewGetLOD (   self,
ViewGetLOD(TRACK self, int aLayer, KIGFX::VIEW * aView) -> unsigned int

Definition at line 12628 of file

def pcbnew.TRACK.Visit (   self,
Visit(TRACK self, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT

Definition at line 12561 of file

Member Data Documentation

pcbnew.TRACK.ClassOf = staticmethod(ClassOf)

Definition at line 12394 of file

pcbnew.TRACK.end = _swig_property(_pcbnew.TRACK_end_get, _pcbnew.TRACK_end_set)

Definition at line 12403 of file

pcbnew.TRACK.m_Param = _swig_property(_pcbnew.TRACK_m_Param_get, _pcbnew.TRACK_m_Param_set)

Definition at line 12407 of file

pcbnew.TRACK.start = _swig_property(_pcbnew.TRACK_start_get, _pcbnew.TRACK_start_set)

Definition at line 12399 of file


Definition at line 12418 of file

The documentation for this class was generated from the following file: