-
Notifications
You must be signed in to change notification settings - Fork 1
/
PolygonDust.pyi
146 lines (141 loc) · 3.53 KB
/
PolygonDust.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
"""
PolygonDust
-----------------------
.. currentmodule:: PolygonDust
.. autosummary::
:toctree: _generate
Polygon
Point
RasterizationContext
RasterizationCells
"""
from __future__ import annotations
import typing
__all__ = ['Point', 'Polygon', 'RasterizationCells', 'RasterizationContext', 'VectorizationContext']
class Point:
"""
A Point class for create a point
"""
@staticmethod
def _pybind11_conduit_v1_(*args, **kwargs):
...
def GetX(self) -> float:
"""
Get the X of the point
"""
def GetY(self) -> float:
"""
Get the Y of the point
"""
def __init__(self, arg0: float, arg1: float) -> None:
...
def __repr__(self) -> str:
...
class Polygon:
"""
A Polygon class for create a polygon
"""
@staticmethod
def _pybind11_conduit_v1_(*args, **kwargs):
...
def GetArea(self) -> float:
"""
Get the area of polygon
"""
def GetVertex(self) -> list[Point]:
"""
Get the vertexs of polygon
"""
@typing.overload
def __init__(self) -> None:
...
@typing.overload
def __init__(self, arg0: list[Point]) -> None:
...
class RasterizationCells:
"""
A Rasterization Cell class for store the cell and do some operation
"""
@staticmethod
def _pybind11_conduit_v1_(*args, **kwargs):
...
def Cut(self, arg0: RasterizationCells) -> None:
"""
Get the cell set
"""
def GetCellSet(self) -> set[Point]:
"""
Get the cell set
"""
def Intersect(self, arg0: RasterizationCells) -> None:
"""
Get the cell set
"""
def Union(self, arg0: RasterizationCells) -> None:
"""
Get the cell set
"""
def __init__(self, arg0: list[Point]) -> None:
...
class RasterizationContext:
"""
A RasterizationContext class for add multiple polygon into rasterization
"""
@staticmethod
def _pybind11_conduit_v1_(*args, **kwargs):
...
def AddPolygon(self, arg0: Polygon) -> None:
"""
Add Polygon
"""
def GetMaxX(self) -> float:
"""
Get max X
"""
def GetMaxY(self) -> float:
"""
Get max Y
"""
def GetMinX(self) -> float:
"""
Get min X
"""
def GetMinY(self) -> float:
"""
Get min Y
"""
def GetPolygonCell(self, arg0: int) -> RasterizationCells:
"""
Get the cell of Polygon
"""
def __enter__(self) -> RasterizationContext:
...
def __exit__(self, arg0: typing.Any, arg1: typing.Any, arg2: typing.Any) -> None:
...
def __init__(self, arg0: float) -> None:
...
class VectorizationContext:
"""
A VectorizationContext class for add multiple polygon into vectorization
"""
@staticmethod
def _pybind11_conduit_v1_(*args, **kwargs):
...
def ClipPolygon(self, arg0: Polygon) -> None:
"""
Clip polygon
"""
def GetIntersectPoint(self) -> list[Point]:
"""
Get intersect points
"""
def GetResult(self) -> list[Polygon]:
"""
Get clipped polygon result
"""
def __enter__(self) -> VectorizationContext:
...
def __exit__(self, arg0: typing.Any, arg1: typing.Any, arg2: typing.Any) -> None:
...
def __init__(self, arg0: Polygon) -> None:
...