KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
pcbnew.SHAPE_SIMPLE Class Reference
Inheritance diagram for pcbnew.SHAPE_SIMPLE:

Public Member Functions

 __init__ (self, *args)
 
 Clear (self)
 
 BBox (self, aClearance=0)
 
 PointCount (self)
 
 CPoint (self, aIndex)
 
 CDPoint (self, aIndex)
 
 Vertices (self)
 
 Append (self, *args)
 
 Collide (self, aSeg, aClearance=0, aActual=None, aLocation=None)
 
 Rotate (self, *args)
 
- Public Member Functions inherited from pcbnew.SHAPE_LINE_CHAIN_BASE
 __init__ (self, *args, **kwargs)
 
 SquaredDistance (self, aP, aOutlineOnly=False)
 
 PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False)
 
 PointOnEdge (self, aP, aAccuracy=0)
 
 EdgeContainingPoint (self, aP, aAccuracy=0)
 
 GetPoint (self, aIndex)
 
 GetSegment (self, aIndex)
 
 GetPointCount (self)
 
 GetSegmentCount (self)
 
 IsClosed (self)
 
 GetCachedBBox (self)
 
- Public Member Functions inherited from pcbnew.SHAPE
 __init__ (self, *args, **kwargs)
 
 Clone (self)
 
 GetClearance (self, aOther)
 
 IsNull (self)
 
 Centre (self)
 
 Distance (self, aP)
 
 NearestPoints (self, aOther, aPtThis, aPtOther)
 
 TransformToPolygon (self, aBuffer, aError, aErrorLoc)
 
 GetStart (self)
 
 GetEnd (self)
 
 GetWidth (self)
 
 SetWidth (self, aWidth)
 
 Move (self, aVector)
 
 IsSolid (self)
 
 Parse (self, aStream)
 
 Format (self, aCplusPlus=True)
 
 Cast (self)
 
- Public Member Functions inherited from pcbnew.SHAPE_BASE
 __init__ (self, aType)
 
 Type (self)
 
 TypeName (self)
 
 HasIndexableSubshapes (self)
 
 GetIndexableSubshapeCount (self)
 
 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_LINE_CHAIN_BASE
 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_SIMPLE class.

Definition at line 7415 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

pcbnew.SHAPE_SIMPLE.__init__ ( self,
* args )
    __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
    __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
    __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE

Definition at line 7421 of file pcbnew.py.

Member Function Documentation

◆ Append()

pcbnew.SHAPE_SIMPLE.Append ( self,
* args )
    Append(SHAPE_SIMPLE self, int aX, int aY)
    Append(SHAPE_SIMPLE self, VECTOR2I aP)

Definition at line 7453 of file pcbnew.py.

◆ BBox()

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

Reimplemented from pcbnew.SHAPE.

Definition at line 7433 of file pcbnew.py.

◆ CDPoint()

pcbnew.SHAPE_SIMPLE.CDPoint ( self,
aIndex )
CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const

Definition at line 7445 of file pcbnew.py.

◆ Clear()

pcbnew.SHAPE_SIMPLE.Clear ( self)
Clear(SHAPE_SIMPLE self)

Definition at line 7429 of file pcbnew.py.

◆ Collide()

pcbnew.SHAPE_SIMPLE.Collide ( self,
aSeg,
aClearance = 0,
aActual = None,
aLocation = None )
Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool

Reimplemented from pcbnew.SHAPE_LINE_CHAIN_BASE.

Definition at line 7460 of file pcbnew.py.

◆ CPoint()

pcbnew.SHAPE_SIMPLE.CPoint ( self,
aIndex )
CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I

Definition at line 7441 of file pcbnew.py.

◆ PointCount()

pcbnew.SHAPE_SIMPLE.PointCount ( self)
PointCount(SHAPE_SIMPLE self) -> int

Definition at line 7437 of file pcbnew.py.

◆ Rotate()

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

Reimplemented from pcbnew.SHAPE.

Definition at line 7464 of file pcbnew.py.

◆ Vertices()

pcbnew.SHAPE_SIMPLE.Vertices ( self)
Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN

Definition at line 7449 of file pcbnew.py.

Property Documentation

◆ thisown

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

Definition at line 7418 of file pcbnew.py.


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