CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hukaixuan19970627

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: hukaixuan19970627/yolov5_obb
Path: blob/master/DOTA_devkit/polyiou.py
Views: 475
1
# This file was automatically generated by SWIG (http://www.swig.org).
2
# Version 3.0.8
3
#
4
# Do not make changes to this file unless you know what you are doing--modify
5
# the SWIG interface file instead.
6
7
8
9
10
11
from sys import version_info
12
if version_info >= (2, 6, 0):
13
def swig_import_helper():
14
from os.path import dirname
15
import imp
16
fp = None
17
try:
18
fp, pathname, description = imp.find_module('_polyiou', [dirname(__file__)])
19
except ImportError:
20
import _polyiou
21
return _polyiou
22
if fp is not None:
23
try:
24
_mod = imp.load_module('_polyiou', fp, pathname, description)
25
finally:
26
fp.close()
27
return _mod
28
_polyiou = swig_import_helper()
29
del swig_import_helper
30
else:
31
import _polyiou
32
del version_info
33
try:
34
_swig_property = property
35
except NameError:
36
pass # Python < 2.2 doesn't have 'property'.
37
38
39
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40
if (name == "thisown"):
41
return self.this.own(value)
42
if (name == "this"):
43
if type(value).__name__ == 'SwigPyObject':
44
self.__dict__[name] = value
45
return
46
method = class_type.__swig_setmethods__.get(name, None)
47
if method:
48
return method(self, value)
49
if (not static):
50
if _newclass:
51
object.__setattr__(self, name, value)
52
else:
53
self.__dict__[name] = value
54
else:
55
raise AttributeError("You cannot add attributes to %s" % self)
56
57
58
def _swig_setattr(self, class_type, name, value):
59
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
60
61
62
def _swig_getattr_nondynamic(self, class_type, name, static=1):
63
if (name == "thisown"):
64
return self.this.own()
65
method = class_type.__swig_getmethods__.get(name, None)
66
if method:
67
return method(self)
68
if (not static):
69
return object.__getattr__(self, name)
70
else:
71
raise AttributeError(name)
72
73
def _swig_getattr(self, class_type, name):
74
return _swig_getattr_nondynamic(self, class_type, name, 0)
75
76
77
def _swig_repr(self):
78
try:
79
strthis = "proxy of " + self.this.__repr__()
80
except Exception:
81
strthis = ""
82
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
83
84
try:
85
_object = object
86
_newclass = 1
87
except AttributeError:
88
class _object:
89
pass
90
_newclass = 0
91
92
93
class SwigPyIterator(_object):
94
__swig_setmethods__ = {}
95
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
96
__swig_getmethods__ = {}
97
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
98
99
def __init__(self, *args, **kwargs):
100
raise AttributeError("No constructor defined - class is abstract")
101
__repr__ = _swig_repr
102
__swig_destroy__ = _polyiou.delete_SwigPyIterator
103
__del__ = lambda self: None
104
105
def value(self):
106
return _polyiou.SwigPyIterator_value(self)
107
108
def incr(self, n=1):
109
return _polyiou.SwigPyIterator_incr(self, n)
110
111
def decr(self, n=1):
112
return _polyiou.SwigPyIterator_decr(self, n)
113
114
def distance(self, x):
115
return _polyiou.SwigPyIterator_distance(self, x)
116
117
def equal(self, x):
118
return _polyiou.SwigPyIterator_equal(self, x)
119
120
def copy(self):
121
return _polyiou.SwigPyIterator_copy(self)
122
123
def next(self):
124
return _polyiou.SwigPyIterator_next(self)
125
126
def __next__(self):
127
return _polyiou.SwigPyIterator___next__(self)
128
129
def previous(self):
130
return _polyiou.SwigPyIterator_previous(self)
131
132
def advance(self, n):
133
return _polyiou.SwigPyIterator_advance(self, n)
134
135
def __eq__(self, x):
136
return _polyiou.SwigPyIterator___eq__(self, x)
137
138
def __ne__(self, x):
139
return _polyiou.SwigPyIterator___ne__(self, x)
140
141
def __iadd__(self, n):
142
return _polyiou.SwigPyIterator___iadd__(self, n)
143
144
def __isub__(self, n):
145
return _polyiou.SwigPyIterator___isub__(self, n)
146
147
def __add__(self, n):
148
return _polyiou.SwigPyIterator___add__(self, n)
149
150
def __sub__(self, *args):
151
return _polyiou.SwigPyIterator___sub__(self, *args)
152
def __iter__(self):
153
return self
154
SwigPyIterator_swigregister = _polyiou.SwigPyIterator_swigregister
155
SwigPyIterator_swigregister(SwigPyIterator)
156
157
class VectorDouble(_object):
158
__swig_setmethods__ = {}
159
__setattr__ = lambda self, name, value: _swig_setattr(self, VectorDouble, name, value)
160
__swig_getmethods__ = {}
161
__getattr__ = lambda self, name: _swig_getattr(self, VectorDouble, name)
162
__repr__ = _swig_repr
163
164
def iterator(self):
165
return _polyiou.VectorDouble_iterator(self)
166
def __iter__(self):
167
return self.iterator()
168
169
def __nonzero__(self):
170
return _polyiou.VectorDouble___nonzero__(self)
171
172
def __bool__(self):
173
return _polyiou.VectorDouble___bool__(self)
174
175
def __len__(self):
176
return _polyiou.VectorDouble___len__(self)
177
178
def __getslice__(self, i, j):
179
return _polyiou.VectorDouble___getslice__(self, i, j)
180
181
def __setslice__(self, *args):
182
return _polyiou.VectorDouble___setslice__(self, *args)
183
184
def __delslice__(self, i, j):
185
return _polyiou.VectorDouble___delslice__(self, i, j)
186
187
def __delitem__(self, *args):
188
return _polyiou.VectorDouble___delitem__(self, *args)
189
190
def __getitem__(self, *args):
191
return _polyiou.VectorDouble___getitem__(self, *args)
192
193
def __setitem__(self, *args):
194
return _polyiou.VectorDouble___setitem__(self, *args)
195
196
def pop(self):
197
return _polyiou.VectorDouble_pop(self)
198
199
def append(self, x):
200
return _polyiou.VectorDouble_append(self, x)
201
202
def empty(self):
203
return _polyiou.VectorDouble_empty(self)
204
205
def size(self):
206
return _polyiou.VectorDouble_size(self)
207
208
def swap(self, v):
209
return _polyiou.VectorDouble_swap(self, v)
210
211
def begin(self):
212
return _polyiou.VectorDouble_begin(self)
213
214
def end(self):
215
return _polyiou.VectorDouble_end(self)
216
217
def rbegin(self):
218
return _polyiou.VectorDouble_rbegin(self)
219
220
def rend(self):
221
return _polyiou.VectorDouble_rend(self)
222
223
def clear(self):
224
return _polyiou.VectorDouble_clear(self)
225
226
def get_allocator(self):
227
return _polyiou.VectorDouble_get_allocator(self)
228
229
def pop_back(self):
230
return _polyiou.VectorDouble_pop_back(self)
231
232
def erase(self, *args):
233
return _polyiou.VectorDouble_erase(self, *args)
234
235
def __init__(self, *args):
236
this = _polyiou.new_VectorDouble(*args)
237
try:
238
self.this.append(this)
239
except Exception:
240
self.this = this
241
242
def push_back(self, x):
243
return _polyiou.VectorDouble_push_back(self, x)
244
245
def front(self):
246
return _polyiou.VectorDouble_front(self)
247
248
def back(self):
249
return _polyiou.VectorDouble_back(self)
250
251
def assign(self, n, x):
252
return _polyiou.VectorDouble_assign(self, n, x)
253
254
def resize(self, *args):
255
return _polyiou.VectorDouble_resize(self, *args)
256
257
def insert(self, *args):
258
return _polyiou.VectorDouble_insert(self, *args)
259
260
def reserve(self, n):
261
return _polyiou.VectorDouble_reserve(self, n)
262
263
def capacity(self):
264
return _polyiou.VectorDouble_capacity(self)
265
__swig_destroy__ = _polyiou.delete_VectorDouble
266
__del__ = lambda self: None
267
VectorDouble_swigregister = _polyiou.VectorDouble_swigregister
268
VectorDouble_swigregister(VectorDouble)
269
270
271
def iou_poly(p, q):
272
return _polyiou.iou_poly(p, q)
273
iou_poly = _polyiou.iou_poly
274
# This file is compatible with both classic and new-style classes.
275
276
277
278