KiCAD pcbnew scripting
Public Member Functions | Public Attributes | List of all members
pcbnew.MARKER_PCB Class Reference
Inheritance diagram for pcbnew.MARKER_PCB:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, args)
 
def Move (self, aMoveVector)
 
def Rotate (self, aRotCentre, aAngle)
 
def Flip (self, aCentre)
 
def Draw (self, args)
 
def GetPosition (self)
 
def SetPosition (self, aPos)
 
def SetItem (self, aItem)
 
def GetItem (self)
 
def HitTest (self, aPosition)
 
def IsOnLayer (self, aLayer)
 
def GetMsgPanelInfo (self, aList)
 
def GetSelectMenuText (self)
 
def GetMenuImage (self)
 
def ViewBBox (self)
 
def GetBoundingBox (self)
 
def ViewGetLayers (self, aLayers, aCount)
 
def GetClass (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, aMoveVector)
 
def Rotate (self, aRotCentre, aAngle)
 
def Flip (self, aCentre)
 
def GetBoard (self)
 
def GetLayerName (self)
 
def HitTest (self, args)
 
def FormatAngle (aAngle)
 
def FormatInternalUnits (args)
 
def ViewGetLayers (self, aLayers, aCount)
 
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
 
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 Member Functions inherited from pcbnew.MARKER_BASE
def __init__ (self, args)
 
def DrawMarker (self, aPanel, aDC, aDrawMode, aOffset)
 
def GetPos (self)
 
def SetColor (self, aColor)
 
def SetErrorLevel (self, aErrorLevel)
 
def GetErrorLevel (self)
 
def SetMarkerType (self, aMarkerType)
 
def GetMarkerType (self)
 
def SetData (self, args)
 
def SetAuxiliaryData (self, aAuxiliaryText, aAuxiliaryPos)
 
def SetShowNoCoordinate (self)
 
def GetReporter (self)
 
def DisplayMarkerInfo (self, aFrame)
 
def HitTestMarker (self, ref_pos)
 
def GetBoundingBoxMarker (self)
 

Public Attributes

 this
 
- Public Attributes inherited from pcbnew.MARKER_BASE
 this
 

Additional Inherited Members

- Static Public Attributes inherited from pcbnew.BOARD_ITEM
tuple ShowShape = staticmethod(ShowShape)
 
tuple FormatAngle = staticmethod(FormatAngle)
 
tuple FormatInternalUnits = staticmethod(FormatInternalUnits)
 
- Static Public Attributes inherited from pcbnew.EDA_ITEM
tuple IterateForward = staticmethod(IterateForward)
 
tuple Sort = staticmethod(Sort)
 
- Static Public Attributes inherited from pcbnew.MARKER_BASE
 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
 
 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
 
 MARKER_PCB = _pcbnew.MARKER_BASE_MARKER_PCB
 
 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
 
 MARKER_SEVERITY_UNSPEC = _pcbnew.MARKER_BASE_MARKER_SEVERITY_UNSPEC
 
 MARKER_SEVERITY_INFO = _pcbnew.MARKER_BASE_MARKER_SEVERITY_INFO
 
 MARKER_SEVERITY_WARNING = _pcbnew.MARKER_BASE_MARKER_SEVERITY_WARNING
 
 MARKER_SEVERITY_ERROR = _pcbnew.MARKER_BASE_MARKER_SEVERITY_ERROR
 
tuple m_Pos = _swig_property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set)
 

Detailed Description

C++ includes: class_marker_pcb.h 

Definition at line 28170 of file pcbnew.py.

Constructor & Destructor Documentation

def pcbnew.MARKER_PCB.__init__ (   self,
  args 
)
__init__(MARKER_PCB self, BOARD_ITEM aParent) -> MARKER_PCB
__init__(MARKER_PCB self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos) -> MARKER_PCB
__init__(MARKER_PCB self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos) -> MARKER_PCB

MARKER_PCB::MARKER_PCB(int aErrorCode, const wxPoint &aMarkerPos,
const wxString &aText, const wxPoint &aPos)

Constructor.

Parameters:
-----------

aErrorCode:  The categorizing identifier for an error

aMarkerPos:  The position of the MARKER_PCB on the BOARD

aText:  Text describing the object

aPos:  The position of the object 

Definition at line 28182 of file pcbnew.py.

Member Function Documentation

def pcbnew.MARKER_PCB.Draw (   self,
  args 
)
Draw(MARKER_PCB self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode, wxPoint aOffset)
Draw(MARKER_PCB self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode)

void
MARKER_PCB::Draw(EDA_DRAW_PANEL *aPanel, wxDC *aDC, GR_DRAWMODE
aDrawMode, const wxPoint &aOffset=ZeroOffset) override

Function Draw BOARD_ITEMs have their own color information. 

Definition at line 28267 of file pcbnew.py.

Here is the caller graph for this function:

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

void MARKER_PCB::Flip(const
wxPoint &aCentre) override

Function Flip Flip this object, i.e.

change the board side for this object

Parameters:
-----------

aCentre:  - the rotation point. 

