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
[legend]

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, aUnits, aList)
 
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, aUnits)
 
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 GetNetnameMsg (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 IsType (self, aScanTypes)
 
def SetForceVisible (self, aEnable)
 
def GetMsgPanelInfo (self, aUnits, 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, aUnits)
 
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

 this
 

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 13341 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.TRACK.__init__ (   self,
  aParent,
  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 13374 of file pcbnew.py.

Member Function Documentation

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

Definition at line 13390 of file pcbnew.py.

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

Definition at line 13354 of file pcbnew.py.

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

Definition at line 13578 of file pcbnew.py.

def pcbnew.TRACK.Draw (   self,
  args 
)
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 13490 of file pcbnew.py.

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

Definition at line 13405 of file pcbnew.py.

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

Definition at line 13470 of file pcbnew.py.

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

Definition at line 13455 of file pcbnew.py.

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

Definition at line 13555 of file pcbnew.py.

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

Definition at line 13560 of file pcbnew.py.

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

Definition at line 13435 of file pcbnew.py.

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

Definition at line 13480 of file pcbnew.py.

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

Definition at line 13450 of file pcbnew.py.

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

Definition at line 13550 of file pcbnew.py.

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

Definition at line 13485 of file pcbnew.py.

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

Definition at line 13573 of file pcbnew.py.

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

Definition at line 13516 of file pcbnew.py.

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

Definition at line 13415 of file pcbnew.py.

def pcbnew.TRACK.GetSelectMenuText (   self,
  aUnits 
)
GetSelectMenuText(TRACK self, EDA_UNITS_T aUnits) -> wxString

Definition at line 13568 of file pcbnew.py.

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

Definition at line 13445 of file pcbnew.py.

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

Definition at line 13475 of file pcbnew.py.

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

Definition at line 13545 of file pcbnew.py.

def pcbnew.TRACK.GetVia (   self,
  args 
)
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 13536 of file pcbnew.py.

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

Definition at line 13425 of file pcbnew.py.

def pcbnew.TRACK.HitTest (   self,
  args 
)
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 13526 of file pcbnew.py.

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

Definition at line 13460 of file pcbnew.py.

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

Definition at line 13511 of file pcbnew.py.

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

Definition at line 13503 of file pcbnew.py.

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

Definition at line 13395 of file pcbnew.py.

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

Definition at line 13385 of file pcbnew.py.

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

Definition at line 13400 of file pcbnew.py.

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

Definition at line 13430 of file pcbnew.py.

Here is the caller graph for this function:

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

Definition at line 13465 of file pcbnew.py.

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

Definition at line 13410 of file pcbnew.py.

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

Definition at line 13440 of file pcbnew.py.

Here is the caller graph for this function:

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

Definition at line 13420 of file pcbnew.py.

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

Definition at line 13598 of file pcbnew.py.

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

Definition at line 13498 of file pcbnew.py.

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

Definition at line 13593 of file pcbnew.py.

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

Definition at line 13583 of file pcbnew.py.

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

Definition at line 13588 of file pcbnew.py.

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

Definition at line 13521 of file pcbnew.py.

Member Data Documentation

pcbnew.TRACK.ClassOf = staticmethod(ClassOf)
static

Definition at line 13359 of file pcbnew.py.

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

Definition at line 13368 of file pcbnew.py.

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

Definition at line 13372 of file pcbnew.py.

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

Definition at line 13364 of file pcbnew.py.

pcbnew.TRACK.this

Definition at line 13383 of file pcbnew.py.


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