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

Public Member Functions

def __init__ (self, *args)
 
"void" CacheTriangulation (self, "bool" aPartition=True)
 
"bool" IsTriangulationUpToDate (self)
 
"MD5_HASH" GetHash (self)
 
"bool" HasIndexableSubshapes (self)
 
"size_t" GetIndexableSubshapeCount (self)
 
"void" GetIndexableSubshapes (self, "std::vector< SHAPE *,std::allocator< SHAPE * > > &" aSubshapes)
 
"bool" GetRelativeIndices (self, "int" aGlobalIdx, "SHAPE_POLY_SET::VERTEX_INDEX *" aRelativeIndices)
 
"bool" GetGlobalIndex (self, "SHAPE_POLY_SET::VERTEX_INDEX" aRelativeIndices, "int &" aGlobalIdx)
 
"SHAPE *" Clone (self)
 
"int" NewOutline (self)
 
"int" NewHole (self, "int" aOutline=-1)
 
"int" AddOutline (self, "SHAPE_LINE_CHAIN" aOutline)
 
"int" AddHole (self, "SHAPE_LINE_CHAIN" aHole, "int" aOutline=-1)
 
"double" Area (self)
 
"int" ArcCount (self)
 
"void" GetArcs (self, "std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > &" aArcBuffer)
 
"void" ClearArcs (self)
 
"int" Append (self, *args)
 
"void" InsertVertex (self, "int" aGlobalIndex, "VECTOR2I" aNewVertex)
 
"VECTOR2I const &" CVertex (self, *args)
 
"bool" GetNeighbourIndexes (self, "int" aGlobalIndex, "int *" aPrevious, "int *" aNext)
 
"bool" IsPolygonSelfIntersecting (self, "int" aPolygonIndex)
 
"bool" IsSelfIntersecting (self)
 
"unsigned int" TriangulatedPolyCount (self)
 
"int" OutlineCount (self)
 
"int" VertexCount (self, "int" aOutline=-1, "int" aHole=-1)
 
"int" FullPointCount (self)
 
"int" HoleCount (self, "int" aOutline)
 
"SHAPE_LINE_CHAIN const &" Outline (self, *args)
 
"SHAPE_POLY_SET" Subset (self, "int" aFirstPolygon, "int" aLastPolygon)
 
"SHAPE_POLY_SET" UnitSet (self, "int" aPolygonIndex)
 
"SHAPE_LINE_CHAIN &" Hole (self, "int" aOutline, "int" aHole)
 
"SHAPE_POLY_SET::POLYGON const &" Polygon (self, *args)
 
"SHAPE_POLY_SET::TRIANGULATED_POLYGON const *" TriangulatedPolygon (self, "int" aIndex)
 
"SHAPE_LINE_CHAIN const &" COutline (self, "int" aIndex)
 
"SHAPE_LINE_CHAIN const &" CHole (self, "int" aOutline, "int" aHole)
 
"SHAPE_POLY_SET::POLYGON const &" CPolygon (self, "int" aIndex)
 
"SHAPE_POLY_SET::ITERATOR" Iterate (self, *args)
 
"SHAPE_POLY_SET::ITERATOR" IterateWithHoles (self, *args)
 
"SHAPE_POLY_SET::CONST_ITERATOR" CIterate (self, *args)
 
"SHAPE_POLY_SET::CONST_ITERATOR" CIterateWithHoles (self, *args)
 
"SHAPE_POLY_SET::ITERATOR" IterateFromVertexWithHoles (self, "int" aGlobalIdx)
 
"SHAPE_POLY_SET::SEGMENT_ITERATOR" IterateSegments (self, *args)
 
"SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR" CIterateSegments (self, *args)
 
"SHAPE_POLY_SET::SEGMENT_ITERATOR" IterateSegmentsWithHoles (self, *args)
 
"SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR" CIterateSegmentsWithHoles (self, *args)
 
"void" BooleanAdd (self, *args)
 
"void" BooleanSubtract (self, *args)
 
"void" BooleanIntersection (self, *args)
 
"void" Inflate (self, *args)
 
"void" Deflate (self, *args)
 
