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

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 ConstructFromStartEndAngle (self, aStart, aEnd, aAngle, aWidth=0)
 
 ConstructFromStartEndCenter (self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
 
 GetP0 (self)
 
 GetP1 (self)
 
 GetArcMid (self)
 
 GetCenter (self)
 
 BBox (self, aClearance=0)
 
 NearestPoint (self, aP)
 
 NearestPoints (self, *args)
 
 Collide (self, *args)
 
 IntersectLine (self, aSeg, aIpsBuffer)
 
 Intersect (self, *args)
 
 IsEffectiveLine (self)
 
 Mirror (self, *args)
 
 Reverse (self)
 
 Reversed (self)
 
 GetRadius (self)
 
 GetChord (self)
 
 GetCentralAngle (self)
 
 GetStartAngle (self)
 
 GetEndAngle (self)
 
 GetLength (self)
 
 ConvertToPolyline (self, *args)
 
 __eq__ (self, aArc)
 
 IsCCW (self)
 
 IsClockwise (self)
 
- Public Member Functions inherited from pcbnew.SHAPE
 __init__ (self, *args, **kwargs)
 
 Clone (self)
 
 GetClearance (self, aOther)
 
 IsNull (self)
 
 Centre (self)
 
 Distance (self, aP)
 
 SquaredDistance (self, aP, aOutlineOnly=False)
 
 PointInside (self, aPt, aAccuracy=0, aUseBBoxCache=False)
 
 TransformToPolygon (self, aBuffer, aError, aErrorLoc)
 
 Rotate (self, *args)
 
 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)
 

Static Public Member Functions

 DefaultAccuracyForPCB ()
 

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_ARC class.

Definition at line 6202 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

pcbnew.SHAPE_ARC.__init__ ( self,
* args,
** kwargs )

Definition at line 6207 of file pcbnew.py.

Member Function Documentation

◆ __eq__()

pcbnew.SHAPE_ARC.__eq__ ( self,
aArc )
__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool

Definition at line 6324 of file pcbnew.py.

◆ BBox()

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

Reimplemented from pcbnew.SHAPE.

Definition at line 6236 of file pcbnew.py.

◆ Collide()

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

Reimplemented from pcbnew.SHAPE.

Definition at line 6253 of file pcbnew.py.

◆ ConstructFromStartEndAngle()

pcbnew.SHAPE_ARC.ConstructFromStartEndAngle ( self,
aStart,
aEnd,
aAngle,
aWidth = 0 )
ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC

Definition at line 6212 of file pcbnew.py.

◆ ConstructFromStartEndCenter()

pcbnew.SHAPE_ARC.ConstructFromStartEndCenter ( self,
aStart,
aEnd,
aCenter,
aClockwise = False,
aWidth = 0 )
ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC

Definition at line 6216 of file pcbnew.py.

◆ ConvertToPolyline()

pcbnew.SHAPE_ARC.ConvertToPolyline ( self,
* args )
ConvertToPolyline(SHAPE_ARC self, int aMaxError=SHAPE_ARC::DefaultAccuracyForPCB(), int * aActualError=None) -> SHAPE_LINE_CHAIN

Definition at line 6320 of file pcbnew.py.

◆ DefaultAccuracyForPCB()

pcbnew.SHAPE_ARC.DefaultAccuracyForPCB ( )
static
DefaultAccuracyForPCB() -> int

Definition at line 6316 of file pcbnew.py.

◆ GetArcMid()

pcbnew.SHAPE_ARC.GetArcMid ( self)
GetArcMid(SHAPE_ARC self) -> VECTOR2I

Definition at line 6228 of file pcbnew.py.

◆ GetCenter()

pcbnew.SHAPE_ARC.GetCenter ( self)
GetCenter(SHAPE_ARC self) -> VECTOR2I

Definition at line 6232 of file pcbnew.py.

◆ GetCentralAngle()

pcbnew.SHAPE_ARC.GetCentralAngle ( self)
GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE

