askiff.gritems.GrArcPCB¶
- class askiff.gritems.GrArcPCB¶
Bases:
askiff.common.BaseArc,GrShapePCB
Graphic arc element on a KiCad PCB. Represents an arc segment defined by start, mid, and end points
- calculate_circle() BaseCircle¶
Calculates center point and radius of the circle, the arc belongs to
- Return type:
- classmethod deserialize(sexp: askiff._sexpr.GeneralizedSexpr) Self¶
Deserializes a KiCad sexpr representation into an object instance. :Parameters: sexp – pre-parsed S-Expression AST
- Returns:
Deserialized structure
- Parameters:
- sexp : askiff._sexpr.GeneralizedSexpr¶
- Return type:
Self
Notes
Uses _AutoSerde__deser_field* tables for efficient lookup how to deserialize encountered objects
Places unrecognized field in __extra/__extra_positional and issues warning
Encountered str objects are processed as positional or bare-flag components
Tuples are processed as normal args treating first object as keyword identifying target field
- classmethod deserialize_downcast_agg(sexp: askiff._sexpr.GeneralizedSexpr) Self¶
Deserializes a sexpr into an instance of the class or one of its downcast subclasses
- Parameters:
- sexp : askiff._sexpr.GeneralizedSexpr¶
- Return type:
Self
- extrema_points() collections.abc.Sequence[Position]¶
Calculates the extrema points of the arc That is start, mid and end points & any additional extrema from the enclosing circle that belongs to arc.
- Return type:
- serialize() askiff._sexpr.GeneralizedSexpr¶
Serializes the object into a S-Expression AST
Fields are processed in order: __ser_field_positional, __extra_positional, __ser_field & __extra
- Return type:
askiff._sexpr.GeneralizedSexpr
- to_global(ref_pos: Position) None¶
Changes object coordinates in place to global ones using ref_pos as current origin.
- layer : askiff.common_pcb.BaseLayer¶
Layer where the graphic shape is placed
- net : askiff.common_pcb.Net | None¶
Net identifier for the graphic shape element.
-
stroke : askiff.common.Stroke | None =
None¶ Visual styling configuration for the graphical shape’s outline and stroke appearance.
- uuid : askiff.common.Uuid¶
Unique identifier for the graphical item.