"void" InflateWithLinkedHoles (self, "int" aFactor, "int" aCircleSegmentsCount, "SHAPE_POLY_SET::POLYGON_MODE" aFastMode)
 
"void" Fracture (self, "SHAPE_POLY_SET::POLYGON_MODE" aFastMode)
 
"void" Unfracture (self, "SHAPE_POLY_SET::POLYGON_MODE" aFastMode)
 
"bool" HasHoles (self)
 
"bool" HasTouchingHoles (self)
 
"void" Simplify (self, "SHAPE_POLY_SET::POLYGON_MODE" aFastMode)
 
"int" NormalizeAreaOutlines (self)
 
"std::string const" Format (self)
 
"bool" Parse (self, "std::stringstream &" aStream)
 
"void" Move (self, "VECTOR2I" aVector)
 
"void" Mirror (self, *args)
 
"void" Rotate (self, *args)
 
"bool" IsSolid (self)
 
"BOX2I const" BBox (self, "int" aClearance=0)
 
"bool" PointOnEdge (self, "VECTOR2I" aP)
 
"bool" Collide (self, *args)
 
"bool" CollideVertex (self, "VECTOR2I" aPoint, "SHAPE_POLY_SET::VERTEX_INDEX &" aClosestVertex, "int" aClearance=0)
 
"bool" CollideEdge (self, "VECTOR2I" aPoint, "SHAPE_POLY_SET::VERTEX_INDEX &" aClosestVertex, "int" aClearance=0)
 
"void" BuildBBoxCaches (self)
 
"BOX2I const" BBoxFromCaches (self)
 
"bool" Contains (self, "VECTOR2I" aP, "int" aSubpolyIndex=-1, "int" aAccuracy=0, "bool" aUseBBoxCaches=False)
 
"bool" IsEmpty (self)
 
"void" RemoveVertex (self, *args)
 
"void" RemoveAllContours (self)
 
"void" RemoveContour (self, "int" aContourIdx, "int" aPolygonIdx=-1)
 
"int" RemoveNullSegments (self)
 
"void" SetVertex (self, *args)
 
"int" TotalVertices (self)
 
"void" DeletePolygon (self, "int" aIdx)
 
"SHAPE_POLY_SET::POLYGON" ChamferPolygon (self, "unsigned int" aDistance, "int" aIndex)
 
"SHAPE_POLY_SET::POLYGON" FilletPolygon (self, "unsigned int" aRadius, "int" aErrorMax, "int" aIndex)
 
"SHAPE_POLY_SET" Chamfer (self, "int" aDistance)
 
"SHAPE_POLY_SET" Fillet (self, "int" aRadius, "int" aErrorMax)
 
"SEG::ecoord" SquaredDistanceToPolygon (self, *args)
 
"SEG::ecoord" SquaredDistance (self, *args)
 
"bool" IsVertexInHole (self, "int" aGlobalIdx)
 
- Public Member Functions inherited from pcbnew.SHAPE
def __init__ (self, *args, **kwargs)
 
"SHAPE *" Clone (self)
 
"bool" IsNull (self)
 
"bool" Collide (self, *args)
 
"BOX2I const" BBox (self, "int" aClearance=0)
 
"VECTOR2I" Centre (self)
 
"void" Rotate (self, *args)
 
"void" Move (self, "VECTOR2I" aVector)
 
"bool" IsSolid (self)
 
"bool" Parse (self, "std::stringstream &" aStream)
 
"std::string const" Format (self)
 
- Public Member Functions inherited from pcbnew.SHAPE_BASE
def __init__ (self, "SHAPE_TYPE" aType)
 
"SHAPE_TYPE" Type (self)
 
"wxString" TypeName (self)
 
"bool" HasIndexableSubshapes (self)
 
"size_t" GetIndexableSubshapeCount (self)
 
"void" GetIndexableSubshapes (self, "std::vector< SHAPE *,std::allocator< SHAPE * > > &" aSubshapes)
 

Static Public Member Functions

"SHAPE_POLY_SET const" BuildPolysetFromOrientedPaths ("std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const &" aPaths, "bool" aReverseOrientation=False, "bool" aEvenOdd=False)
 