Definition at line 28248 of file pcbnew.py.

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

const EDA_RECT
MARKER_PCB::GetBoundingBox() const override

Function GetBoundingBox returns the orthogonal, bounding box of this
object for display purposes.

This box should be an enclosing perimeter for visible components of
this object, and the units should be in the pcb or schematic
coordinate system. It is OK to overestimate the size by a few counts.

Definition at line 28443 of file pcbnew.py.

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

virtual wxString
MARKER_PCB::GetClass() const override

Get class name.

string "MARKER_PCB" 

Definition at line 28486 of file pcbnew.py.

def pcbnew.MARKER_PCB.GetItem (   self)
GetItem(MARKER_PCB self) -> BOARD_ITEM

const BOARD_ITEM*
MARKER_PCB::GetItem() const 

Definition at line 28311 of file pcbnew.py.

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

BITMAP_DEF
MARKER_PCB::GetMenuImage() const override

Function GetMenuImage returns a pointer to an image to be used in
menus.

The default version returns the right arrow image. Override this
function to provide object specific menu images. The menu image
associated with the item. 

Definition at line 28411 of file pcbnew.py.

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

void
MARKER_PCB::GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList)
override

Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects
with it's internal state for display purposes.

This method replaces DisplayInfo() so that KiCad objects no longer
have any knowledge of wxWidgets UI objects.

Parameters:
-----------

aList:  is the list to populate. 

Definition at line 28369 of file pcbnew.py.

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

const wxPoint&
MARKER_PCB::GetPosition() const override 

Definition at line 28281 of file pcbnew.py.

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

wxString
MARKER_PCB::GetSelectMenuText() const override

Function GetSelectMenuText returns the text to display to be used in
the selection clarification context menu when multiple items are found
at the current cursor position.

The default version of this function raises an assertion in the debug
mode and returns a string to indicate that it was not overridden to
provide the object specific text.

The menu text string. 

Definition at line 28391 of file pcbnew.py.

def pcbnew.MARKER_PCB.HitTest (   self,
  aPosition 
)
HitTest(MARKER_PCB self, wxPoint aPosition) -> bool

virtual bool
BOARD_ITEM::HitTest(const EDA_RECT &aRect, bool aContained=true, int
aAccuracy=0) const

Function HitTest tests if the aRect intersects or contains this object
(depending on aContained).

Parameters:
-----------

aRect:  A reference to an EDA_RECT object containg the area to test.

aContained:  Test if aRect contains this object completly.

aAccuracy:  Increase the item bounding box by this amount.

bool - True if aRect contains this object completly or if aRect
intersects the object and aContained is False, otherwise false. 

Definition at line 28321 of file pcbnew.py.

def pcbnew.MARKER_PCB.IsOnLayer (   self,
  aLayer 
)
IsOnLayer(MARKER_PCB self, PCB_LAYER_ID aLayer) -> bool

bool
MARKER_PCB::IsOnLayer(PCB_LAYER_ID aLayer) const override

Function IsOnLayer tests to see if this object is on the given layer.

Is virtual so objects like D_PAD, which reside on multiple layers can
do their own form of testing.

Parameters:
-----------

aLayer:  The layer to test for.

bool - true if on given layer, else false. 

Definition at line 28347 of file pcbnew.py.

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

void MARKER_PCB::Move(const
wxPoint &aMoveVector) override

Function Move move this object.

Parameters:
-----------

aMoveVector:  - the move vector for this object. 

Definition at line 28212 of file pcbnew.py.

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

void
MARKER_PCB::Rotate(const wxPoint &aRotCentre, double aAngle) override

Function Rotate Rotate this object.

Parameters:
-----------

aRotCentre:  - the rotation point.

aAngle:  - the rotation angle in 0.1 degree. 

Definition at line 28229 of file pcbnew.py.

def pcbnew.MARKER_PCB.SetItem (   self,
  aItem 
)
SetItem(MARKER_PCB self, BOARD_ITEM aItem)

void
MARKER_PCB::SetItem(const BOARD_ITEM *aItem) 

Definition at line 28301 of file pcbnew.py.

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

void
MARKER_PCB::SetPosition(const wxPoint &aPos) override 

Definition at line 28291 of file pcbnew.py.

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

const BOX2I
MARKER_PCB::ViewBBox() const override

Function ViewBBox() returns the bounding box of the item covering all
its layers.

BOX2I - the current bounding box 

Definition at line 28428 of file pcbnew.py.

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

void
MARKER_PCB::ViewGetLayers(int aLayers[], int &aCount) const override

Function ViewGetLayers() Returns the all the layers within the VIEW
the object is painted on.

For instance, a D_PAD spans zero or more copper layers and a few
technical layers. ViewDraw() or PAINTER::Draw() is repeatedly called
for each of the layers returned by ViewGetLayers(), depending on the
rendering order.

Parameters:
-----------

aLayers[]:  output layer index array

aCount:  number of layer indices in aLayers[] 

Definition at line 28461 of file pcbnew.py.

Member Data Documentation

pcbnew.MARKER_PCB.this

Definition at line 28208 of file pcbnew.py.


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