KiCad Pcbnew Python Scripting
Public Member Functions | Properties | List of all members
pcbnew.SHAPE_SEGMENT Class Reference
Inheritance diagram for pcbnew.SHAPE_SEGMENT:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, *args)
 
def BBox (self, aClearance=0)
 
def Collide (self, *args)
 
def SetSeg (self, aSeg)
 
def GetSeg (self)
 
def SetWidth (self, aWidth)
 
def GetWidth (self)
 
def Rotate (self, *args)
 
def Is45Degree (self, *args)
 
def Format (self, aCplusPlus=True)
 
- Public Member Functions inherited from pcbnew.SHAPE
def __init__ (self, *args, **kwargs)
 
def Clone (self)
 
def GetClearance (self, aOther)
 
def IsNull (self)
 
def Collide (self, *args)
 
def BBox (self, aClearance=0)
 
def Centre (self)
 
def Rotate (self, *args)
 
def Move (self, aVector)
 
def IsSolid (self)
 
def Parse (self, aStream)
 
def Format (self, aCplusPlus=True)
 
def Cast (self)
 
- Public Member Functions inherited from pcbnew.SHAPE_BASE
def __init__ (self, aType)
 
def Type (self)
 
def TypeName (self)
 
def HasIndexableSubshapes (self)
 
def GetIndexableSubshapeCount (self)
 
def GetIndexableSubshapes (self, aSubshapes)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE_BASE
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Additional Inherited Members

- Static Public Attributes inherited from pcbnew.SHAPE
 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
 

Detailed Description

Proxy of C++ SHAPE_SEGMENT class.

Definition at line 7089 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.SHAPE_SEGMENT.__init__ (   self,
args 
)
    __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
    __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
    __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT

Reimplemented from pcbnew.SHAPE.

Definition at line 7095 of file pcbnew.py.

Here is the caller graph for this function:

Member Function Documentation

◆ BBox()

def pcbnew.SHAPE_SEGMENT.BBox (   self,
  aClearance = 0 
)
BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I

Reimplemented from pcbnew.SHAPE.

Definition at line 7104 of file pcbnew.py.

◆ Collide()

def pcbnew.SHAPE_SEGMENT.Collide (   self,
args 
)
    Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
    Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
    Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
    Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 7108 of file pcbnew.py.

Here is the caller graph for this function:

◆ Format()

def pcbnew.SHAPE_SEGMENT.Format (   self,
  aCplusPlus = True 
)
Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string

Reimplemented from pcbnew.SHAPE.

Definition at line 7141 of file pcbnew.py.

◆ GetSeg()

def pcbnew.SHAPE_SEGMENT.GetSeg (   self)
GetSeg(SHAPE_SEGMENT self) -> SEG

Definition at line 7121 of file pcbnew.py.

◆ GetWidth()

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

Definition at line 7129 of file pcbnew.py.

Here is the caller graph for this function:

◆ Is45Degree()

def pcbnew.SHAPE_SEGMENT.Is45Degree (   self,
args 
)
Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool

Definition at line 7137 of file pcbnew.py.

◆ Rotate()

def pcbnew.SHAPE_SEGMENT.Rotate (   self,
args 
)
Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })

Reimplemented from pcbnew.SHAPE.

Definition at line 7133 of file pcbnew.py.

◆ SetSeg()

def pcbnew.SHAPE_SEGMENT.SetSeg (   self,
  aSeg 
)
SetSeg(SHAPE_SEGMENT self, SEG aSeg)

Definition at line 7117 of file pcbnew.py.

◆ SetWidth()

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

Definition at line 7125 of file pcbnew.py.

Here is the caller graph for this function:

Property Documentation

◆ thisown

pcbnew.SHAPE_SEGMENT.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 7092 of file pcbnew.py.


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