Static Public Attributes

 PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
 
 PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
 
 ALLOW_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ALLOW_ACUTE_CORNERS
 
 CHAMFER_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ACUTE_CORNERS
 
 ROUND_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ACUTE_CORNERS
 
 CHAMFER_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ALL_CORNERS
 
 ROUND_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ALL_CORNERS
 
- Static Public Attributes inherited from pcbnew.SHAPE
 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
 

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")
 

Detailed Description

Proxy of C++ SHAPE_POLY_SET class.

Definition at line 5005 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.SHAPE_POLY_SET.__init__ (   self,
args 
)
    __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
    __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET

Reimplemented from pcbnew.SHAPE.

Definition at line 5011 of file pcbnew.py.

Here is the caller graph for this function:

Member Function Documentation

◆ AddHole()

"int" pcbnew.SHAPE_POLY_SET.AddHole (   self,
"SHAPE_LINE_CHAIN"  aHole,
"int"  aOutline = -1 
)
AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int

Definition at line 5069 of file pcbnew.py.

◆ AddOutline()

"int" pcbnew.SHAPE_POLY_SET.AddOutline (   self,
"SHAPE_LINE_CHAIN"  aOutline 
)
AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int

Definition at line 5065 of file pcbnew.py.

◆ Append()

"int" pcbnew.SHAPE_POLY_SET.Append (   self,
args 
)
    Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
    Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
    Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
    Append(SHAPE_POLY_SET self, SHAPE_ARC & aArc, int aOutline=-1, int aHole=-1) -> int

Definition at line 5089 of file pcbnew.py.

Here is the caller graph for this function:

◆ ArcCount()

"int" pcbnew.SHAPE_POLY_SET.ArcCount (   self)
ArcCount(SHAPE_POLY_SET self) -> int

Definition at line 5077 of file pcbnew.py.

◆ Area()

"double" pcbnew.SHAPE_POLY_SET.Area (   self)
Area(SHAPE_POLY_SET self) -> double

Definition at line 5073 of file pcbnew.py.

◆ BBox()

"BOX2I const" pcbnew.SHAPE_POLY_SET.BBox (   self,
"int"  aClearance = 0 
)
BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I const

Reimplemented from pcbnew.SHAPE.

Definition at line 5343 of file pcbnew.py.

◆ BBoxFromCaches()

"BOX2I const" pcbnew.SHAPE_POLY_SET.BBoxFromCaches (   self)
BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I const

Definition at line 5371 of file pcbnew.py.

◆ BooleanAdd()

"void" pcbnew.SHAPE_POLY_SET.BooleanAdd (   self,
args 
)
    BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5252 of file pcbnew.py.

Here is the caller graph for this function:

◆ BooleanIntersection()

"void" pcbnew.SHAPE_POLY_SET.BooleanIntersection (   self,
args 
)
    BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5266 of file pcbnew.py.

Here is the caller graph for this function:

◆ BooleanSubtract()

"void" pcbnew.SHAPE_POLY_SET.BooleanSubtract (   self,
args 
)
    BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
    BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5259 of file pcbnew.py.

Here is the caller graph for this function:

◆ BuildBBoxCaches()

"void" pcbnew.SHAPE_POLY_SET.BuildBBoxCaches (   self)
BuildBBoxCaches(SHAPE_POLY_SET self)

Definition at line 5367 of file pcbnew.py.

◆ BuildPolysetFromOrientedPaths()

"SHAPE_POLY_SET const" pcbnew.SHAPE_POLY_SET.BuildPolysetFromOrientedPaths ( "std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const &"  aPaths,
"bool"  aReverseOrientation = False,
"bool"  aEvenOdd = False 
)
static
BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET

Definition at line 5452 of file pcbnew.py.

◆ CacheTriangulation()

"void" pcbnew.SHAPE_POLY_SET.CacheTriangulation (   self,
"bool"  aPartition = True 
)
CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True)

Definition at line 5021 of file pcbnew.py.

◆ Chamfer()

"SHAPE_POLY_SET" pcbnew.SHAPE_POLY_SET.Chamfer (   self,
"int"  aDistance 
)
Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET

Definition at line 5425 of file pcbnew.py.

