10.1.4.7. Path¶
Module to implement path.
For resources on path see this section.
-
class
Patro.GeometryEngine.Path.
AbsoluteHorizontalSegment
(path, index, x, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.AbsoluteHVSegment
-
__init__
(path, index, x, radius=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
stop_point
¶
-
x
¶
-
-
class
Patro.GeometryEngine.Path.
AbsoluteVerticalSegment
(path, index, y, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.AbsoluteHVSegment
-
__init__
(path, index, y, radius=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
stop_point
¶
-
y
¶
-
-
class
Patro.GeometryEngine.Path.
ArcSegment
(path, index, point, radius_x, radius_y, angle, large_arc, sweep, absolute=False)[source]¶ Bases:
Patro.GeometryEngine.Path.OnePointMixin
,Patro.GeometryEngine.Path.PathPart
-
__init__
(path, index, point, radius_x, radius_y, angle, large_arc, sweep, absolute=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
points
¶
-
-
class
Patro.GeometryEngine.Path.
CubicBezierSegment
(path, index, point1, point2, point3, absolute=False)[source]¶ Bases:
Patro.GeometryEngine.Path.PathPart
,Patro.GeometryEngine.Path.ThreePointMixin
-
__init__
(path, index, point1, point2, point3, absolute=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
points
¶
-
stop_point
¶
-
-
class
Patro.GeometryEngine.Path.
DirectionalSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegmentMixin
-
__angle__
= None¶
-
__init__
(path, index, length, radius=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
length
¶
-
offset
¶
-
stop_point
¶
-
-
class
Patro.GeometryEngine.Path.
DirectionalSegmentMixin
(path, index, radius, closing=False)[source]¶ Bases:
Patro.GeometryEngine.Path.LinearSegment
-
geometry
¶
-
-
class
Patro.GeometryEngine.Path.
EastSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 0¶
-
-
class
Patro.GeometryEngine.Path.
HorizontalSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 0¶
-
-
class
Patro.GeometryEngine.Path.
LinearSegment
(path, index, radius, closing=False)[source]¶ Bases:
Patro.GeometryEngine.Path.PathPart
Class to implement a linear segment.
-
__init__
(path, index, radius, closing=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
_logger
= <Logger Patro.GeometryEngine.Path.LinearSegment (WARNING)>¶
-
bissector
¶
-
bulge_angle
¶
-
bulge_angle_rad
¶
-
bulge_center
¶
-
bulge_geometry
¶
-
bulge_start_point
¶
-
bulge_stop_point
¶
-
direction
¶
-
half_bulge_angle
¶
-
next_part
¶
-
points
¶
-
prev_part
¶
-
radius
¶
-
-
class
Patro.GeometryEngine.Path.
NorthEastSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 45¶
-
-
class
Patro.GeometryEngine.Path.
NorthSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 90¶
-
-
class
Patro.GeometryEngine.Path.
NorthWestSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 135¶
-
-
class
Patro.GeometryEngine.Path.
Path2D
(start_point)[source]¶ Bases:
Patro.GeometryEngine.Primitive.Primitive1PMixin
,Patro.GeometryEngine.Primitive.Primitive2DMixin
,Patro.GeometryEngine.Primitive.Primitive
Class to implements 2D Path.
-
_logger
= <Logger Patro.GeometryEngine.Path.Path2D (WARNING)>¶
-
bounding_box
¶ Bounding box of the primitive.
Return None if primitive is infinite.
-
is_closed
¶ True if the primitive is a closed path.
Note: an infinite primitive cannot be closed.
-
is_composed
¶ True if the primitive is a composition of simpler primitives, e.g. a path.
-
start_segment
¶
-
stop_segment
¶
-
-
class
Patro.GeometryEngine.Path.
PathPart
(path, index)[source]¶ Bases:
object
-
bounding_box
¶
-
geometry
¶
-
index
¶
-
next_part
¶
-
path
¶
-
prev_part
¶
-
start_point
¶
-
stop_point
¶
-
-
class
Patro.GeometryEngine.Path.
PathSegment
(path, index, point, radius=None, absolute=False, closing=False)[source]¶ Bases:
Patro.GeometryEngine.Path.OnePointMixin
,Patro.GeometryEngine.Path.LinearSegment
-
__init__
(path, index, point, radius=None, absolute=False, closing=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
-
class
Patro.GeometryEngine.Path.
QuadraticBezierSegment
(path, index, point1, point2, absolute=False)[source]¶ Bases:
Patro.GeometryEngine.Path.PathPart
,Patro.GeometryEngine.Path.TwoPointMixin
-
__init__
(path, index, point1, point2, absolute=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
points
¶
-
stop_point
¶
-
-
class
Patro.GeometryEngine.Path.
SouthEastSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= -45¶
-
-
class
Patro.GeometryEngine.Path.
SouthSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= -90¶
-
-
class
Patro.GeometryEngine.Path.
SouthWestSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= -135¶
-
-
class
Patro.GeometryEngine.Path.
StringedCubicBezierSegment
(path, index, point1, point2, absolute=False)[source]¶ Bases:
Patro.GeometryEngine.Path.PathPart
,Patro.GeometryEngine.Path.TwoPointMixin
-
__init__
(path, index, point1, point2, absolute=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
-
class
Patro.GeometryEngine.Path.
StringedQuadtraticBezierSegment
(path, index, point1, absolute=False)[source]¶ Bases:
Patro.GeometryEngine.Path.PathPart
,Patro.GeometryEngine.Path.TwoPointMixin
-
__init__
(path, index, point1, absolute=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
geometry
¶
-
-
class
Patro.GeometryEngine.Path.
ThreePointMixin
[source]¶ Bases:
Patro.GeometryEngine.Path.TwoPointMixin
-
point3
¶
-
-
class
Patro.GeometryEngine.Path.
VerticalSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 90¶
-
-
class
Patro.GeometryEngine.Path.
WestSegment
(path, index, length, radius=None)[source]¶ Bases:
Patro.GeometryEngine.Path.DirectionalSegment
-
__angle__
= 180¶
-