-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathalmathswig.py
2925 lines (2419 loc) · 122 KB
/
almathswig.py
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.7
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_almathswig', [dirname(__file__)])
except ImportError:
import _almathswig
return _almathswig
if fp is not None:
try:
_mod = imp.load_module('_almathswig', fp, pathname, description)
finally:
fp.close()
return _mod
_almathswig = swig_import_helper()
del swig_import_helper
else:
import _almathswig
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
class SwigPyIterator(_object):
"""Proxy of C++ swig::SwigPyIterator class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _almathswig.delete_SwigPyIterator
__del__ = lambda self : None;
def value(self):
"""value(SwigPyIterator self) -> PyObject *"""
return _almathswig.SwigPyIterator_value(self)
def incr(self, n=1):
"""
incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
incr(SwigPyIterator self) -> SwigPyIterator
"""
return _almathswig.SwigPyIterator_incr(self, n)
def decr(self, n=1):
"""
decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
decr(SwigPyIterator self) -> SwigPyIterator
"""
return _almathswig.SwigPyIterator_decr(self, n)
def distance(self, *args):
"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
return _almathswig.SwigPyIterator_distance(self, *args)
def equal(self, *args):
"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _almathswig.SwigPyIterator_equal(self, *args)
def copy(self):
"""copy(SwigPyIterator self) -> SwigPyIterator"""
return _almathswig.SwigPyIterator_copy(self)
def next(self):
"""next(SwigPyIterator self) -> PyObject *"""
return _almathswig.SwigPyIterator_next(self)
def __next__(self):
"""__next__(SwigPyIterator self) -> PyObject *"""
return _almathswig.SwigPyIterator___next__(self)
def previous(self):
"""previous(SwigPyIterator self) -> PyObject *"""
return _almathswig.SwigPyIterator_previous(self)
def advance(self, *args):
"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _almathswig.SwigPyIterator_advance(self, *args)
def __eq__(self, *args):
"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _almathswig.SwigPyIterator___eq__(self, *args)
def __ne__(self, *args):
"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
return _almathswig.SwigPyIterator___ne__(self, *args)
def __iadd__(self, *args):
"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _almathswig.SwigPyIterator___iadd__(self, *args)
def __isub__(self, *args):
"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _almathswig.SwigPyIterator___isub__(self, *args)
def __add__(self, *args):
"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
return _almathswig.SwigPyIterator___add__(self, *args)
def __sub__(self, *args):
"""
__sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
__sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
"""
return _almathswig.SwigPyIterator___sub__(self, *args)
def __iter__(self): return self
SwigPyIterator_swigregister = _almathswig.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class vectorFloat(_object):
"""Proxy of C++ std::vector<(float)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vectorFloat, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vectorFloat, name)
def iterator(self):
"""iterator(vectorFloat self) -> SwigPyIterator"""
return _almathswig.vectorFloat_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self):
"""__nonzero__(vectorFloat self) -> bool"""
return _almathswig.vectorFloat___nonzero__(self)
def __bool__(self):
"""__bool__(vectorFloat self) -> bool"""
return _almathswig.vectorFloat___bool__(self)
def __len__(self):
"""__len__(vectorFloat self) -> std::vector< float >::size_type"""
return _almathswig.vectorFloat___len__(self)
def pop(self):
"""pop(vectorFloat self) -> std::vector< float >::value_type"""
return _almathswig.vectorFloat_pop(self)
def __getslice__(self, *args):
"""__getslice__(vectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j) -> vectorFloat"""
return _almathswig.vectorFloat___getslice__(self, *args)
def __setslice__(self, *args):
"""
__setslice__(vectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j,
vectorFloat v=std::vector< float,std::allocator< float > >())
__setslice__(vectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)
"""
return _almathswig.vectorFloat___setslice__(self, *args)
def __delslice__(self, *args):
"""__delslice__(vectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)"""
return _almathswig.vectorFloat___delslice__(self, *args)
def __delitem__(self, *args):
"""
__delitem__(vectorFloat self, std::vector< float >::difference_type i)
__delitem__(vectorFloat self, PySliceObject * slice)
"""
return _almathswig.vectorFloat___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(vectorFloat self, PySliceObject * slice) -> vectorFloat
__getitem__(vectorFloat self, std::vector< float >::difference_type i) -> std::vector< float >::value_type const &
"""
return _almathswig.vectorFloat___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(vectorFloat self, PySliceObject * slice, vectorFloat v)
__setitem__(vectorFloat self, PySliceObject * slice)
__setitem__(vectorFloat self, std::vector< float >::difference_type i, std::vector< float >::value_type const & x)
"""
return _almathswig.vectorFloat___setitem__(self, *args)
def append(self, *args):
"""append(vectorFloat self, std::vector< float >::value_type const & x)"""
return _almathswig.vectorFloat_append(self, *args)
def empty(self):
"""empty(vectorFloat self) -> bool"""
return _almathswig.vectorFloat_empty(self)
def size(self):
"""size(vectorFloat self) -> std::vector< float >::size_type"""
return _almathswig.vectorFloat_size(self)
def clear(self):
"""clear(vectorFloat self)"""
return _almathswig.vectorFloat_clear(self)
def swap(self, *args):
"""swap(vectorFloat self, vectorFloat v)"""
return _almathswig.vectorFloat_swap(self, *args)
def get_allocator(self):
"""get_allocator(vectorFloat self) -> std::vector< float >::allocator_type"""
return _almathswig.vectorFloat_get_allocator(self)
def begin(self):
"""begin(vectorFloat self) -> std::vector< float >::iterator"""
return _almathswig.vectorFloat_begin(self)
def end(self):
"""end(vectorFloat self) -> std::vector< float >::iterator"""
return _almathswig.vectorFloat_end(self)
def rbegin(self):
"""rbegin(vectorFloat self) -> std::vector< float >::reverse_iterator"""
return _almathswig.vectorFloat_rbegin(self)
def rend(self):
"""rend(vectorFloat self) -> std::vector< float >::reverse_iterator"""
return _almathswig.vectorFloat_rend(self)
def pop_back(self):
"""pop_back(vectorFloat self)"""
return _almathswig.vectorFloat_pop_back(self)
def erase(self, *args):
"""
erase(vectorFloat self, std::vector< float >::iterator pos) -> std::vector< float >::iterator
erase(vectorFloat self, std::vector< float >::iterator first, std::vector< float >::iterator last) -> std::vector< float >::iterator
"""
return _almathswig.vectorFloat_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::vector<(float)> self) -> vectorFloat
__init__(std::vector<(float)> self, vectorFloat arg2) -> vectorFloat
__init__(std::vector<(float)> self, std::vector< float >::size_type size) -> vectorFloat
__init__(std::vector<(float)> self, std::vector< float >::size_type size, std::vector< float >::value_type const & value) -> vectorFloat
"""
this = _almathswig.new_vectorFloat(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args):
"""push_back(vectorFloat self, std::vector< float >::value_type const & x)"""
return _almathswig.vectorFloat_push_back(self, *args)
def front(self):
"""front(vectorFloat self) -> std::vector< float >::value_type const &"""
return _almathswig.vectorFloat_front(self)
def back(self):
"""back(vectorFloat self) -> std::vector< float >::value_type const &"""
return _almathswig.vectorFloat_back(self)
def assign(self, *args):
"""assign(vectorFloat self, std::vector< float >::size_type n, std::vector< float >::value_type const & x)"""
return _almathswig.vectorFloat_assign(self, *args)
def resize(self, *args):
"""
resize(vectorFloat self, std::vector< float >::size_type new_size)
resize(vectorFloat self, std::vector< float >::size_type new_size, std::vector< float >::value_type const & x)
"""
return _almathswig.vectorFloat_resize(self, *args)
def insert(self, *args):
"""
insert(vectorFloat self, std::vector< float >::iterator pos, std::vector< float >::value_type const & x) -> std::vector< float >::iterator
insert(vectorFloat self, std::vector< float >::iterator pos, std::vector< float >::size_type n, std::vector< float >::value_type const & x)
"""
return _almathswig.vectorFloat_insert(self, *args)
def reserve(self, *args):
"""reserve(vectorFloat self, std::vector< float >::size_type n)"""
return _almathswig.vectorFloat_reserve(self, *args)
def capacity(self):
"""capacity(vectorFloat self) -> std::vector< float >::size_type"""
return _almathswig.vectorFloat_capacity(self)
def __repr__(self):
"""__repr__(vectorFloat self) -> std::string"""
return _almathswig.vectorFloat___repr__(self)
__swig_destroy__ = _almathswig.delete_vectorFloat
__del__ = lambda self : None;
vectorFloat_swigregister = _almathswig.vectorFloat_swigregister
vectorFloat_swigregister(vectorFloat)
class vectorPosition2D(_object):
"""Proxy of C++ std::vector<(AL::Math::Position2D)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vectorPosition2D, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vectorPosition2D, name)
def iterator(self):
"""iterator(vectorPosition2D self) -> SwigPyIterator"""
return _almathswig.vectorPosition2D_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self):
"""__nonzero__(vectorPosition2D self) -> bool"""
return _almathswig.vectorPosition2D___nonzero__(self)
def __bool__(self):
"""__bool__(vectorPosition2D self) -> bool"""
return _almathswig.vectorPosition2D___bool__(self)
def __len__(self):
"""__len__(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::size_type"""
return _almathswig.vectorPosition2D___len__(self)
def pop(self):
"""pop(vectorPosition2D self) -> Position2D"""
return _almathswig.vectorPosition2D_pop(self)
def __getslice__(self, *args):
"""__getslice__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i, std::vector< AL::Math::Position2D >::difference_type j) -> vectorPosition2D"""
return _almathswig.vectorPosition2D___getslice__(self, *args)
def __setslice__(self, *args):
"""
__setslice__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i, std::vector< AL::Math::Position2D >::difference_type j,
vectorPosition2D v=std::vector< AL::Math::Position2D,std::allocator< AL::Math::Position2D > >())
__setslice__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i, std::vector< AL::Math::Position2D >::difference_type j)
"""
return _almathswig.vectorPosition2D___setslice__(self, *args)
def __delslice__(self, *args):
"""__delslice__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i, std::vector< AL::Math::Position2D >::difference_type j)"""
return _almathswig.vectorPosition2D___delslice__(self, *args)
def __delitem__(self, *args):
"""
__delitem__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i)
__delitem__(vectorPosition2D self, PySliceObject * slice)
"""
return _almathswig.vectorPosition2D___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(vectorPosition2D self, PySliceObject * slice) -> vectorPosition2D
__getitem__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i) -> Position2D
"""
return _almathswig.vectorPosition2D___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(vectorPosition2D self, PySliceObject * slice, vectorPosition2D v)
__setitem__(vectorPosition2D self, PySliceObject * slice)
__setitem__(vectorPosition2D self, std::vector< AL::Math::Position2D >::difference_type i, Position2D x)
"""
return _almathswig.vectorPosition2D___setitem__(self, *args)
def append(self, *args):
"""append(vectorPosition2D self, Position2D x)"""
return _almathswig.vectorPosition2D_append(self, *args)
def empty(self):
"""empty(vectorPosition2D self) -> bool"""
return _almathswig.vectorPosition2D_empty(self)
def size(self):
"""size(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::size_type"""
return _almathswig.vectorPosition2D_size(self)
def clear(self):
"""clear(vectorPosition2D self)"""
return _almathswig.vectorPosition2D_clear(self)
def swap(self, *args):
"""swap(vectorPosition2D self, vectorPosition2D v)"""
return _almathswig.vectorPosition2D_swap(self, *args)
def get_allocator(self):
"""get_allocator(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::allocator_type"""
return _almathswig.vectorPosition2D_get_allocator(self)
def begin(self):
"""begin(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::iterator"""
return _almathswig.vectorPosition2D_begin(self)
def end(self):
"""end(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::iterator"""
return _almathswig.vectorPosition2D_end(self)
def rbegin(self):
"""rbegin(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::reverse_iterator"""
return _almathswig.vectorPosition2D_rbegin(self)
def rend(self):
"""rend(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::reverse_iterator"""
return _almathswig.vectorPosition2D_rend(self)
def pop_back(self):
"""pop_back(vectorPosition2D self)"""
return _almathswig.vectorPosition2D_pop_back(self)
def erase(self, *args):
"""
erase(vectorPosition2D self, std::vector< AL::Math::Position2D >::iterator pos) -> std::vector< AL::Math::Position2D >::iterator
erase(vectorPosition2D self, std::vector< AL::Math::Position2D >::iterator first, std::vector< AL::Math::Position2D >::iterator last) -> std::vector< AL::Math::Position2D >::iterator
"""
return _almathswig.vectorPosition2D_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::vector<(AL::Math::Position2D)> self) -> vectorPosition2D
__init__(std::vector<(AL::Math::Position2D)> self, vectorPosition2D arg2) -> vectorPosition2D
__init__(std::vector<(AL::Math::Position2D)> self, std::vector< AL::Math::Position2D >::size_type size) -> vectorPosition2D
__init__(std::vector<(AL::Math::Position2D)> self, std::vector< AL::Math::Position2D >::size_type size, Position2D value) -> vectorPosition2D
"""
this = _almathswig.new_vectorPosition2D(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args):
"""push_back(vectorPosition2D self, Position2D x)"""
return _almathswig.vectorPosition2D_push_back(self, *args)
def front(self):
"""front(vectorPosition2D self) -> Position2D"""
return _almathswig.vectorPosition2D_front(self)
def back(self):
"""back(vectorPosition2D self) -> Position2D"""
return _almathswig.vectorPosition2D_back(self)
def assign(self, *args):
"""assign(vectorPosition2D self, std::vector< AL::Math::Position2D >::size_type n, Position2D x)"""
return _almathswig.vectorPosition2D_assign(self, *args)
def resize(self, *args):
"""
resize(vectorPosition2D self, std::vector< AL::Math::Position2D >::size_type new_size)
resize(vectorPosition2D self, std::vector< AL::Math::Position2D >::size_type new_size, Position2D x)
"""
return _almathswig.vectorPosition2D_resize(self, *args)
def insert(self, *args):
"""
insert(vectorPosition2D self, std::vector< AL::Math::Position2D >::iterator pos, Position2D x) -> std::vector< AL::Math::Position2D >::iterator
insert(vectorPosition2D self, std::vector< AL::Math::Position2D >::iterator pos, std::vector< AL::Math::Position2D >::size_type n,
Position2D x)
"""
return _almathswig.vectorPosition2D_insert(self, *args)
def reserve(self, *args):
"""reserve(vectorPosition2D self, std::vector< AL::Math::Position2D >::size_type n)"""
return _almathswig.vectorPosition2D_reserve(self, *args)
def capacity(self):
"""capacity(vectorPosition2D self) -> std::vector< AL::Math::Position2D >::size_type"""
return _almathswig.vectorPosition2D_capacity(self)
def __repr__(self):
"""__repr__(vectorPosition2D self) -> std::string"""
return _almathswig.vectorPosition2D___repr__(self)
__swig_destroy__ = _almathswig.delete_vectorPosition2D
__del__ = lambda self : None;
vectorPosition2D_swigregister = _almathswig.vectorPosition2D_swigregister
vectorPosition2D_swigregister(vectorPosition2D)
class vectorPose2D(_object):
"""Proxy of C++ std::vector<(AL::Math::Pose2D)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vectorPose2D, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vectorPose2D, name)
def iterator(self):
"""iterator(vectorPose2D self) -> SwigPyIterator"""
return _almathswig.vectorPose2D_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self):
"""__nonzero__(vectorPose2D self) -> bool"""
return _almathswig.vectorPose2D___nonzero__(self)
def __bool__(self):
"""__bool__(vectorPose2D self) -> bool"""
return _almathswig.vectorPose2D___bool__(self)
def __len__(self):
"""__len__(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::size_type"""
return _almathswig.vectorPose2D___len__(self)
def pop(self):
"""pop(vectorPose2D self) -> Pose2D"""
return _almathswig.vectorPose2D_pop(self)
def __getslice__(self, *args):
"""__getslice__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i, std::vector< AL::Math::Pose2D >::difference_type j) -> vectorPose2D"""
return _almathswig.vectorPose2D___getslice__(self, *args)
def __setslice__(self, *args):
"""
__setslice__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i, std::vector< AL::Math::Pose2D >::difference_type j,
vectorPose2D v=std::vector< AL::Math::Pose2D,std::allocator< AL::Math::Pose2D > >())
__setslice__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i, std::vector< AL::Math::Pose2D >::difference_type j)
"""
return _almathswig.vectorPose2D___setslice__(self, *args)
def __delslice__(self, *args):
"""__delslice__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i, std::vector< AL::Math::Pose2D >::difference_type j)"""
return _almathswig.vectorPose2D___delslice__(self, *args)
def __delitem__(self, *args):
"""
__delitem__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i)
__delitem__(vectorPose2D self, PySliceObject * slice)
"""
return _almathswig.vectorPose2D___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(vectorPose2D self, PySliceObject * slice) -> vectorPose2D
__getitem__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i) -> Pose2D
"""
return _almathswig.vectorPose2D___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(vectorPose2D self, PySliceObject * slice, vectorPose2D v)
__setitem__(vectorPose2D self, PySliceObject * slice)
__setitem__(vectorPose2D self, std::vector< AL::Math::Pose2D >::difference_type i, Pose2D x)
"""
return _almathswig.vectorPose2D___setitem__(self, *args)
def append(self, *args):
"""append(vectorPose2D self, Pose2D x)"""
return _almathswig.vectorPose2D_append(self, *args)
def empty(self):
"""empty(vectorPose2D self) -> bool"""
return _almathswig.vectorPose2D_empty(self)
def size(self):
"""size(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::size_type"""
return _almathswig.vectorPose2D_size(self)
def clear(self):
"""clear(vectorPose2D self)"""
return _almathswig.vectorPose2D_clear(self)
def swap(self, *args):
"""swap(vectorPose2D self, vectorPose2D v)"""
return _almathswig.vectorPose2D_swap(self, *args)
def get_allocator(self):
"""get_allocator(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::allocator_type"""
return _almathswig.vectorPose2D_get_allocator(self)
def begin(self):
"""begin(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::iterator"""
return _almathswig.vectorPose2D_begin(self)
def end(self):
"""end(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::iterator"""
return _almathswig.vectorPose2D_end(self)
def rbegin(self):
"""rbegin(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::reverse_iterator"""
return _almathswig.vectorPose2D_rbegin(self)
def rend(self):
"""rend(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::reverse_iterator"""
return _almathswig.vectorPose2D_rend(self)
def pop_back(self):
"""pop_back(vectorPose2D self)"""
return _almathswig.vectorPose2D_pop_back(self)
def erase(self, *args):
"""
erase(vectorPose2D self, std::vector< AL::Math::Pose2D >::iterator pos) -> std::vector< AL::Math::Pose2D >::iterator
erase(vectorPose2D self, std::vector< AL::Math::Pose2D >::iterator first, std::vector< AL::Math::Pose2D >::iterator last) -> std::vector< AL::Math::Pose2D >::iterator
"""
return _almathswig.vectorPose2D_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::vector<(AL::Math::Pose2D)> self) -> vectorPose2D
__init__(std::vector<(AL::Math::Pose2D)> self, vectorPose2D arg2) -> vectorPose2D
__init__(std::vector<(AL::Math::Pose2D)> self, std::vector< AL::Math::Pose2D >::size_type size) -> vectorPose2D
__init__(std::vector<(AL::Math::Pose2D)> self, std::vector< AL::Math::Pose2D >::size_type size, Pose2D value) -> vectorPose2D
"""
this = _almathswig.new_vectorPose2D(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args):
"""push_back(vectorPose2D self, Pose2D x)"""
return _almathswig.vectorPose2D_push_back(self, *args)
def front(self):
"""front(vectorPose2D self) -> Pose2D"""
return _almathswig.vectorPose2D_front(self)
def back(self):
"""back(vectorPose2D self) -> Pose2D"""
return _almathswig.vectorPose2D_back(self)
def assign(self, *args):
"""assign(vectorPose2D self, std::vector< AL::Math::Pose2D >::size_type n, Pose2D x)"""
return _almathswig.vectorPose2D_assign(self, *args)
def resize(self, *args):
"""
resize(vectorPose2D self, std::vector< AL::Math::Pose2D >::size_type new_size)
resize(vectorPose2D self, std::vector< AL::Math::Pose2D >::size_type new_size, Pose2D x)
"""
return _almathswig.vectorPose2D_resize(self, *args)
def insert(self, *args):
"""
insert(vectorPose2D self, std::vector< AL::Math::Pose2D >::iterator pos, Pose2D x) -> std::vector< AL::Math::Pose2D >::iterator
insert(vectorPose2D self, std::vector< AL::Math::Pose2D >::iterator pos, std::vector< AL::Math::Pose2D >::size_type n,
Pose2D x)
"""
return _almathswig.vectorPose2D_insert(self, *args)
def reserve(self, *args):
"""reserve(vectorPose2D self, std::vector< AL::Math::Pose2D >::size_type n)"""
return _almathswig.vectorPose2D_reserve(self, *args)
def capacity(self):
"""capacity(vectorPose2D self) -> std::vector< AL::Math::Pose2D >::size_type"""
return _almathswig.vectorPose2D_capacity(self)
def __repr__(self):
"""__repr__(vectorPose2D self) -> std::string"""
return _almathswig.vectorPose2D___repr__(self)
__swig_destroy__ = _almathswig.delete_vectorPose2D
__del__ = lambda self : None;
vectorPose2D_swigregister = _almathswig.vectorPose2D_swigregister
vectorPose2D_swigregister(vectorPose2D)
class vectorPosition6D(_object):
"""Proxy of C++ std::vector<(AL::Math::Position6D)> class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, vectorPosition6D, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, vectorPosition6D, name)
def iterator(self):
"""iterator(vectorPosition6D self) -> SwigPyIterator"""
return _almathswig.vectorPosition6D_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self):
"""__nonzero__(vectorPosition6D self) -> bool"""
return _almathswig.vectorPosition6D___nonzero__(self)
def __bool__(self):
"""__bool__(vectorPosition6D self) -> bool"""
return _almathswig.vectorPosition6D___bool__(self)
def __len__(self):
"""__len__(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::size_type"""
return _almathswig.vectorPosition6D___len__(self)
def pop(self):
"""pop(vectorPosition6D self) -> Position6D"""
return _almathswig.vectorPosition6D_pop(self)
def __getslice__(self, *args):
"""__getslice__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i, std::vector< AL::Math::Position6D >::difference_type j) -> vectorPosition6D"""
return _almathswig.vectorPosition6D___getslice__(self, *args)
def __setslice__(self, *args):
"""
__setslice__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i, std::vector< AL::Math::Position6D >::difference_type j,
vectorPosition6D v=std::vector< AL::Math::Position6D,std::allocator< AL::Math::Position6D > >())
__setslice__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i, std::vector< AL::Math::Position6D >::difference_type j)
"""
return _almathswig.vectorPosition6D___setslice__(self, *args)
def __delslice__(self, *args):
"""__delslice__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i, std::vector< AL::Math::Position6D >::difference_type j)"""
return _almathswig.vectorPosition6D___delslice__(self, *args)
def __delitem__(self, *args):
"""
__delitem__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i)
__delitem__(vectorPosition6D self, PySliceObject * slice)
"""
return _almathswig.vectorPosition6D___delitem__(self, *args)
def __getitem__(self, *args):
"""
__getitem__(vectorPosition6D self, PySliceObject * slice) -> vectorPosition6D
__getitem__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i) -> Position6D
"""
return _almathswig.vectorPosition6D___getitem__(self, *args)
def __setitem__(self, *args):
"""
__setitem__(vectorPosition6D self, PySliceObject * slice, vectorPosition6D v)
__setitem__(vectorPosition6D self, PySliceObject * slice)
__setitem__(vectorPosition6D self, std::vector< AL::Math::Position6D >::difference_type i, Position6D x)
"""
return _almathswig.vectorPosition6D___setitem__(self, *args)
def append(self, *args):
"""append(vectorPosition6D self, Position6D x)"""
return _almathswig.vectorPosition6D_append(self, *args)
def empty(self):
"""empty(vectorPosition6D self) -> bool"""
return _almathswig.vectorPosition6D_empty(self)
def size(self):
"""size(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::size_type"""
return _almathswig.vectorPosition6D_size(self)
def clear(self):
"""clear(vectorPosition6D self)"""
return _almathswig.vectorPosition6D_clear(self)
def swap(self, *args):
"""swap(vectorPosition6D self, vectorPosition6D v)"""
return _almathswig.vectorPosition6D_swap(self, *args)
def get_allocator(self):
"""get_allocator(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::allocator_type"""
return _almathswig.vectorPosition6D_get_allocator(self)
def begin(self):
"""begin(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::iterator"""
return _almathswig.vectorPosition6D_begin(self)
def end(self):
"""end(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::iterator"""
return _almathswig.vectorPosition6D_end(self)
def rbegin(self):
"""rbegin(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::reverse_iterator"""
return _almathswig.vectorPosition6D_rbegin(self)
def rend(self):
"""rend(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::reverse_iterator"""
return _almathswig.vectorPosition6D_rend(self)
def pop_back(self):
"""pop_back(vectorPosition6D self)"""
return _almathswig.vectorPosition6D_pop_back(self)
def erase(self, *args):
"""
erase(vectorPosition6D self, std::vector< AL::Math::Position6D >::iterator pos) -> std::vector< AL::Math::Position6D >::iterator
erase(vectorPosition6D self, std::vector< AL::Math::Position6D >::iterator first, std::vector< AL::Math::Position6D >::iterator last) -> std::vector< AL::Math::Position6D >::iterator
"""
return _almathswig.vectorPosition6D_erase(self, *args)
def __init__(self, *args):
"""
__init__(std::vector<(AL::Math::Position6D)> self) -> vectorPosition6D
__init__(std::vector<(AL::Math::Position6D)> self, vectorPosition6D arg2) -> vectorPosition6D
__init__(std::vector<(AL::Math::Position6D)> self, std::vector< AL::Math::Position6D >::size_type size) -> vectorPosition6D
__init__(std::vector<(AL::Math::Position6D)> self, std::vector< AL::Math::Position6D >::size_type size, Position6D value) -> vectorPosition6D
"""
this = _almathswig.new_vectorPosition6D(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args):
"""push_back(vectorPosition6D self, Position6D x)"""
return _almathswig.vectorPosition6D_push_back(self, *args)
def front(self):
"""front(vectorPosition6D self) -> Position6D"""
return _almathswig.vectorPosition6D_front(self)
def back(self):
"""back(vectorPosition6D self) -> Position6D"""
return _almathswig.vectorPosition6D_back(self)
def assign(self, *args):
"""assign(vectorPosition6D self, std::vector< AL::Math::Position6D >::size_type n, Position6D x)"""
return _almathswig.vectorPosition6D_assign(self, *args)
def resize(self, *args):
"""
resize(vectorPosition6D self, std::vector< AL::Math::Position6D >::size_type new_size)
resize(vectorPosition6D self, std::vector< AL::Math::Position6D >::size_type new_size, Position6D x)
"""
return _almathswig.vectorPosition6D_resize(self, *args)
def insert(self, *args):
"""
insert(vectorPosition6D self, std::vector< AL::Math::Position6D >::iterator pos, Position6D x) -> std::vector< AL::Math::Position6D >::iterator
insert(vectorPosition6D self, std::vector< AL::Math::Position6D >::iterator pos, std::vector< AL::Math::Position6D >::size_type n,
Position6D x)
"""
return _almathswig.vectorPosition6D_insert(self, *args)
def reserve(self, *args):
"""reserve(vectorPosition6D self, std::vector< AL::Math::Position6D >::size_type n)"""
return _almathswig.vectorPosition6D_reserve(self, *args)
def capacity(self):
"""capacity(vectorPosition6D self) -> std::vector< AL::Math::Position6D >::size_type"""
return _almathswig.vectorPosition6D_capacity(self)
def __repr__(self):
"""__repr__(vectorPosition6D self) -> std::string"""
return _almathswig.vectorPosition6D___repr__(self)
__swig_destroy__ = _almathswig.delete_vectorPosition6D
__del__ = lambda self : None;
vectorPosition6D_swigregister = _almathswig.vectorPosition6D_swigregister
vectorPosition6D_swigregister(vectorPosition6D)
class DigitalFilter(_object):
"""Proxy of C++ AL::Math::DSP::DigitalFilter class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DigitalFilter, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DigitalFilter, name)
__repr__ = _swig_repr
def __init__(self):
"""__init__(AL::Math::DSP::DigitalFilter self) -> DigitalFilter"""
this = _almathswig.new_DigitalFilter()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _almathswig.delete_DigitalFilter
__del__ = lambda self : None;
def configureFilter(self, *args):
"""configureFilter(DigitalFilter self, unsigned int pOrder, vectorFloat pWeightsIn, vectorFloat pWeightsOut, float pDcGain)"""
return _almathswig.DigitalFilter_configureFilter(self, *args)
def resetFilter(self):
"""resetFilter(DigitalFilter self)"""
return _almathswig.DigitalFilter_resetFilter(self)
def processFilter(self, *args):
"""processFilter(DigitalFilter self, float pInputData) -> float"""
return _almathswig.DigitalFilter_processFilter(self, *args)
DigitalFilter_swigregister = _almathswig.DigitalFilter_swigregister
DigitalFilter_swigregister(DigitalFilter)
class PIDController(_object):
"""Proxy of C++ AL::Math::DSP::PIDController class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, PIDController, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, PIDController, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
__init__(AL::Math::DSP::PIDController self) -> PIDController
__init__(AL::Math::DSP::PIDController self, float pKp, float pKv, float pKi, float pThreshold, float pStaticOffset, float pPeriod) -> PIDController
"""
this = _almathswig.new_PIDController(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _almathswig.delete_PIDController
__del__ = lambda self : None;
def initialize(self, *args):
"""
initialize(PIDController self)
initialize(PIDController self, float pKp, float pKv, float pKi, float pThreshold, float pStaticOffset, float pPeriod)
"""
return _almathswig.PIDController_initialize(self, *args)
def computeFeedback(self, *args):
"""
computeFeedback(PIDController self, float pCommand, float pSensor, float pPeriod=-1.0) -> float
computeFeedback(PIDController self, float pCommand, float pSensor) -> float
"""
return _almathswig.PIDController_computeFeedback(self, *args)
def computeFeedbackAbsolute(self, *args):
"""computeFeedbackAbsolute(PIDController self, float pAbsoluteErr) -> float"""
return _almathswig.PIDController_computeFeedbackAbsolute(self, *args)
PIDController_swigregister = _almathswig.PIDController_swigregister
PIDController_swigregister(PIDController)
def isAxisMask(*args):
"""isAxisMask(int const pAxisMask) -> bool"""
return _almathswig.isAxisMask(*args)
class Pose2D(_object):
"""Proxy of C++ AL::Math::Pose2D class"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Pose2D, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Pose2D, name)
__swig_setmethods__["x"] = _almathswig.Pose2D_x_set
__swig_getmethods__["x"] = _almathswig.Pose2D_x_get
if _newclass:x = _swig_property(_almathswig.Pose2D_x_get, _almathswig.Pose2D_x_set)
__swig_setmethods__["y"] = _almathswig.Pose2D_y_set
__swig_getmethods__["y"] = _almathswig.Pose2D_y_get
if _newclass:y = _swig_property(_almathswig.Pose2D_y_get, _almathswig.Pose2D_y_set)
__swig_setmethods__["theta"] = _almathswig.Pose2D_theta_set
__swig_getmethods__["theta"] = _almathswig.Pose2D_theta_get
if _newclass:theta = _swig_property(_almathswig.Pose2D_theta_get, _almathswig.Pose2D_theta_set)
def __init__(self, *args):
"""
__init__(AL::Math::Pose2D self) -> Pose2D
__init__(AL::Math::Pose2D self, float pInit) -> Pose2D
__init__(AL::Math::Pose2D self, float pX, float pY, float pTheta) -> Pose2D
__init__(AL::Math::Pose2D self, vectorFloat pFloats) -> Pose2D
"""
this = _almathswig.new_Pose2D(*args)
try: self.this.append(this)
except: self.this = this
def fromPolarCoordinates(*args):
"""fromPolarCoordinates(float const pRadius, float const pAngle) -> Pose2D"""
return _almathswig.Pose2D_fromPolarCoordinates(*args)
if _newclass:fromPolarCoordinates = staticmethod(fromPolarCoordinates)
__swig_getmethods__["fromPolarCoordinates"] = lambda x: fromPolarCoordinates
def __add__(self, *args):
"""__add__(Pose2D self, Pose2D pPos2) -> Pose2D"""
return _almathswig.Pose2D___add__(self, *args)
def __sub__(self, *args):
"""__sub__(Pose2D self, Pose2D pPos2) -> Pose2D"""
return _almathswig.Pose2D___sub__(self, *args)
def __pos__(self):
"""__pos__(Pose2D self) -> Pose2D"""
return _almathswig.Pose2D___pos__(self)
def __neg__(self):
"""__neg__(Pose2D self) -> Pose2D"""
return _almathswig.Pose2D___neg__(self)
def __iadd__(self, *args):
"""__iadd__(Pose2D self, Pose2D pPos2) -> Pose2D"""
return _almathswig.Pose2D___iadd__(self, *args)
def __isub__(self, *args):
"""__isub__(Pose2D self, Pose2D pPos2) -> Pose2D"""
return _almathswig.Pose2D___isub__(self, *args)
def __eq__(self, *args):
"""__eq__(Pose2D self, Pose2D pPos2) -> bool"""
return _almathswig.Pose2D___eq__(self, *args)
def __ne__(self, *args):
"""__ne__(Pose2D self, Pose2D pPos2) -> bool"""
return _almathswig.Pose2D___ne__(self, *args)
def __mul__(self, *args):
"""
__mul__(Pose2D self, Pose2D pPos2) -> Pose2D
__mul__(Pose2D self, float pVal) -> Pose2D
"""
return _almathswig.Pose2D___mul__(self, *args)
def __div__(self, *args):
"""__div__(Pose2D self, float pVal) -> Pose2D"""
return _almathswig.Pose2D___div__(self, *args)
def __imul__(self, *args):
"""
__imul__(Pose2D self, Pose2D pPos2) -> Pose2D
__imul__(Pose2D self, float pVal) -> Pose2D