◆ ChamferPolygon()

"SHAPE_POLY_SET.POLYGON" pcbnew.SHAPE_POLY_SET.ChamferPolygon (   self,
"unsigned int"  aDistance,
"int"  aIndex 
)
ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON

Definition at line 5417 of file pcbnew.py.

◆ CHole()

"SHAPE_LINE_CHAIN const &" pcbnew.SHAPE_POLY_SET.CHole (   self,
"int"  aOutline,
"int"  aHole 
)
CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN

Definition at line 5176 of file pcbnew.py.

◆ CIterate()

"SHAPE_POLY_SET.CONST_ITERATOR" pcbnew.SHAPE_POLY_SET.CIterate (   self,
args 
)
    CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR

Definition at line 5199 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateSegments()

"SHAPE_POLY_SET.CONST_SEGMENT_ITERATOR" pcbnew.SHAPE_POLY_SET.CIterateSegments (   self,
args 
)
    CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR

Definition at line 5226 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateSegmentsWithHoles()

"SHAPE_POLY_SET.CONST_SEGMENT_ITERATOR" pcbnew.SHAPE_POLY_SET.CIterateSegmentsWithHoles (   self,
args 
)
    CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
    CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR

Definition at line 5241 of file pcbnew.py.

Here is the caller graph for this function:

◆ CIterateWithHoles()

"SHAPE_POLY_SET.CONST_ITERATOR" pcbnew.SHAPE_POLY_SET.CIterateWithHoles (   self,
args 
)
    CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
    CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR

Definition at line 5207 of file pcbnew.py.

Here is the caller graph for this function:

◆ ClearArcs()

"void" pcbnew.SHAPE_POLY_SET.ClearArcs (   self)
ClearArcs(SHAPE_POLY_SET self)

Definition at line 5085 of file pcbnew.py.

◆ Clone()

"SHAPE *" pcbnew.SHAPE_POLY_SET.Clone (   self)
Clone(SHAPE_POLY_SET self) -> SHAPE

Reimplemented from pcbnew.SHAPE.

Definition at line 5053 of file pcbnew.py.

Here is the caller graph for this function:

◆ Collide()

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

Reimplemented from pcbnew.SHAPE.

Definition at line 5351 of file pcbnew.py.

Here is the caller graph for this function:

◆ CollideEdge()

"bool" pcbnew.SHAPE_POLY_SET.CollideEdge (   self,
"VECTOR2I"  aPoint,
"SHAPE_POLY_SET::VERTEX_INDEX &"  aClosestVertex,
"int"  aClearance = 0 
)
CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool

Definition at line 5363 of file pcbnew.py.

◆ CollideVertex()

"bool" pcbnew.SHAPE_POLY_SET.CollideVertex (   self,
"VECTOR2I"  aPoint,
"SHAPE_POLY_SET::VERTEX_INDEX &"  aClosestVertex,
"int"  aClearance = 0 
)
CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool

Definition at line 5359 of file pcbnew.py.

◆ Contains()

"bool" pcbnew.SHAPE_POLY_SET.Contains (   self,
"VECTOR2I"  aP,
"int"  aSubpolyIndex = -1,
"int"  aAccuracy = 0,
"bool"  aUseBBoxCaches = False 
)
Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool

Definition at line 5375 of file pcbnew.py.

◆ COutline()

"SHAPE_LINE_CHAIN const &" pcbnew.SHAPE_POLY_SET.COutline (   self,
"int"  aIndex 
)
COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN

Definition at line 5172 of file pcbnew.py.

◆ CPolygon()

"SHAPE_POLY_SET.POLYGON const &" pcbnew.SHAPE_POLY_SET.CPolygon (   self,
"int"  aIndex 
)
CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &

Definition at line 5180 of file pcbnew.py.

◆ CVertex()

"VECTOR2I const &" pcbnew.SHAPE_POLY_SET.CVertex (   self,
args 
)
    CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
    CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
    CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I

Definition at line 5102 of file pcbnew.py.

Here is the caller graph for this function:

◆ Deflate()

"void" pcbnew.SHAPE_POLY_SET.Deflate (   self,
args 
)
Deflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegmentsCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=ROUND_ALL_CORNERS)