Definition at line 6299 of file pcbnew.py.

◆ GetChord()

pcbnew.SHAPE_ARC.GetChord ( self)
GetChord(SHAPE_ARC self) -> SEG

Definition at line 6295 of file pcbnew.py.

◆ GetEndAngle()

pcbnew.SHAPE_ARC.GetEndAngle ( self)
GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE

Definition at line 6307 of file pcbnew.py.

◆ GetLength()

pcbnew.SHAPE_ARC.GetLength ( self)
GetLength(SHAPE_ARC self) -> double

Definition at line 6311 of file pcbnew.py.

◆ GetP0()

pcbnew.SHAPE_ARC.GetP0 ( self)
GetP0(SHAPE_ARC self) -> VECTOR2I

Definition at line 6220 of file pcbnew.py.

◆ GetP1()

pcbnew.SHAPE_ARC.GetP1 ( self)
GetP1(SHAPE_ARC self) -> VECTOR2I

Definition at line 6224 of file pcbnew.py.

◆ GetRadius()

pcbnew.SHAPE_ARC.GetRadius ( self)
GetRadius(SHAPE_ARC self) -> double

Definition at line 6291 of file pcbnew.py.

◆ GetStartAngle()

pcbnew.SHAPE_ARC.GetStartAngle ( self)
GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE

Definition at line 6303 of file pcbnew.py.

◆ Intersect()

pcbnew.SHAPE_ARC.Intersect ( self,
* args )
    Intersect(SHAPE_ARC self, CIRCLE const & aArc, VECTOR_VECTOR2I aIpsBuffer) -> int
    Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int

Definition at line 6265 of file pcbnew.py.

◆ IntersectLine()

pcbnew.SHAPE_ARC.IntersectLine ( self,
aSeg,
aIpsBuffer )
IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int

Definition at line 6261 of file pcbnew.py.

◆ IsCCW()

pcbnew.SHAPE_ARC.IsCCW ( self)
IsCCW(SHAPE_ARC self) -> bool

Definition at line 6328 of file pcbnew.py.

◆ IsClockwise()

pcbnew.SHAPE_ARC.IsClockwise ( self)
IsClockwise(SHAPE_ARC self) -> bool

Definition at line 6332 of file pcbnew.py.

◆ IsEffectiveLine()

pcbnew.SHAPE_ARC.IsEffectiveLine ( self)
IsEffectiveLine(SHAPE_ARC self) -> bool

Definition at line 6272 of file pcbnew.py.

◆ Mirror()

pcbnew.SHAPE_ARC.Mirror ( self,
* args )
    Mirror(SHAPE_ARC self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)
    Mirror(SHAPE_ARC self, SEG axis)

Definition at line 6276 of file pcbnew.py.

◆ NearestPoint()

pcbnew.SHAPE_ARC.NearestPoint ( self,
aP )
NearestPoint(SHAPE_ARC self, VECTOR2I aP) -> VECTOR2I

Definition at line 6240 of file pcbnew.py.

◆ NearestPoints()

pcbnew.SHAPE_ARC.NearestPoints ( self,
* args )
    NearestPoints(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
    NearestPoints(SHAPE_ARC self, SHAPE_CIRCLE aCircle, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
    NearestPoints(SHAPE_ARC self, SEG aSeg, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
    NearestPoints(SHAPE_ARC self, SHAPE_RECT aRect, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 6244 of file pcbnew.py.

◆ Reverse()

pcbnew.SHAPE_ARC.Reverse ( self)
Reverse(SHAPE_ARC self)

Definition at line 6283 of file pcbnew.py.

◆ Reversed()

pcbnew.SHAPE_ARC.Reversed ( self)
Reversed(SHAPE_ARC self) -> SHAPE_ARC

Definition at line 6287 of file pcbnew.py.

Property Documentation

◆ thisown

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

Definition at line 6205 of file pcbnew.py.


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