KiCAD pcbnew 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, 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 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

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

Member Function Documentation

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

Definition at line 12374 of file pcbnew.py.

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

Definition at line 12338 of file pcbnew.py.

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

Definition at line 12567 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 12474 of file pcbnew.py.

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

Definition at line 12389 of file pcbnew.py.

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

Definition at line 12454 of file pcbnew.py.

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

Definition at line 12439 of file pcbnew.py.

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

Definition at line 12544 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 12549 of file pcbnew.py.

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

Definition at line 12419 of file pcbnew.py.

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

Definition at line 12464 of file pcbnew.py.

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

Definition at line 12434 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 12539 of file pcbnew.py.

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

Definition at line 12469 of file pcbnew.py.

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

Definition at line 12562 of file pcbnew.py.

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

Definition at line 12500 of file pcbnew.py.

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

Definition at line 12399 of file pcbnew.py.

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

Definition at line 12557 of file pcbnew.py.

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

Definition at line 12429 of file pcbnew.py.

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

Definition at line 12459 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 12534 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 12525 of file pcbnew.py.

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

Definition at line 12409 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 12515 of file pcbnew.py.

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

Definition at line 12444 of file pcbnew.py.

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

Definition at line 12495 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 12487 of file pcbnew.py.

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

Definition at line 12379 of file pcbnew.py.

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

Definition at line 12369 of file pcbnew.py.

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

Definition at line 12384 of file pcbnew.py.

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

Definition at line 12414 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 12449 of file pcbnew.py.

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

Definition at line 12394 of file pcbnew.py.

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

Definition at line 12424 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 12404 of file pcbnew.py.

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

Definition at line 12505 of file pcbnew.py.

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

Definition at line 12582 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 12482 of file pcbnew.py.

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

Definition at line 12572 of file pcbnew.py.

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

Definition at line 12577 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 12510 of file pcbnew.py.

Member Data Documentation

pcbnew.TRACK.ClassOf = staticmethod(ClassOf)
static

Definition at line 12343 of file pcbnew.py.

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

Definition at line 12352 of file pcbnew.py.

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

Definition at line 12356 of file pcbnew.py.

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

Definition at line 12348 of file pcbnew.py.

pcbnew.TRACK.this

Definition at line 12367 of file pcbnew.py.


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