Definition at line 5287 of file pcbnew.py.

◆ DeletePolygon()

"void" pcbnew.SHAPE_POLY_SET.DeletePolygon (   self,
"int"  aIdx 
)
DeletePolygon(SHAPE_POLY_SET self, int aIdx)

Definition at line 5413 of file pcbnew.py.

◆ Fillet()

"SHAPE_POLY_SET" pcbnew.SHAPE_POLY_SET.Fillet (   self,
"int"  aRadius,
"int"  aErrorMax 
)
Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET

Definition at line 5429 of file pcbnew.py.

◆ FilletPolygon()

"SHAPE_POLY_SET.POLYGON" pcbnew.SHAPE_POLY_SET.FilletPolygon (   self,
"unsigned int"  aRadius,
"int"  aErrorMax,
"int"  aIndex 
)
FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON

Definition at line 5421 of file pcbnew.py.

◆ Format()

"std.string const" pcbnew.SHAPE_POLY_SET.Format (   self)
Format(SHAPE_POLY_SET self) -> string

Reimplemented from pcbnew.SHAPE.

Definition at line 5319 of file pcbnew.py.

◆ Fracture()

"void" pcbnew.SHAPE_POLY_SET.Fracture (   self,
"SHAPE_POLY_SET::POLYGON_MODE"  aFastMode 
)
Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5295 of file pcbnew.py.

◆ FullPointCount()

"int" pcbnew.SHAPE_POLY_SET.FullPointCount (   self)
FullPointCount(SHAPE_POLY_SET self) -> int

Definition at line 5134 of file pcbnew.py.

◆ GetArcs()

"void" pcbnew.SHAPE_POLY_SET.GetArcs (   self,
"std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > &"  aArcBuffer 
)
GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)

Definition at line 5081 of file pcbnew.py.

◆ GetGlobalIndex()

"bool" pcbnew.SHAPE_POLY_SET.GetGlobalIndex (   self,
"SHAPE_POLY_SET::VERTEX_INDEX"  aRelativeIndices,
"int &"  aGlobalIdx 
)
GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool

Definition at line 5049 of file pcbnew.py.

◆ GetHash()

"MD5_HASH" pcbnew.SHAPE_POLY_SET.GetHash (   self)
GetHash(SHAPE_POLY_SET self) -> MD5_HASH

Definition at line 5029 of file pcbnew.py.

◆ GetIndexableSubshapeCount()

"size_t" pcbnew.SHAPE_POLY_SET.GetIndexableSubshapeCount (   self)
GetIndexableSubshapeCount(SHAPE_POLY_SET self) -> size_t

Reimplemented from pcbnew.SHAPE_BASE.

Definition at line 5037 of file pcbnew.py.

◆ GetIndexableSubshapes()

"void" pcbnew.SHAPE_POLY_SET.GetIndexableSubshapes (   self,
"std::vector< SHAPE *,std::allocator< SHAPE * > > &"  aSubshapes 
)
GetIndexableSubshapes(SHAPE_POLY_SET self, std::vector< SHAPE *,std::allocator< SHAPE * > > & aSubshapes)

Reimplemented from pcbnew.SHAPE_BASE.

Definition at line 5041 of file pcbnew.py.

◆ GetNeighbourIndexes()

"bool" pcbnew.SHAPE_POLY_SET.GetNeighbourIndexes (   self,
"int"  aGlobalIndex,
"int *"  aPrevious,
"int *"  aNext 
)
GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool

Definition at line 5110 of file pcbnew.py.

◆ GetRelativeIndices()

"bool" pcbnew.SHAPE_POLY_SET.GetRelativeIndices (   self,
"int"  aGlobalIdx,
"SHAPE_POLY_SET::VERTEX_INDEX *"  aRelativeIndices 
)
GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool

Definition at line 5045 of file pcbnew.py.

◆ HasHoles()

"bool" pcbnew.SHAPE_POLY_SET.HasHoles (   self)
HasHoles(SHAPE_POLY_SET self) -> bool

Definition at line 5303 of file pcbnew.py.

◆ HasIndexableSubshapes()

