KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
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 Distance (self, aP)
 
def SquaredDistance (self, aP, aOutlineOnly=False)
 
def PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False)
 
def TransformToPolygon (self, aBuffer, aError, aErrorLoc)
 
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

property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE
property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from pcbnew.SHAPE_BASE
property 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
_pcbnew MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
 

Detailed Description

Proxy of C++ SHAPE_SEGMENT class.

Definition at line 6952 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 6958 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 6967 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 6971 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 7004 of file pcbnew.py.

◆ GetSeg()

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

Definition at line 6984 of file pcbnew.py.

◆ GetWidth()

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

Definition at line 6992 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 7000 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 6996 of file pcbnew.py.

◆ SetSeg()

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

Definition at line 6980 of file pcbnew.py.

◆ SetWidth()

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

Definition at line 6988 of file pcbnew.py.

Here is the caller graph for this function:

Property Documentation

◆ thisown

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


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