forked from chaosct/ofxPython
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathofxaddons.py
More file actions
1782 lines (1310 loc) · 63.7 KB
/
Copy pathofxaddons.py
File metadata and controls
1782 lines (1310 loc) · 63.7 KB
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 3.0.12
#
# 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 as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_ofxaddons')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_ofxaddons')
_ofxaddons = swig_import_helper()
del swig_import_helper
elif _swig_python_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('_ofxaddons', [dirname(__file__)])
except ImportError:
import _ofxaddons
return _ofxaddons
try:
_mod = imp.load_module('_ofxaddons', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_ofxaddons = swig_import_helper()
del swig_import_helper
else:
import _ofxaddons
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
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):
object.__setattr__(self, 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("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_method(set):
def set_attr(self, name, value):
if (name == "thisown"):
return self.this.own(value)
if hasattr(self, name) or (name == "this"):
set(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
class SwigPyIterator(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _ofxaddons.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
return _ofxaddons.SwigPyIterator_value(self)
def incr(self, n=1):
return _ofxaddons.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _ofxaddons.SwigPyIterator_decr(self, n)
def distance(self, x):
return _ofxaddons.SwigPyIterator_distance(self, x)
def equal(self, x):
return _ofxaddons.SwigPyIterator_equal(self, x)
def copy(self):
return _ofxaddons.SwigPyIterator_copy(self)
def next(self):
return _ofxaddons.SwigPyIterator_next(self)
def __next__(self):
return _ofxaddons.SwigPyIterator___next__(self)
def previous(self):
return _ofxaddons.SwigPyIterator_previous(self)
def advance(self, n):
return _ofxaddons.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _ofxaddons.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _ofxaddons.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _ofxaddons.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _ofxaddons.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _ofxaddons.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _ofxaddons.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _ofxaddons.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class ofxAssimpMeshHelper(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self):
this = _ofxaddons.new_ofxAssimpMeshHelper()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def hasTexture(self):
return _ofxaddons.ofxAssimpMeshHelper_hasTexture(self)
def getTextureRef(self):
return _ofxaddons.ofxAssimpMeshHelper_getTextureRef(self)
mesh = _swig_property(_ofxaddons.ofxAssimpMeshHelper_mesh_get, _ofxaddons.ofxAssimpMeshHelper_mesh_set)
vbo = _swig_property(_ofxaddons.ofxAssimpMeshHelper_vbo_get, _ofxaddons.ofxAssimpMeshHelper_vbo_set)
assimpTexture = _swig_property(_ofxaddons.ofxAssimpMeshHelper_assimpTexture_get, _ofxaddons.ofxAssimpMeshHelper_assimpTexture_set)
indices = _swig_property(_ofxaddons.ofxAssimpMeshHelper_indices_get, _ofxaddons.ofxAssimpMeshHelper_indices_set)
material = _swig_property(_ofxaddons.ofxAssimpMeshHelper_material_get, _ofxaddons.ofxAssimpMeshHelper_material_set)
blendMode = _swig_property(_ofxaddons.ofxAssimpMeshHelper_blendMode_get, _ofxaddons.ofxAssimpMeshHelper_blendMode_set)
twoSided = _swig_property(_ofxaddons.ofxAssimpMeshHelper_twoSided_get, _ofxaddons.ofxAssimpMeshHelper_twoSided_set)
hasChanged = _swig_property(_ofxaddons.ofxAssimpMeshHelper_hasChanged_get, _ofxaddons.ofxAssimpMeshHelper_hasChanged_set)
animatedPos = _swig_property(_ofxaddons.ofxAssimpMeshHelper_animatedPos_get, _ofxaddons.ofxAssimpMeshHelper_animatedPos_set)
animatedNorm = _swig_property(_ofxaddons.ofxAssimpMeshHelper_animatedNorm_get, _ofxaddons.ofxAssimpMeshHelper_animatedNorm_set)
cachedMesh = _swig_property(_ofxaddons.ofxAssimpMeshHelper_cachedMesh_get, _ofxaddons.ofxAssimpMeshHelper_cachedMesh_set)
validCache = _swig_property(_ofxaddons.ofxAssimpMeshHelper_validCache_get, _ofxaddons.ofxAssimpMeshHelper_validCache_set)
matrix = _swig_property(_ofxaddons.ofxAssimpMeshHelper_matrix_get, _ofxaddons.ofxAssimpMeshHelper_matrix_set)
__swig_destroy__ = _ofxaddons.delete_ofxAssimpMeshHelper
__del__ = lambda self: None
ofxAssimpMeshHelper_swigregister = _ofxaddons.ofxAssimpMeshHelper_swigregister
ofxAssimpMeshHelper_swigregister(ofxAssimpMeshHelper)
class ofxAssimpAnimation(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, scene, animation):
this = _ofxaddons.new_ofxAssimpAnimation(scene, animation)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxAssimpAnimation
__del__ = lambda self: None
def getAnimation(self):
return _ofxaddons.ofxAssimpAnimation_getAnimation(self)
def update(self):
return _ofxaddons.ofxAssimpAnimation_update(self)
def play(self):
return _ofxaddons.ofxAssimpAnimation_play(self)
def stop(self):
return _ofxaddons.ofxAssimpAnimation_stop(self)
def reset(self):
return _ofxaddons.ofxAssimpAnimation_reset(self)
def isFrameNew(self):
return _ofxaddons.ofxAssimpAnimation_isFrameNew(self)
def isPaused(self):
return _ofxaddons.ofxAssimpAnimation_isPaused(self)
def isPlaying(self):
return _ofxaddons.ofxAssimpAnimation_isPlaying(self)
def isFinished(self):
return _ofxaddons.ofxAssimpAnimation_isFinished(self)
def getPosition(self):
return _ofxaddons.ofxAssimpAnimation_getPosition(self)
def getPositionInSeconds(self):
return _ofxaddons.ofxAssimpAnimation_getPositionInSeconds(self)
def getPositionInMilliSeconds(self):
return _ofxaddons.ofxAssimpAnimation_getPositionInMilliSeconds(self)
def getSpeed(self):
return _ofxaddons.ofxAssimpAnimation_getSpeed(self)
def getDurationInSeconds(self):
return _ofxaddons.ofxAssimpAnimation_getDurationInSeconds(self)
def getDurationInMilliSeconds(self):
return _ofxaddons.ofxAssimpAnimation_getDurationInMilliSeconds(self)
def setPaused(self, paused):
return _ofxaddons.ofxAssimpAnimation_setPaused(self, paused)
def setPosition(self, position):
return _ofxaddons.ofxAssimpAnimation_setPosition(self, position)
def setLoopState(self, state):
return _ofxaddons.ofxAssimpAnimation_setLoopState(self, state)
def setSpeed(self, speed):
return _ofxaddons.ofxAssimpAnimation_setSpeed(self, speed)
ofxAssimpAnimation_swigregister = _ofxaddons.ofxAssimpAnimation_swigregister
ofxAssimpAnimation_swigregister(ofxAssimpAnimation)
class ofxAssimpTexture(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
this = _ofxaddons.new_ofxAssimpTexture(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def getTextureRef(self):
return _ofxaddons.ofxAssimpTexture_getTextureRef(self)
def getTexturePath(self):
return _ofxaddons.ofxAssimpTexture_getTexturePath(self)
def hasTexture(self):
return _ofxaddons.ofxAssimpTexture_hasTexture(self)
__swig_destroy__ = _ofxaddons.delete_ofxAssimpTexture
__del__ = lambda self: None
ofxAssimpTexture_swigregister = _ofxaddons.ofxAssimpTexture_swigregister
ofxAssimpTexture_swigregister(ofxAssimpTexture)
class ofxToggle(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
__swig_destroy__ = _ofxaddons.delete_ofxToggle
__del__ = lambda self: None
def __init__(self, *args):
this = _ofxaddons.new_ofxToggle(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def setup(self, *args):
return _ofxaddons.ofxToggle_setup(self, *args)
def mouseMoved(self, args):
return _ofxaddons.ofxToggle_mouseMoved(self, args)
def mousePressed(self, args):
return _ofxaddons.ofxToggle_mousePressed(self, args)
def mouseDragged(self, args):
return _ofxaddons.ofxToggle_mouseDragged(self, args)
def mouseReleased(self, args):
return _ofxaddons.ofxToggle_mouseReleased(self, args)
def mouseScrolled(self, args):
return _ofxaddons.ofxToggle_mouseScrolled(self, args)
def getParameter(self):
return _ofxaddons.ofxToggle_getParameter(self)
ofxToggle_swigregister = _ofxaddons.ofxToggle_swigregister
ofxToggle_swigregister(ofxToggle)
class ofxButton(ofxToggle):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
this = _ofxaddons.new_ofxButton(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxButton
__del__ = lambda self: None
def setup(self, *args):
return _ofxaddons.ofxButton_setup(self, *args)
ofxButton_swigregister = _ofxaddons.ofxButton_swigregister
ofxButton_swigregister(ofxButton)
class ofxLabel(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
this = _ofxaddons.new_ofxLabel(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxLabel
__del__ = lambda self: None
def setup(self, *args):
return _ofxaddons.ofxLabel_setup(self, *args)
def mouseMoved(self, args):
return _ofxaddons.ofxLabel_mouseMoved(self, args)
def mousePressed(self, args):
return _ofxaddons.ofxLabel_mousePressed(self, args)
def mouseDragged(self, args):
return _ofxaddons.ofxLabel_mouseDragged(self, args)
def mouseReleased(self, args):
return _ofxaddons.ofxLabel_mouseReleased(self, args)
def mouseScrolled(self, args):
return _ofxaddons.ofxLabel_mouseScrolled(self, args)
def getParameter(self):
return _ofxaddons.ofxLabel_getParameter(self)
ofxLabel_swigregister = _ofxaddons.ofxLabel_swigregister
ofxLabel_swigregister(ofxLabel)
class ofxPanel(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
this = _ofxaddons.new_ofxPanel(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxPanel
__del__ = lambda self: None
def setup(self, *args):
return _ofxaddons.ofxPanel_setup(self, *args)
def mouseReleased(self, args):
return _ofxaddons.ofxPanel_mouseReleased(self, args)
loadPressedE = _swig_property(_ofxaddons.ofxPanel_loadPressedE_get, _ofxaddons.ofxPanel_loadPressedE_set)
savePressedE = _swig_property(_ofxaddons.ofxPanel_savePressedE_get, _ofxaddons.ofxPanel_savePressedE_set)
ofxPanel_swigregister = _ofxaddons.ofxPanel_swigregister
ofxPanel_swigregister(ofxPanel)
cvar = _ofxaddons.cvar
ofxPanelDefaultFilename = cvar.ofxPanelDefaultFilename
TCP_MAX_MSG_SIZE = _ofxaddons.TCP_MAX_MSG_SIZE
class ofxTCPClient(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self):
this = _ofxaddons.new_ofxTCPClient()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxTCPClient
__del__ = lambda self: None
def setVerbose(self, _verbose):
return _ofxaddons.ofxTCPClient_setVerbose(self, _verbose)
def setup(self, *args):
return _ofxaddons.ofxTCPClient_setup(self, *args)
def setMessageDelimiter(self, delim):
return _ofxaddons.ofxTCPClient_setMessageDelimiter(self, delim)
def close(self):
return _ofxaddons.ofxTCPClient_close(self)
def send(self, message):
return _ofxaddons.ofxTCPClient_send(self, message)
def sendRaw(self, message):
return _ofxaddons.ofxTCPClient_sendRaw(self, message)
def sendRawMsg(self, msg, size):
return _ofxaddons.ofxTCPClient_sendRawMsg(self, msg, size)
def getNumReceivedBytes(self):
return _ofxaddons.ofxTCPClient_getNumReceivedBytes(self)
def sendRawBytes(self, rawBytes, numBytes):
return _ofxaddons.ofxTCPClient_sendRawBytes(self, rawBytes, numBytes)
def receive(self):
return _ofxaddons.ofxTCPClient_receive(self)
def receiveRaw(self):
return _ofxaddons.ofxTCPClient_receiveRaw(self)
def receiveRawBytes(self, receiveBytes, numBytes):
return _ofxaddons.ofxTCPClient_receiveRawBytes(self, receiveBytes, numBytes)
def peekReceiveRawBytes(self, receiveBytes, numBytes):
return _ofxaddons.ofxTCPClient_peekReceiveRawBytes(self, receiveBytes, numBytes)
def receiveRawMsg(self, receiveBuffer, numBytes):
return _ofxaddons.ofxTCPClient_receiveRawMsg(self, receiveBuffer, numBytes)
def isConnected(self):
return _ofxaddons.ofxTCPClient_isConnected(self)
def getPort(self):
return _ofxaddons.ofxTCPClient_getPort(self)
def getIP(self):
return _ofxaddons.ofxTCPClient_getIP(self)
ofxTCPClient_swigregister = _ofxaddons.ofxTCPClient_swigregister
ofxTCPClient_swigregister(ofxTCPClient)
INVALID_SOCKET = _ofxaddons.INVALID_SOCKET
SOCKET_ERROR = _ofxaddons.SOCKET_ERROR
SOCKET_TIMEOUT = _ofxaddons.SOCKET_TIMEOUT
NO_TIMEOUT = _ofxaddons.NO_TIMEOUT
OF_TCP_DEFAULT_TIMEOUT = _ofxaddons.OF_TCP_DEFAULT_TIMEOUT
class ofxTCPManager(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self):
this = _ofxaddons.new_ofxTCPManager()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxTCPManager
__del__ = lambda self: None
def Close(self):
return _ofxaddons.ofxTCPManager_Close(self)
def Create(self):
return _ofxaddons.ofxTCPManager_Create(self)
def Listen(self, iMaxConnections):
return _ofxaddons.ofxTCPManager_Listen(self, iMaxConnections)
def Connect(self, pAddrStr, usPort):
return _ofxaddons.ofxTCPManager_Connect(self, pAddrStr, usPort)
def Bind(self, usPort):
return _ofxaddons.ofxTCPManager_Bind(self, usPort)
def Accept(self, sock):
return _ofxaddons.ofxTCPManager_Accept(self, sock)
def Send(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_Send(self, pBuff, iSize)
def SendAll(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_SendAll(self, pBuff, iSize)
def PeekReceive(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_PeekReceive(self, pBuff, iSize)
def Receive(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_Receive(self, pBuff, iSize)
def ReceiveAll(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_ReceiveAll(self, pBuff, iSize)
def Write(self, pBuff, iSize):
return _ofxaddons.ofxTCPManager_Write(self, pBuff, iSize)
def GetRemoteAddr(self, pIntAddr):
return _ofxaddons.ofxTCPManager_GetRemoteAddr(self, pIntAddr)
def GetInetAddr(self, pInetAddr):
return _ofxaddons.ofxTCPManager_GetInetAddr(self, pInetAddr)
def SetTimeoutConnect(self, timeoutInSeconds):
return _ofxaddons.ofxTCPManager_SetTimeoutConnect(self, timeoutInSeconds)
def SetTimeoutSend(self, timeoutInSeconds):
return _ofxaddons.ofxTCPManager_SetTimeoutSend(self, timeoutInSeconds)
def SetTimeoutReceive(self, timeoutInSeconds):
return _ofxaddons.ofxTCPManager_SetTimeoutReceive(self, timeoutInSeconds)
def SetTimeoutAccept(self, timeoutInSeconds):
return _ofxaddons.ofxTCPManager_SetTimeoutAccept(self, timeoutInSeconds)
def GetTimeoutConnect(self):
return _ofxaddons.ofxTCPManager_GetTimeoutConnect(self)
def GetTimeoutSend(self):
return _ofxaddons.ofxTCPManager_GetTimeoutSend(self)
def GetTimeoutReceive(self):
return _ofxaddons.ofxTCPManager_GetTimeoutReceive(self)
def GetTimeoutAccept(self):
return _ofxaddons.ofxTCPManager_GetTimeoutAccept(self)
def SetReceiveBufferSize(self, sizeInByte):
return _ofxaddons.ofxTCPManager_SetReceiveBufferSize(self, sizeInByte)
def SetSendBufferSize(self, sizeInByte):
return _ofxaddons.ofxTCPManager_SetSendBufferSize(self, sizeInByte)
def GetReceiveBufferSize(self):
return _ofxaddons.ofxTCPManager_GetReceiveBufferSize(self)
def GetSendBufferSize(self):
return _ofxaddons.ofxTCPManager_GetSendBufferSize(self)
def GetMaxConnections(self):
return _ofxaddons.ofxTCPManager_GetMaxConnections(self)
def SetNonBlocking(self, useNonBlocking):
return _ofxaddons.ofxTCPManager_SetNonBlocking(self, useNonBlocking)
def IsNonBlocking(self):
return _ofxaddons.ofxTCPManager_IsNonBlocking(self)
def CheckHost(self, pAddrStr):
return _ofxaddons.ofxTCPManager_CheckHost(self, pAddrStr)
def CleanUp(self):
return _ofxaddons.ofxTCPManager_CleanUp(self)
def CheckIsConnected(self):
return _ofxaddons.ofxTCPManager_CheckIsConnected(self)
ofxTCPManager_swigregister = _ofxaddons.ofxTCPManager_swigregister
ofxTCPManager_swigregister(ofxTCPManager)
TCP_MAX_CLIENTS = _ofxaddons.TCP_MAX_CLIENTS
class ofxTCPServer(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self):
this = _ofxaddons.new_ofxTCPServer()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxTCPServer
__del__ = lambda self: None
def setVerbose(self, _verbose):
return _ofxaddons.ofxTCPServer_setVerbose(self, _verbose)
def setup(self, *args):
return _ofxaddons.ofxTCPServer_setup(self, *args)
def setMessageDelimiter(self, delim):
return _ofxaddons.ofxTCPServer_setMessageDelimiter(self, delim)
def close(self):
return _ofxaddons.ofxTCPServer_close(self)
def disconnectClient(self, clientID):
return _ofxaddons.ofxTCPServer_disconnectClient(self, clientID)
def disconnectAllClients(self):
return _ofxaddons.ofxTCPServer_disconnectAllClients(self)
def getNumClients(self):
return _ofxaddons.ofxTCPServer_getNumClients(self)
def getLastID(self):
return _ofxaddons.ofxTCPServer_getLastID(self)
def getPort(self):
return _ofxaddons.ofxTCPServer_getPort(self)
def isConnected(self):
return _ofxaddons.ofxTCPServer_isConnected(self)
def getClientPort(self, clientID):
return _ofxaddons.ofxTCPServer_getClientPort(self, clientID)
def getClientIP(self, clientID):
return _ofxaddons.ofxTCPServer_getClientIP(self, clientID)
def isClientConnected(self, clientID):
return _ofxaddons.ofxTCPServer_isClientConnected(self, clientID)
def send(self, clientID, message):
return _ofxaddons.ofxTCPServer_send(self, clientID, message)
def sendToAll(self, message):
return _ofxaddons.ofxTCPServer_sendToAll(self, message)
def sendRawMsg(self, clientID, rawMsg, numBytes):
return _ofxaddons.ofxTCPServer_sendRawMsg(self, clientID, rawMsg, numBytes)
def sendRawMsgToAll(self, rawMsg, numBytes):
return _ofxaddons.ofxTCPServer_sendRawMsgToAll(self, rawMsg, numBytes)
def sendRawBytes(self, clientID, rawBytes, numBytes):
return _ofxaddons.ofxTCPServer_sendRawBytes(self, clientID, rawBytes, numBytes)
def sendRawBytesToAll(self, rawBytes, numBytes):
return _ofxaddons.ofxTCPServer_sendRawBytesToAll(self, rawBytes, numBytes)
def getNumReceivedBytes(self, clientID):
return _ofxaddons.ofxTCPServer_getNumReceivedBytes(self, clientID)
def receive(self, clientID):
return _ofxaddons.ofxTCPServer_receive(self, clientID)
def receiveRawMsg(self, clientID, receiveBytes, numBytes):
return _ofxaddons.ofxTCPServer_receiveRawMsg(self, clientID, receiveBytes, numBytes)
def receiveRawBytes(self, clientID, receiveBytes, numBytes):
return _ofxaddons.ofxTCPServer_receiveRawBytes(self, clientID, receiveBytes, numBytes)
def peekReceiveRawBytes(self, clientID, receiveBytes, numBytes):
return _ofxaddons.ofxTCPServer_peekReceiveRawBytes(self, clientID, receiveBytes, numBytes)
def waitConnectedClient(self, *args):
return _ofxaddons.ofxTCPServer_waitConnectedClient(self, *args)
ofxTCPServer_swigregister = _ofxaddons.ofxTCPServer_swigregister
ofxTCPServer_swigregister(ofxTCPServer)
class ofxUDPManager(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self):
this = _ofxaddons.new_ofxUDPManager()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _ofxaddons.delete_ofxUDPManager
__del__ = lambda self: None
def HasSocket(self):
return _ofxaddons.ofxUDPManager_HasSocket(self)
def Close(self):
return _ofxaddons.ofxUDPManager_Close(self)
def Setup(self, settings):
return _ofxaddons.ofxUDPManager_Setup(self, settings)
def Create(self):
return _ofxaddons.ofxUDPManager_Create(self)
def Connect(self, pHost, usPort):
return _ofxaddons.ofxUDPManager_Connect(self, pHost, usPort)
def ConnectMcast(self, pMcast, usPort):
return _ofxaddons.ofxUDPManager_ConnectMcast(self, pMcast, usPort)
def Bind(self, usPort):
return _ofxaddons.ofxUDPManager_Bind(self, usPort)
def BindMcast(self, pMcast, usPort):
return _ofxaddons.ofxUDPManager_BindMcast(self, pMcast, usPort)
def Send(self, pBuff, iSize):
return _ofxaddons.ofxUDPManager_Send(self, pBuff, iSize)
def SendAll(self, pBuff, iSize):
return _ofxaddons.ofxUDPManager_SendAll(self, pBuff, iSize)
def PeekReceive(self):
return _ofxaddons.ofxUDPManager_PeekReceive(self)
def Receive(self, pBuff, iSize):
return _ofxaddons.ofxUDPManager_Receive(self, pBuff, iSize)
def SetTimeoutSend(self, timeoutInSeconds):
return _ofxaddons.ofxUDPManager_SetTimeoutSend(self, timeoutInSeconds)
def SetTimeoutReceive(self, timeoutInSeconds):
return _ofxaddons.ofxUDPManager_SetTimeoutReceive(self, timeoutInSeconds)
def GetTimeoutSend(self):
return _ofxaddons.ofxUDPManager_GetTimeoutSend(self)
def GetTimeoutReceive(self):
return _ofxaddons.ofxUDPManager_GetTimeoutReceive(self)
def GetRemoteAddr(self, address, port):
return _ofxaddons.ofxUDPManager_GetRemoteAddr(self, address, port)
def GetListenAddr(self, address, port):
return _ofxaddons.ofxUDPManager_GetListenAddr(self, address, port)
def SetReceiveBufferSize(self, sizeInByte):
return _ofxaddons.ofxUDPManager_SetReceiveBufferSize(self, sizeInByte)
def SetSendBufferSize(self, sizeInByte):
return _ofxaddons.ofxUDPManager_SetSendBufferSize(self, sizeInByte)
def GetReceiveBufferSize(self):
return _ofxaddons.ofxUDPManager_GetReceiveBufferSize(self)
def GetSendBufferSize(self):
return _ofxaddons.ofxUDPManager_GetSendBufferSize(self)
def SetReuseAddress(self, allowReuse):
return _ofxaddons.ofxUDPManager_SetReuseAddress(self, allowReuse)
def SetEnableBroadcast(self, enableBroadcast):
return _ofxaddons.ofxUDPManager_SetEnableBroadcast(self, enableBroadcast)
def SetNonBlocking(self, useNonBlocking):
return _ofxaddons.ofxUDPManager_SetNonBlocking(self, useNonBlocking)
def GetMaxMsgSize(self):
return _ofxaddons.ofxUDPManager_GetMaxMsgSize(self)
def GetTTL(self):
return _ofxaddons.ofxUDPManager_GetTTL(self)
def SetTTL(self, nTTL):
return _ofxaddons.ofxUDPManager_SetTTL(self, nTTL)
ofxUDPManager_swigregister = _ofxaddons.ofxUDPManager_swigregister
ofxUDPManager_swigregister(ofxUDPManager)
class ofxCvImage(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
width = _swig_property(_ofxaddons.ofxCvImage_width_get, _ofxaddons.ofxCvImage_width_set)
height = _swig_property(_ofxaddons.ofxCvImage_height_get, _ofxaddons.ofxCvImage_height_set)
bAllocated = _swig_property(_ofxaddons.ofxCvImage_bAllocated_get, _ofxaddons.ofxCvImage_bAllocated_set)
__swig_destroy__ = _ofxaddons.delete_ofxCvImage
__del__ = lambda self: None
def allocate(self, w, h):
return _ofxaddons.ofxCvImage_allocate(self, w, h)
def clear(self):
return _ofxaddons.ofxCvImage_clear(self)
def getWidth(self):
return _ofxaddons.ofxCvImage_getWidth(self)
def getHeight(self):
return _ofxaddons.ofxCvImage_getHeight(self)
def setUseTexture(self, bUse):
return _ofxaddons.ofxCvImage_setUseTexture(self, bUse)
def isUsingTexture(self):
return _ofxaddons.ofxCvImage_isUsingTexture(self)
def getTexture(self, *args):
return _ofxaddons.ofxCvImage_getTexture(self, *args)
def flagImageChanged(self):
return _ofxaddons.ofxCvImage_flagImageChanged(self)
def setROI(self, *args):
return _ofxaddons.ofxCvImage_setROI(self, *args)
def getROI(self):
return _ofxaddons.ofxCvImage_getROI(self)
def resetROI(self):
return _ofxaddons.ofxCvImage_resetROI(self)
def getIntersectionROI(self, rec1, rec2):
return _ofxaddons.ofxCvImage_getIntersectionROI(self, rec1, rec2)
def set(self, value):
return _ofxaddons.ofxCvImage_set(self, value)
def setFromPixels(self, *args):
return _ofxaddons.ofxCvImage_setFromPixels(self, *args)
def setRoiFromPixels(self, *args):
return _ofxaddons.ofxCvImage_setRoiFromPixels(self, *args)
def __isub__(self, *args):
return _ofxaddons.ofxCvImage___isub__(self, *args)
def __iadd__(self, *args):
return _ofxaddons.ofxCvImage___iadd__(self, *args)
def __imul__(self, mom):
return _ofxaddons.ofxCvImage___imul__(self, mom)
def drawBlobIntoMe(self, blob, color):
return _ofxaddons.ofxCvImage_drawBlobIntoMe(self, blob, color)
def getPixels(self, *args):
return _ofxaddons.ofxCvImage_getPixels(self, *args)
def getRoiPixels(self, *args):
return _ofxaddons.ofxCvImage_getRoiPixels(self, *args)
def getCvImage(self, *args):
return _ofxaddons.ofxCvImage_getCvImage(self, *args)
def updateTexture(self):
return _ofxaddons.ofxCvImage_updateTexture(self)
def draw(self, *args):
return _ofxaddons.ofxCvImage_draw(self, *args)
def drawROI(self, *args):
return _ofxaddons.ofxCvImage_drawROI(self, *args)
def setAnchorPercent(self, xPct, yPct):
return _ofxaddons.ofxCvImage_setAnchorPercent(self, xPct, yPct)
def setAnchorPoint(self, x, y):
return _ofxaddons.ofxCvImage_setAnchorPoint(self, x, y)
def resetAnchor(self):
return _ofxaddons.ofxCvImage_resetAnchor(self)
def erode(self):
return _ofxaddons.ofxCvImage_erode(self)
def dilate(self):
return _ofxaddons.ofxCvImage_dilate(self)
def blur(self, value=3):
return _ofxaddons.ofxCvImage_blur(self, value)
def blurGaussian(self, value=3):
return _ofxaddons.ofxCvImage_blurGaussian(self, value)
def invert(self):
return _ofxaddons.ofxCvImage_invert(self)
def contrastStretch(self):
return _ofxaddons.ofxCvImage_contrastStretch(self)
def convertToRange(self, min, max):
return _ofxaddons.ofxCvImage_convertToRange(self, min, max)
def resize(self, w, h):
return _ofxaddons.ofxCvImage_resize(self, w, h)
def scaleIntoMe(self, *args):
return _ofxaddons.ofxCvImage_scaleIntoMe(self, *args)
def mirror(self, bFlipVertically, bFlipHorizontally):
return _ofxaddons.ofxCvImage_mirror(self, bFlipVertically, bFlipHorizontally)
def translate(self, x, y):
return _ofxaddons.ofxCvImage_translate(self, x, y)
def rotate(self, angle, centerX, centerY):
return _ofxaddons.ofxCvImage_rotate(self, angle, centerX, centerY)
def scale(self, scaleX, sclaeY):
return _ofxaddons.ofxCvImage_scale(self, scaleX, sclaeY)
def transform(self, angle, centerX, centerY, scaleX, scaleY, moveX, moveY):
return _ofxaddons.ofxCvImage_transform(self, angle, centerX, centerY, scaleX, scaleY, moveX, moveY)
def undistort(self, radialDistX, radialDistY, tangentDistX, tangentDistY, focalX, focalY, centerX, centerY):
return _ofxaddons.ofxCvImage_undistort(self, radialDistX, radialDistY, tangentDistX, tangentDistY, focalX, focalY, centerX, centerY)
def remap(self, mapX, mapY):
return _ofxaddons.ofxCvImage_remap(self, mapX, mapY)
def warpPerspective(self, A, B, C, D):
return _ofxaddons.ofxCvImage_warpPerspective(self, A, B, C, D)
def warpIntoMe(self, mom, src, dst):
return _ofxaddons.ofxCvImage_warpIntoMe(self, mom, src, dst)
def countNonZeroInRegion(self, x, y, w, h):
return _ofxaddons.ofxCvImage_countNonZeroInRegion(self, x, y, w, h)
ofxCvImage_swigregister = _ofxaddons.ofxCvImage_swigregister
ofxCvImage_swigregister(ofxCvImage)
class ofxCvBlob(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
area = _swig_property(_ofxaddons.ofxCvBlob_area_get, _ofxaddons.ofxCvBlob_area_set)
length = _swig_property(_ofxaddons.ofxCvBlob_length_get, _ofxaddons.ofxCvBlob_length_set)
boundingRect = _swig_property(_ofxaddons.ofxCvBlob_boundingRect_get, _ofxaddons.ofxCvBlob_boundingRect_set)
centroid = _swig_property(_ofxaddons.ofxCvBlob_centroid_get, _ofxaddons.ofxCvBlob_centroid_set)
hole = _swig_property(_ofxaddons.ofxCvBlob_hole_get, _ofxaddons.ofxCvBlob_hole_set)
pts = _swig_property(_ofxaddons.ofxCvBlob_pts_get, _ofxaddons.ofxCvBlob_pts_set)
nPts = _swig_property(_ofxaddons.ofxCvBlob_nPts_get, _ofxaddons.ofxCvBlob_nPts_set)
def __init__(self):
this = _ofxaddons.new_ofxCvBlob()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def draw(self, x=0, y=0):
return _ofxaddons.ofxCvBlob_draw(self, x, y)
__swig_destroy__ = _ofxaddons.delete_ofxCvBlob
__del__ = lambda self: None
ofxCvBlob_swigregister = _ofxaddons.ofxCvBlob_swigregister
ofxCvBlob_swigregister(ofxCvBlob)
class ofxCvGrayscaleImage(ofxCvImage):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _ofxaddons.delete_ofxCvGrayscaleImage
__del__ = lambda self: None
def setFromPixels(self, *args):
return _ofxaddons.ofxCvGrayscaleImage_setFromPixels(self, *args)
def absDiff(self, *args):
return _ofxaddons.ofxCvGrayscaleImage_absDiff(self, *args)
def threshold(self, value, invert=False):
return _ofxaddons.ofxCvGrayscaleImage_threshold(self, value, invert)
def adaptiveThreshold(self, blockSize, offset=0, invert=False, gauss=False):
return _ofxaddons.ofxCvGrayscaleImage_adaptiveThreshold(self, blockSize, offset, invert, gauss)
def brightnessContrast(self, brightness, contrast):
return _ofxaddons.ofxCvGrayscaleImage_brightnessContrast(self, brightness, contrast)
def scaleIntoMe(self, *args):
return _ofxaddons.ofxCvGrayscaleImage_scaleIntoMe(self, *args)
def blurHeavily(self):
return _ofxaddons.ofxCvGrayscaleImage_blurHeavily(self)
def erode_3x3(self):
return _ofxaddons.ofxCvGrayscaleImage_erode_3x3(self)
def dilate_3x3(self):
return _ofxaddons.ofxCvGrayscaleImage_dilate_3x3(self)
def setFromColorImage(self, mom):
return _ofxaddons.ofxCvGrayscaleImage_setFromColorImage(self, mom)
def setFromFloatImage(self, mom):
return _ofxaddons.ofxCvGrayscaleImage_setFromFloatImage(self, mom)
ofxCvGrayscaleImage_swigregister = _ofxaddons.ofxCvGrayscaleImage_swigregister
ofxCvGrayscaleImage_swigregister(ofxCvGrayscaleImage)