"bool" pcbnew.SHAPE_POLY_SET.HasIndexableSubshapes (   self)
HasIndexableSubshapes(SHAPE_POLY_SET self) -> bool

Reimplemented from pcbnew.SHAPE_BASE.

Definition at line 5033 of file pcbnew.py.

◆ HasTouchingHoles()

"bool" pcbnew.SHAPE_POLY_SET.HasTouchingHoles (   self)
HasTouchingHoles(SHAPE_POLY_SET self) -> bool

Definition at line 5307 of file pcbnew.py.

◆ Hole()

"SHAPE_LINE_CHAIN &" pcbnew.SHAPE_POLY_SET.Hole (   self,
"int"  aOutline,
"int"  aHole 
)
Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN

Definition at line 5157 of file pcbnew.py.

◆ HoleCount()

"int" pcbnew.SHAPE_POLY_SET.HoleCount (   self,
"int"  aOutline 
)
HoleCount(SHAPE_POLY_SET self, int aOutline) -> int

Definition at line 5138 of file pcbnew.py.

◆ Inflate()

"void" pcbnew.SHAPE_POLY_SET.Inflate (   self,
args 
)
Inflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=ROUND_ALL_CORNERS)

Definition at line 5283 of file pcbnew.py.

◆ InflateWithLinkedHoles()

"void" pcbnew.SHAPE_POLY_SET.InflateWithLinkedHoles (   self,
"int"  aFactor,
"int"  aCircleSegmentsCount,
"SHAPE_POLY_SET::POLYGON_MODE"  aFastMode 
)
InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5291 of file pcbnew.py.

◆ InsertVertex()

"void" pcbnew.SHAPE_POLY_SET.InsertVertex (   self,
"int"  aGlobalIndex,
"VECTOR2I"  aNewVertex 
)
InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)

Definition at line 5098 of file pcbnew.py.

◆ IsEmpty()

"bool" pcbnew.SHAPE_POLY_SET.IsEmpty (   self)
IsEmpty(SHAPE_POLY_SET self) -> bool

Definition at line 5379 of file pcbnew.py.

◆ IsPolygonSelfIntersecting()

"bool" pcbnew.SHAPE_POLY_SET.IsPolygonSelfIntersecting (   self,
"int"  aPolygonIndex 
)
IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool

Definition at line 5114 of file pcbnew.py.

◆ IsSelfIntersecting()

"bool" pcbnew.SHAPE_POLY_SET.IsSelfIntersecting (   self)
IsSelfIntersecting(SHAPE_POLY_SET self) -> bool

Definition at line 5118 of file pcbnew.py.

◆ IsSolid()

"bool" pcbnew.SHAPE_POLY_SET.IsSolid (   self)
IsSolid(SHAPE_POLY_SET self) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 5339 of file pcbnew.py.

◆ IsTriangulationUpToDate()

"bool" pcbnew.SHAPE_POLY_SET.IsTriangulationUpToDate (   self)
IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool

Definition at line 5025 of file pcbnew.py.

◆ IsVertexInHole()

"bool" pcbnew.SHAPE_POLY_SET.IsVertexInHole (   self,
"int"  aGlobalIdx 
)
IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool

Definition at line 5447 of file pcbnew.py.

◆ Iterate()

"SHAPE_POLY_SET.ITERATOR" pcbnew.SHAPE_POLY_SET.Iterate (   self,
args 
)
    Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
    Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
    Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR

Definition at line 5184 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateFromVertexWithHoles()

"SHAPE_POLY_SET.ITERATOR" pcbnew.SHAPE_POLY_SET.IterateFromVertexWithHoles (   self,
"int"  aGlobalIdx 
)
IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR

Definition at line 5214 of file pcbnew.py.

◆ IterateSegments()

"SHAPE_POLY_SET.SEGMENT_ITERATOR" pcbnew.SHAPE_POLY_SET.IterateSegments (   self,
args 
)
    IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR

Definition at line 5218 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateSegmentsWithHoles()

"SHAPE_POLY_SET.SEGMENT_ITERATOR" pcbnew.SHAPE_POLY_SET.IterateSegmentsWithHoles (   self,
args 
)
    IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
    IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR

