10.1.4.13.1. ArrowHead¶
Module to implement arrow head.
-
class
Patro.GeometryEngine.Shape.ArrowHead.
ArrowHead
(point, direction)[source]¶ Bases:
object
Base class to implement arrow head.
An arrow head (tip) is placed at an anchor point along a direction (support line). It can be placed at a segment extremities or shifted from an extremity, for example for multiple tips.
-
anchor_point
¶
-
direction
¶
-
-
class
Patro.GeometryEngine.Shape.ArrowHead.
TriangularCurvyHead
(point, direction, length, width, curve_depth, axial_offset=0, left_side=True, right_side=True)[source]¶ Bases:
Patro.GeometryEngine.Shape.ArrowHead.TriangularHeadMixin
,Patro.GeometryEngine.Path.Path2D
-
__init__
(point, direction, length, width, curve_depth, axial_offset=0, left_side=True, right_side=True)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
curve_depth
¶
-
left_curved_point
¶
-
right_curved_point
¶
-
-
class
Patro.GeometryEngine.Shape.ArrowHead.
TriangularHead
(point, direction, length, width, axial_offset=0, left_side=True, right_side=True)[source]¶ Bases:
Patro.GeometryEngine.Shape.ArrowHead.TriangularHeadMixin
,Patro.GeometryEngine.Polygon.Polygon2D
-
class
Patro.GeometryEngine.Shape.ArrowHead.
TriangularHeadMixin
(point, direction, length, width, axial_offset=0, left_side=True, right_side=True)[source]¶ Bases:
Patro.GeometryEngine.Shape.ArrowHead.ArrowHead
-
__init__
(point, direction, length, width, axial_offset=0, left_side=True, right_side=True)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
angle
¶
-
axial_offset
¶
-
back_tip_point
¶
-
both_side
¶
-
has_axial_offset
¶
-
left_point
¶
-
left_side
¶
-
length
¶
-
offseted_back_tip_point
¶
-
only_left
¶
-
only_right
¶
-
right_point
¶
-
right_side
¶
-
tip_point
¶
-
width
¶
-