Definition at line 5234 of file pcbnew.py.

Here is the caller graph for this function:

◆ IterateWithHoles()

"SHAPE_POLY_SET.ITERATOR" pcbnew.SHAPE_POLY_SET.IterateWithHoles (   self,
args 
)
    IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
    IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR

Definition at line 5192 of file pcbnew.py.

Here is the caller graph for this function:

◆ Mirror()

"void" pcbnew.SHAPE_POLY_SET.Mirror (   self,
args 
)
Mirror(SHAPE_POLY_SET self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })

Definition at line 5331 of file pcbnew.py.

◆ Move()

"void" pcbnew.SHAPE_POLY_SET.Move (   self,
"VECTOR2I"  aVector 
)
Move(SHAPE_POLY_SET self, VECTOR2I aVector)

Reimplemented from pcbnew.SHAPE.

Definition at line 5327 of file pcbnew.py.

◆ NewHole()

"int" pcbnew.SHAPE_POLY_SET.NewHole (   self,
"int"  aOutline = -1 
)
NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int

Definition at line 5061 of file pcbnew.py.

◆ NewOutline()

"int" pcbnew.SHAPE_POLY_SET.NewOutline (   self)
NewOutline(SHAPE_POLY_SET self) -> int

Definition at line 5057 of file pcbnew.py.

◆ NormalizeAreaOutlines()

"int" pcbnew.SHAPE_POLY_SET.NormalizeAreaOutlines (   self)
NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int

Definition at line 5315 of file pcbnew.py.

◆ Outline()

"SHAPE_LINE_CHAIN const &" pcbnew.SHAPE_POLY_SET.Outline (   self,
args 
)
    Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
    Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN

Definition at line 5142 of file pcbnew.py.

Here is the caller graph for this function:

◆ OutlineCount()

"int" pcbnew.SHAPE_POLY_SET.OutlineCount (   self)
OutlineCount(SHAPE_POLY_SET self) -> int

Definition at line 5126 of file pcbnew.py.

◆ Parse()

"bool" pcbnew.SHAPE_POLY_SET.Parse (   self,
"std::stringstream &"  aStream 
)
Parse(SHAPE_POLY_SET self, std::stringstream & aStream) -> bool

Reimplemented from pcbnew.SHAPE.

Definition at line 5323 of file pcbnew.py.

◆ PointOnEdge()

"bool" pcbnew.SHAPE_POLY_SET.PointOnEdge (   self,
"VECTOR2I"  aP 
)
PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP) -> bool

Definition at line 5347 of file pcbnew.py.

◆ Polygon()

"SHAPE_POLY_SET.POLYGON const &" pcbnew.SHAPE_POLY_SET.Polygon (   self,
args 
)
    Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
    Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &

Definition at line 5161 of file pcbnew.py.

Here is the caller graph for this function:

◆ RemoveAllContours()

"void" pcbnew.SHAPE_POLY_SET.RemoveAllContours (   self)
RemoveAllContours(SHAPE_POLY_SET self)

Definition at line 5390 of file pcbnew.py.

◆ RemoveContour()

"void" pcbnew.SHAPE_POLY_SET.RemoveContour (   self,
"int"  aContourIdx,
"int"  aPolygonIdx = -1 
)
RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)

Definition at line 5394 of file pcbnew.py.

◆ RemoveNullSegments()

"int" pcbnew.SHAPE_POLY_SET.RemoveNullSegments (   self)
RemoveNullSegments(SHAPE_POLY_SET self) -> int

Definition at line 5398 of file pcbnew.py.

◆ RemoveVertex()

"void" pcbnew.SHAPE_POLY_SET.RemoveVertex (   self,
args 
)
    RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
    RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)

Definition at line 5383 of file pcbnew.py.

Here is the caller graph for this function:

◆ Rotate()

"void" pcbnew.SHAPE_POLY_SET.Rotate (   self,
args 
)
Rotate(SHAPE_POLY_SET self, double aAngle, VECTOR2I aCenter={ 0, 0 })

Reimplemented from pcbnew.SHAPE.

Definition at line 5335 of file pcbnew.py.

◆ SetVertex()

"void" pcbnew.SHAPE_POLY_SET.SetVertex (   self,
args 
)
    SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
    SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)

Definition at line 5402 of file pcbnew.py.

Here is the caller graph for this function:

◆ Simplify()

"void" pcbnew.SHAPE_POLY_SET.Simplify (   self,
"SHAPE_POLY_SET::POLYGON_MODE"  aFastMode 
)
Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5311 of file pcbnew.py.

◆ SquaredDistance()

"SEG.ecoord" pcbnew.SHAPE_POLY_SET.SquaredDistance (   self,
args 
)
    SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, VECTOR2I aNearest=None) -> SEG::ecoord
    SquaredDistance(SHAPE_POLY_SET self, SEG const & aSegment, VECTOR2I aNearest=None) -> SEG::ecoord

Definition at line 5440 of file pcbnew.py.

Here is the caller graph for this function:

◆ SquaredDistanceToPolygon()

"SEG.ecoord" pcbnew.SHAPE_POLY_SET.SquaredDistanceToPolygon (   self,
args 
)
    SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
    SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG const & aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord

Definition at line 5433 of file pcbnew.py.

Here is the caller graph for this function:

◆ Subset()

"SHAPE_POLY_SET" pcbnew.SHAPE_POLY_SET.Subset (   self,
"int"  aFirstPolygon,
"int"  aLastPolygon 
)
Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET

Definition at line 5149 of file pcbnew.py.

◆ TotalVertices()

"int" pcbnew.SHAPE_POLY_SET.TotalVertices (   self)
TotalVertices(SHAPE_POLY_SET self) -> int

Definition at line 5409 of file pcbnew.py.

◆ TriangulatedPolyCount()

"unsigned int" pcbnew.SHAPE_POLY_SET.TriangulatedPolyCount (   self)
TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int

Definition at line 5122 of file pcbnew.py.

◆ TriangulatedPolygon()

"SHAPE_POLY_SET.TRIANGULATED_POLYGON const *" pcbnew.SHAPE_POLY_SET.TriangulatedPolygon (   self,
"int"  aIndex 
)
TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *

Definition at line 5168 of file pcbnew.py.

◆ Unfracture()

"void" pcbnew.SHAPE_POLY_SET.Unfracture (   self,
"SHAPE_POLY_SET::POLYGON_MODE"  aFastMode 
)
Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)

Definition at line 5299 of file pcbnew.py.

◆ UnitSet()

"SHAPE_POLY_SET" pcbnew.SHAPE_POLY_SET.UnitSet (   self,
"int"  aPolygonIndex 
)
UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET

Definition at line 5153 of file pcbnew.py.

◆ VertexCount()

"int" pcbnew.SHAPE_POLY_SET.VertexCount (   self,
"int"  aOutline = -1,
"int"  aHole = -1 
)
VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int

Definition at line 5130 of file pcbnew.py.

Member Data Documentation

◆ ALLOW_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.ALLOW_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ALLOW_ACUTE_CORNERS
static

Definition at line 5272 of file pcbnew.py.

◆ CHAMFER_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.CHAMFER_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ACUTE_CORNERS
static

Definition at line 5274 of file pcbnew.py.

◆ CHAMFER_ALL_CORNERS

pcbnew.SHAPE_POLY_SET.CHAMFER_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ALL_CORNERS
static

Definition at line 5278 of file pcbnew.py.

◆ PM_FAST

pcbnew.SHAPE_POLY_SET.PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
static

Definition at line 5247 of file pcbnew.py.

◆ PM_STRICTLY_SIMPLE

pcbnew.SHAPE_POLY_SET.PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
static

Definition at line 5249 of file pcbnew.py.

◆ ROUND_ACUTE_CORNERS

pcbnew.SHAPE_POLY_SET.ROUND_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ACUTE_CORNERS
static

Definition at line 5276 of file pcbnew.py.

◆ ROUND_ALL_CORNERS

pcbnew.SHAPE_POLY_SET.ROUND_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ALL_CORNERS
static

Definition at line 5280 of file pcbnew.py.

Property Documentation

◆ thisown

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

Definition at line 5008 of file pcbnew.py.


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