lavavu 1.9.9__cp312-cp312-macosx_10_13_x86_64.whl → 1.9.10__cp312-cp312-macosx_10_13_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lavavu/LavaVuPython.py CHANGED
@@ -5,12 +5,14 @@
5
5
  # the SWIG interface file instead.
6
6
 
7
7
  from sys import version_info as _swig_python_version_info
8
- # Import the low-level C/C++ module
9
- if __package__ or "." in __name__:
10
- from . import _LavaVuPython
8
+
9
+ import os
10
+ if 'osmesa' in os.environ.get('LV_CONTEXT', ''):
11
+ from osmesa import _LavaVuPython
11
12
  else:
12
13
  import _LavaVuPython
13
14
 
15
+
14
16
  try:
15
17
  import builtins as __builtin__
16
18
  except ImportError:
Binary file
lavavu/html/webview.html CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  <input id="fileinput" type="file" style="visibility:hidden" onchange="useFileInput(this)" />
29
29
 
30
- <script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.9.9/LavaVu-amalgamated.min.js"></script>
30
+ <script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.9.10/LavaVu-amalgamated.min.js"></script>
31
31
  <!--script src="dat.gui.min.js"></script>
32
32
  <script src="OK-min.js"></script>
33
33
 
lavavu/lavavu.py CHANGED
@@ -59,6 +59,7 @@ import quaternion as quat
59
59
  import platform
60
60
  import matplotlib
61
61
  from pathlib import Path
62
+ from PIL import Image as PILImage
62
63
 
63
64
  if sys.version_info[0] < 3:
64
65
  print("Python 3 required. LavaVu no longer supports Python 2.7.")
@@ -101,10 +102,7 @@ if platform.system() == 'Linux':
101
102
  context = 'moderngl'
102
103
  except Exception as e:
103
104
  context = 'osmesa'
104
-
105
- if context == 'osmesa':
106
- #OSMesa fallback, CPU only, multicore
107
- from osmesa import LavaVuPython
105
+ os.environ['LV_CONTEXT'] = context
108
106
 
109
107
  #Default module if none already loaded
110
108
  try:
@@ -112,8 +110,6 @@ try:
112
110
  except:
113
111
  import LavaVuPython
114
112
 
115
- os.environ['LV_CONTEXT'] = context
116
-
117
113
  version = LavaVuPython.version
118
114
  server_ports = []
119
115
 
@@ -4194,7 +4190,7 @@ class Viewer(dict):
4194
4190
  from IPython.display import display,HTML,Javascript
4195
4191
  display(Javascript(js + code))
4196
4192
 
4197
- def video(self, filename="", resolution=(0,0), fps=30, quality=2, encoder="h264", embed=False, player=None, options={}, **kwargs):
4193
+ def video(self, filename="", resolution=(0,0), fps=30, quality=2, encoder=None, embed=False, player=None, options={}, **kwargs):
4198
4194
  """
4199
4195
  Record and show the generated video inline within an ipython notebook.
4200
4196
 
@@ -4220,7 +4216,7 @@ class Viewer(dict):
4220
4216
  encoding artifacts at cost of larger file size
4221
4217
  If omitted will use default settings, can fine tune settings in kwargs
4222
4218
  encoder : str
4223
- Name of encoder to use, eg: "h264" (default), "mpeg"
4219
+ Name of encoder to use, eg: "h264" (default for .mp4), default will be selected based on filename extension
4224
4220
  embed : bool
4225
4221
  Set to true to embed the video file rather than link to url
4226
4222
  Not recommended for large videos, default is False
@@ -4240,8 +4236,7 @@ class Viewer(dict):
4240
4236
  """
4241
4237
  return Video(self, filename, resolution, fps, quality, encoder, embed, player, options, **kwargs)
4242
4238
 
4243
- def video_steps(self, filename="", start=0, end=0, resolution=(0,0), fps=30, quality=2, encoder="h264", embed=False, player=None, options={}, **kwargs):
4244
- my_func.__doc__
4239
+ def video_steps(self, filename="", start=0, end=0, resolution=(0,0), fps=30, quality=2, encoder=None, embed=False, player=None, options={}, **kwargs):
4245
4240
  """
4246
4241
  Record a video of the model by looping through all time steps
4247
4242
 
@@ -5479,7 +5474,7 @@ class Video(object):
5479
5474
  ... lv.rotate('y', 10) # doctest: +SKIP
5480
5475
  ... lv.render() # doctest: +SKIP
5481
5476
  """
5482
- def __init__(self, viewer, filename="output.mp4", resolution=(0,0), framerate=30, quality=2, encoder="h264", embed=False, player=None, options={}, **kwargs):
5477
+ def __init__(self, viewer, filename="output.mp4", resolution=(0,0), framerate=30, quality=2, encoder=None, embed=False, player=None, options={}, **kwargs):
5483
5478
  """
5484
5479
  Record and show the generated video inline within an ipython notebook.
5485
5480
 
@@ -5505,7 +5500,7 @@ class Video(object):
5505
5500
  resolution : list or tuple
5506
5501
  Video resolution in pixels [x,y]
5507
5502
  encoder : str
5508
- Name of encoder to use, eg: "h264" (default), "mpeg"
5503
+ Name of encoder to use, eg: "h264" (default for .mp4), default will be selected based on filename extension
5509
5504
  embed : bool
5510
5505
  Set to true to embed the video file rather than link to url
5511
5506
  Not recommended for large videos, default is False
@@ -5555,6 +5550,22 @@ class Video(object):
5555
5550
  self.player = {}
5556
5551
  if embed:
5557
5552
  self.player["embed"] = True
5553
+ if encoder is None:
5554
+ if self.filename.suffix.lower() == '.mp4':
5555
+ encoder = 'h264'
5556
+ elif self.filename.suffix.lower() == '.webm':
5557
+ encoder = 'libvpx-vp9'
5558
+ elif self.filename.suffix.lower() == '.webp':
5559
+ encoder = 'libwebp_anim'
5560
+ options["lossless"] = "1"
5561
+ options['pix_fmt'] = "rgb32" #Required for lossless
5562
+ options["loop"] = "0" #This doesn't work, quality also has no effect
5563
+ options["quality"] = str(min(30 + self.quality * 20, 100))
5564
+ elif self.filename.suffix.lower() == '.gif':
5565
+ encoder = 'gif'
5566
+ options['pix_fmt'] = "rgb8"
5567
+ else:
5568
+ encoder = 'h264'
5558
5569
  self.encoder = encoder
5559
5570
  self.options = options
5560
5571
  #Also include extra args
@@ -5565,7 +5576,6 @@ class Video(object):
5565
5576
  """
5566
5577
  Start recording, all rendered frames will be added to the video
5567
5578
  """
5568
- #https://trac.ffmpeg.org/wiki/Encode/H.264
5569
5579
  # The range of the CRF scale is 0–51, where 0 is lossless (for 8 bit only, for 10 bit use -qp 0),
5570
5580
  # 23 is the default, and 51 is worst quality possible
5571
5581
  #Compression level, lower = high quality
@@ -5578,7 +5588,8 @@ class Video(object):
5578
5588
  return
5579
5589
 
5580
5590
  if self.encoder == 'h264' or self.encoder == 'libx265':
5581
- #Only have default options for h264/265 for now
5591
+ #https://trac.ffmpeg.org/wiki/Encode/H.264
5592
+ #options['pix_fmt'] = "yuv420"
5582
5593
  if self.quality == 1:
5583
5594
  options['qmin'] = '30' #'20' #'8'
5584
5595
  options['qmax'] = '35' #'41'
@@ -5596,21 +5607,26 @@ class Video(object):
5596
5607
  options["preset"] = 'veryfast' #'veryfast' 'medium' 'slow'
5597
5608
  options["tune"] = 'animation' #'film'
5598
5609
 
5599
- #Settings from our original c++ encoder
5600
- #self.options['i_quant_factor'] = '0.71'
5601
- #self.options['qcompress'] = '0.6'
5602
- #self.options['max_qdiff'] = '4'
5603
- #self.options['refs'] = '3'
5610
+ elif self.encoder == 'libvpx-vp9':
5611
+ #https://trac.ffmpeg.org/wiki/Encode/VP9
5612
+ options['crf'] = '15'
5613
+ options['b:v'] = '0' #Required for constant quality single pass
5614
+ if self.quality == 1:
5615
+ options['crf'] = '30' #'40'
5616
+ elif self.quality == 2:
5617
+ options['crf'] = '20' #'23'
5618
+ elif self.quality == 3:
5619
+ options['crf'] = '10' #'10'
5620
+ #options['pix_fmt'] = "yuv444p"
5604
5621
 
5605
5622
  #Merge user options, allowing override of above settings
5606
5623
  options.update(self.options)
5624
+ #print(options, self.encoder)
5607
5625
 
5608
- #print(options)
5609
5626
  self.container = av.open(str(self.filename), mode="w")
5610
5627
  self.stream = self.container.add_stream(self.encoder, rate=self.framerate, options=options)
5611
5628
  self.stream.width = self.resolution[0]
5612
5629
  self.stream.height = self.resolution[1]
5613
- self.stream.pix_fmt = "yuv420p"
5614
5630
  self.viewer.recording = self
5615
5631
 
5616
5632
  stream = self.stream
@@ -5620,14 +5636,52 @@ class Video(object):
5620
5636
  #print(stream.profiles)
5621
5637
  #print(stream.profile)
5622
5638
  #print(stream.options)
5639
+
5640
+ if 'pix_fmt' in options:
5641
+ self.stream.pix_fmt = options['pix_fmt']
5642
+ #Select higher quality colour where supported
5643
+ elif self.encoder == 'h264' or self.encoder == 'libx265' or self.encoder == 'libvpx-vp9':
5644
+ #Reduce chroma subsampling for better colour output
5645
+ if self.quality < 3:
5646
+ self.stream.pix_fmt = "yuv420p"
5647
+ else:
5648
+ self.stream.pix_fmt = "yuv422p"
5649
+ #10 bit formats
5650
+ #self.stream.pix_fmt = "yuv444p10le"
5651
+ #self.stream.pix_fmt = "yuv422p10le"
5652
+
5623
5653
  #Need to set profile here or it isn't applied
5624
- #(Default to main)
5625
- stream.profile = 'Main' #Baseline / High
5654
+ #(better chroma sampling requires the correct profile)
5655
+ if 'profile' in options:
5656
+ stream.profile = options['profile']
5657
+ elif self.encoder == 'h264' or self.encoder == 'libx265':
5658
+ #['Baseline', 'Constrained Baseline', 'Main', 'Extended',
5659
+ # 'High', 'High 10', 'High 10 Intra', 'High 4:2:2',
5660
+ # 'High 4:2:2 Intra', 'High 4:4:4', 'High 4:4:4 Predictive',
5661
+ # 'High 4:4:4 Intra', 'CAVLC 4:4:4', 'Multiview High', 'Stereo High']
5662
+ #stream.profile = 'High 4:4:4'
5663
+ if self.stream.pix_fmt == 'yuv420p':
5664
+ stream.profile = 'Main'
5665
+ elif 'yuv422' in self.stream.pix_fmt:
5666
+ stream.profile = 'High 4:2:2'
5667
+ elif 'yuv444' in self.stream.pix_fmt:
5668
+ stream.profile = 'High 4:4:4'
5669
+ elif self.encoder == 'libvpx-vp9':
5670
+ #Profile Color Depth Chroma Subsampling
5671
+ #0 8 bit/sample 4:2:0
5672
+ #1 8 bit 4:2:2,4:4:4
5673
+ #2 10 or 12 bit 4:2:0
5674
+ #3 10 or 12 bit 4:2:2, 4:4:4
5675
+ if self.stream.pix_fmt == 'yuv420p':
5676
+ stream.profile = 'Profile 0'
5677
+ elif 'yuv422' in self.stream.pix_fmt or 'yuv444' in self.stream.pix_fmt:
5678
+ stream.profile = 'Profile 1'
5679
+
5626
5680
  cc = stream.codec_context
5627
5681
  #print(cc.options)
5628
- #print(cc.profile)
5682
+ #print(cc.profile, stream.pix_fmt)
5629
5683
 
5630
- def frame(self):
5684
+ def frame(self, img=None):
5631
5685
  """
5632
5686
  Write a frame, called when viewer.render() is called
5633
5687
  while a recording is in progress
@@ -5639,10 +5693,17 @@ class Video(object):
5639
5693
  else:
5640
5694
  fn = self.filename / f"{self.framecount:06}_{self.basename}.{self.encoder}"
5641
5695
  self.framecount += 1
5642
- self.viewer.image(str(fn), resolution=self.resolution)
5696
+ if img:
5697
+ image = PILImage.fromarray(img)
5698
+ image.save(fn)
5699
+ image.save(fn, subsampling=0, quality=95)
5700
+ else:
5701
+ self.viewer.image(str(fn), resolution=self.resolution)
5643
5702
  else:
5644
- img = self.viewer.rawimage(resolution=self.resolution, channels=3)
5645
- frame = av.VideoFrame.from_ndarray(img.data, format="rgb24")
5703
+ if img is None:
5704
+ img = self.viewer.rawimage(resolution=self.resolution, channels=3).data
5705
+ frame = av.VideoFrame.from_ndarray(img, format="rgb24")
5706
+ #frame = av.VideoFrame.from_image(PILImage.fromarray(img)) #, format="rgb24")
5646
5707
  for packet in self.stream.encode(frame):
5647
5708
  self.container.mux(packet)
5648
5709
 
@@ -5697,23 +5758,16 @@ class Video(object):
5697
5758
  image = image.reshape(self.resolution[0], self.resolution[1], 4)
5698
5759
  image = image[::,::,:3] #Remove alpha channel
5699
5760
 
5700
- if self.encoder == 'jpg' or self.encoder == 'png':
5701
- from PIL import Image as PILImage
5702
- img = PILImage.fromarray(image)
5703
- fn = self.filename / f"{self.framecount:06}_{self.basename}.{self.encoder}"
5704
- self.framecount += 1
5705
- img.save(fn)
5706
- return
5707
-
5708
- frame = av.VideoFrame.from_ndarray(image, format="rgb24")
5709
- for packet in self.stream.encode(frame):
5710
- self.container.mux(packet)
5761
+ self.frame(image)
5711
5762
 
5712
5763
  def play(self):
5713
5764
  """
5714
5765
  Show the video in an inline player if in an interactive notebook
5715
5766
  """
5716
- if self.encoder == 'jpg' or self.encoder == 'png':
5767
+ if self.encoder == 'gif' or self.encoder == 'libwebp_anim':
5768
+ from IPython.display import display,Image
5769
+ display(Image(self.filename, **self.player))
5770
+ elif self.encoder == 'jpg' or self.encoder == 'png':
5717
5771
  from IPython.display import display,HTML
5718
5772
  display(HTML('<p>Video written to images, no player available</p>'))
5719
5773
  else:
@@ -5841,7 +5895,6 @@ class Image(object):
5841
5895
  """
5842
5896
  try:
5843
5897
  #Get array from PIL images
5844
- from PIL import Image as PILImage
5845
5898
  if isinstance(source, PILImage.Image):
5846
5899
  source = numpy.array(source)
5847
5900
  except (ImportError) as e:
lavavu/tracers.py CHANGED
@@ -24,7 +24,7 @@ def random_particles(count, lowerbound=[0,0,0], upperbound=[1,1,1], dims=3):
24
24
  return numpy.stack(p).T
25
25
 
26
26
  class Tracers():
27
- def __init__(self, grid, count=1000, lowerbound=None, upperbound=None, limit=None, age=4, respawn_chance=0.2, speed_multiply=1.0, height=0.0, label='', viewer=None):
27
+ def __init__(self, grid, count=1000, lowerbound=None, upperbound=None, limit=0, age=4, respawn_chance=0.2, speed_multiply=1.0, height=0.0, label='', viewer=None, seed=0):
28
28
  """
29
29
  Seed random particles into a vector field and trace their positions
30
30
 
@@ -40,10 +40,7 @@ class Tracers():
40
40
  upperbound : optional maximum vertex point defining particle bounding box,
41
41
  if not provided will be taken from grid upper corner
42
42
  limit : float
43
- Distance limit over which tracers are not connected,
44
- For example if using a periodic boundary, setting limit to
45
- half the bounding box size will prevent tracer lines being
46
- connected when passing through the boundary
43
+ Distance limit over which tracers are not drawn
47
44
  age : int
48
45
  Minimum particle age in steps after which particle can be deleted and respawned, defaults to 4
49
46
  respawn : float
@@ -56,6 +53,9 @@ class Tracers():
56
53
  Name label prefix for the visualisation objects when plotting
57
54
  viewer : lavavu.Viewer
58
55
  Viewer object for plotting functions
56
+ seed : int
57
+ Random seed for deterministic random particle positions, default=0, set to None to use
58
+ system time which will produce non-deterministic results (different each run)
59
59
  """
60
60
  if len(grid) == 2:
61
61
  self.gridx = grid[0]
@@ -108,20 +108,18 @@ class Tracers():
108
108
  self.arrows = None
109
109
  self.tracers = None
110
110
 
111
+ if seed is not None:
112
+ random.seed(seed)
111
113
 
112
114
  def respawn(self, r):
113
115
  #Dead or out of bounds particle, start at new position
114
116
  #Loop until new position further from current position than limit
115
117
  old_pos = self.positions[r]
116
118
  pos = numpy.array([0.] * self.dims)
117
- for i in range(10):
118
- pos = random_particles(1, self.lowerbound, self.upperbound, self.dims)
119
- dist = numpy.linalg.norm(old_pos - pos)
120
- if dist > self.limit*1.01:
121
- break
122
-
119
+ pos = random_particles(1, self.lowerbound, self.upperbound, self.dims)
123
120
  self.ages[r] = 0
124
121
  self.positions[r] = pos
122
+ self.velocities[r] = numpy.array([0.0] * self.dims)
125
123
 
126
124
  def update(self, vectors=None):
127
125
  #Interpolate velocity at all positions,
@@ -140,24 +138,21 @@ class Tracers():
140
138
 
141
139
  for r in range(len(self.velocities)):
142
140
  #Lookup velocity at this index, multiply by position to get delta and add
143
- self.speed[r] = numpy.linalg.norm(self.velocities[r])
144
- if numpy.isnan(self.speed[r]): self.speed[r] = 0.0
145
- if self.speed[r] == 0.0: #numpy.any(numpy.isinf(self.old_pos[r])) or numpy.any(numpy.isinf(self.positions[r])):
141
+ if self.ages[r] < 0:
146
142
  self.respawn(r)
147
143
  else:
144
+ self.speed[r] = numpy.linalg.norm(self.velocities[r])
145
+ if numpy.isnan(self.speed[r]) or numpy.isinf(self.speed[r]): self.speed[r] = 0.0
148
146
  self.positions[r] = self.positions[r] + self.speed_multiply * self.velocities[r]
149
147
  self.ages[r] += 1
150
148
 
151
- #Bounds checks
152
- #Chance of killing particle when over age, default 1 in 5 (0.2)
153
- if (any(self.positions[r] < self.lowerbound[0:self.dims]) or any(self.positions[r] > self.upperbound[0:self.dims])
154
- or (self.ages[r] > self.age and numpy.random.uniform() <= self.respawn_chance)):
155
- #if r < 20: print("Kill", r, self.speed[r], numpy.isnan(self.speed[r])) # [0] == numpy.nan)
156
- #self.positions[r] = numpy.array([numpy.inf] * self.dims)
157
- #self.positions[r] = numpy.array([numpy.nan] * self.dims)
158
- self.respawn(r)
159
- self.velocities[r] = numpy.array([0.0] * self.dims)
160
- self.speed[r] = 0.0
149
+ #Bounds checks
150
+ #Chance of killing particle when over age, default 1 in 5 (0.2)
151
+ if (any(self.positions[r] < self.lowerbound[0:self.dims]) or any(self.positions[r] > self.upperbound[0:self.dims])
152
+ or (self.ages[r] > self.age and numpy.random.uniform() <= self.respawn_chance)):
153
+ self.positions[r] = numpy.array([numpy.nan] * self.dims)
154
+ self.ages[r] = -1
155
+ self.velocities[r] = numpy.array([0.0] * self.dims)
161
156
 
162
157
  if self.lv:
163
158
  positions = self.get_positions()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lavavu
3
- Version: 1.9.9
3
+ Version: 1.9.10
4
4
  Summary: Python interface to LavaVu OpenGL 3D scientific visualisation utilities
5
5
  Author-email: Owen Kaluza <owen@kaluza.id.au>
6
6
  License: ### Licensing
@@ -217,6 +217,7 @@ Requires-Dist: aiohttp
217
217
  Requires-Dist: jupyter_server_proxy
218
218
  Requires-Dist: matplotlib
219
219
  Requires-Dist: numpy-quaternion
220
+ Requires-Dist: pillow
220
221
  Dynamic: license-file
221
222
 
222
223
  ![# logo](http://owen.kaluza.id.au/Slides/2017-08-15/LavaVu.png)
@@ -224,7 +225,7 @@ Dynamic: license-file
224
225
  [![Build Status](https://github.com/lavavu/LavaVu/workflows/Test/badge.svg)](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
225
226
  [![Deploy Status](https://github.com/lavavu/LavaVu/workflows/Deploy/badge.svg?branch=1.7.3)](https://github.com/lavavu/LavaVu/actions?query=workflow:Deploy)
226
227
  [![DOI](https://zenodo.org/badge/45163055.svg)](https://zenodo.org/badge/latestdoi/45163055)
227
- [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.9)
228
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.10)
228
229
 
229
230
  A scientific visualisation tool with a python interface for fast and flexible visual analysis.
230
231
 
@@ -1,11 +1,11 @@
1
- lavavu/lavavu.py,sha256=v7tXwp6gQzu1F05hHyALng8FXznv4rVwdCJ3sO65O8o,221223
1
+ lavavu/lavavu.py,sha256=_OIsRSNqCrsfcOrRfjWMQKOV5r8dAvZVnmxZK9deDNc,224022
2
2
  lavavu/vutils.py,sha256=6Vm_xl1bp9mWlfk7jgLDwbRw-tdE_oxin77YkLel3_4,5437
3
3
  lavavu/dict.json,sha256=EcJsoHsiHDDmM8FGuBRF6eOG2nMr-Pda3sxE6v6KB80,52952
4
4
  lavavu/server.py,sha256=L-_yPCbNfwYxJCPjDQtr_lxPnDp4oMNVFyxXhBERYrQ,12468
5
5
  lavavu/points.py,sha256=jRRtA6CrcA46Y2jUJmkxnIiVoMC5a14xEd_ojhmjhz4,5871
6
- lavavu/_LavaVuPython.cpython-312-darwin.so,sha256=RrzmoM4H_Pn9SsNxvm2IfVragUTXyHeZntVLBlhPKyU,4125776
7
- lavavu/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
8
- lavavu/tracers.py,sha256=e10H8evUH7V-XUSkHjfoakaA4SfeuQ8-gWzfa86RGzQ,8997
6
+ lavavu/_LavaVuPython.cpython-312-darwin.so,sha256=ie5pmQT6haAiM0qFLe8lsVFJKSmXVwzDWpU_Ff0K-ZA,4125776
7
+ lavavu/LavaVuPython.py,sha256=rTMSBgFkQNzZ0cv1HSFGW7dIxYryoJSlSXhi3uKb1eI,33202
8
+ lavavu/tracers.py,sha256=KZsCxHQm6EDdXfT997lbV6qqIEONNPeTP1R8GHqepOw,8738
9
9
  lavavu/convert.py,sha256=tbYRjLE2l1hI4d6tsW41Lia1JXmrWSc0-JAYCiMrjys,35516
10
10
  lavavu/control.py,sha256=s32rtLPXXYtxpeXd6-iHdupmaMTJ3KhK6Vq-CLjf9OQ,66755
11
11
  lavavu/__init__.py,sha256=JroZQiUbuVN7ifixk2zNDGlyLGaM8bqfRbw4D_F9qIQ,191
@@ -27,13 +27,12 @@ lavavu/html/dat.gui.min.js,sha256=S4_QjoXe4IOpU0f0Sj5jEQLTWPoX9uRl1ohB91jyhuw,56
27
27
  lavavu/html/OK-min.js,sha256=-4Gc1-dWfxP_w6r9ZOHa8u-X2BlGUoSQbX68lwCxQ3E,39115
28
28
  lavavu/html/emscripten.css,sha256=wkaIJhXaxuMchinQX9Z8c12cJomyvFQMeIZ62WGQEPQ,1813
29
29
  lavavu/html/drawbox.js,sha256=SJxFSmWd7QVFI5__66hFkKzLKeqg1JPcx-gJuqdMkXw,34590
30
- lavavu/html/webview.html,sha256=18jUDdjnNH0GEJl377vZ-2tj9AUawj3lUbveleBkguM,1521
30
+ lavavu/html/webview.html,sha256=wLJjnQlVy7jSjhMcgUkerG23jK_fmPzmC7x_J7AJX3o,1522
31
31
  lavavu/html/emscripten-template.js,sha256=h63mzl3Lv7aQT1wMOiOucPOvHTJjpKkzsL-SFVYaZlA,6135
32
32
  lavavu/html/draw.js,sha256=57LlHlYRh0IvWVwzGDnF6PaCxYLzokpokLNCuZlG1ds,84108
33
33
  lavavu/html/dat-gui-light-theme.css,sha256=uPhvJs-1IAsdxudItyOw8lZy8Hrih0zmFM1u-xRwZ-M,1142
34
34
  lavavu/html/menu.js,sha256=42h-BCnrmEpW4IdZRKC_FIXUVczJP0sm4ciZ2ccfs-k,21630
35
35
  lavavu/html/baseviewer.js,sha256=u3UhC1At6rMBKmcQ7d2DXTRxQ20wsQkc4lqA-7sL7i4,9567
36
- lavavu/osmesa/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
37
36
  lavavu/osmesa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
37
  lavavu/shaders/volumeShader.frag,sha256=Ajkpt0S2p0PpbQ2jygDnrymSgPMU2CG5xQT-dq2rr90,14194
39
38
  lavavu/shaders/pointShader.vert,sha256=mDMF4wAPvHELXT5rXN_QZFezxvK4q50Mdm-qZZJ7FYI,1160
@@ -47,9 +46,9 @@ lavavu/shaders/fontShader.vert,sha256=yCBmRugaPUeUQUdIh62-AK_5KELiJqVS2M82iyIqPw
47
46
  lavavu/shaders/pointShader.frag,sha256=3zREBdsimlL9fAXBPjhzomGaFUWmlG_QYkhwMTVURHQ,3291
48
47
  lavavu/shaders/volumeShader.vert,sha256=uGdQjGqi7V5kE6V7nxymfugtU4cbf6u570xBy13RgmY,78
49
48
  lavavu/shaders/default.frag,sha256=5XLYVfLwzN0sFT3aMYGmxbyquA_cmndp55YCOuy1t4E,180
50
- lavavu-1.9.9.dist-info/RECORD,,
51
- lavavu-1.9.9.dist-info/WHEEL,sha256=mer8vOuI-KlBtJIdzgyZALHdls6RZGRaE6RPt7dfKrk,138
52
- lavavu-1.9.9.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
53
- lavavu-1.9.9.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
54
- lavavu-1.9.9.dist-info/METADATA,sha256=m26xD1S57nTm100gH36OwCwzJRRHuaiqk0Ai7ZQV7iY,17877
55
- lavavu-1.9.9.dist-info/licenses/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
49
+ lavavu-1.9.10.dist-info/RECORD,,
50
+ lavavu-1.9.10.dist-info/WHEEL,sha256=mer8vOuI-KlBtJIdzgyZALHdls6RZGRaE6RPt7dfKrk,138
51
+ lavavu-1.9.10.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
52
+ lavavu-1.9.10.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
53
+ lavavu-1.9.10.dist-info/METADATA,sha256=-v--Epjzy94gAFwLnDiYVtZ8chPgRKWxCmYjbm6es7Q,17901
54
+ lavavu-1.9.10.dist-info/licenses/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
@@ -1,561 +0,0 @@
1
- # This file was automatically generated by SWIG (https://www.swig.org).
2
- # Version 4.2.0
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
- from sys import version_info as _swig_python_version_info
8
- # Import the low-level C/C++ module
9
- if __package__ or "." in __name__:
10
- from . import _LavaVuPython
11
- else:
12
- import _LavaVuPython
13
-
14
- try:
15
- import builtins as __builtin__
16
- except ImportError:
17
- import __builtin__
18
-
19
- _swig_new_instance_method = _LavaVuPython.SWIG_PyInstanceMethod_New
20
- _swig_new_static_method = _LavaVuPython.SWIG_PyStaticMethod_New
21
-
22
- def _swig_repr(self):
23
- try:
24
- strthis = "proxy of " + self.this.__repr__()
25
- except __builtin__.Exception:
26
- strthis = ""
27
- return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
-
29
-
30
- def _swig_setattr_nondynamic_instance_variable(set):
31
- def set_instance_attr(self, name, value):
32
- if name == "this":
33
- set(self, name, value)
34
- elif name == "thisown":
35
- self.this.own(value)
36
- elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37
- set(self, name, value)
38
- else:
39
- raise AttributeError("You cannot add instance attributes to %s" % self)
40
- return set_instance_attr
41
-
42
-
43
- def _swig_setattr_nondynamic_class_variable(set):
44
- def set_class_attr(cls, name, value):
45
- if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46
- set(cls, name, value)
47
- else:
48
- raise AttributeError("You cannot add class attributes to %s" % cls)
49
- return set_class_attr
50
-
51
-
52
- def _swig_add_metaclass(metaclass):
53
- """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54
- def wrapper(cls):
55
- return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56
- return wrapper
57
-
58
-
59
- class _SwigNonDynamicMeta(type):
60
- """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61
- __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
-
63
-
64
- class SwigPyIterator(object):
65
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
66
-
67
- def __init__(self, *args, **kwargs):
68
- raise AttributeError("No constructor defined - class is abstract")
69
- __repr__ = _swig_repr
70
- __swig_destroy__ = _LavaVuPython.delete_SwigPyIterator
71
- value = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_value)
72
- incr = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_incr)
73
- decr = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_decr)
74
- distance = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_distance)
75
- equal = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_equal)
76
- copy = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_copy)
77
- next = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_next)
78
- __next__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___next__)
79
- previous = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_previous)
80
- advance = _swig_new_instance_method(_LavaVuPython.SwigPyIterator_advance)
81
- __eq__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___eq__)
82
- __ne__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___ne__)
83
- __iadd__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___iadd__)
84
- __isub__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___isub__)
85
- __add__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___add__)
86
- __sub__ = _swig_new_instance_method(_LavaVuPython.SwigPyIterator___sub__)
87
- def __iter__(self):
88
- return self
89
-
90
- # Register SwigPyIterator in _LavaVuPython:
91
- _LavaVuPython.SwigPyIterator_swigregister(SwigPyIterator)
92
- SHARED_PTR_DISOWN = _LavaVuPython.SHARED_PTR_DISOWN
93
- class Line(object):
94
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
95
- __repr__ = _swig_repr
96
- iterator = _swig_new_instance_method(_LavaVuPython.Line_iterator)
97
- def __iter__(self):
98
- return self.iterator()
99
- __nonzero__ = _swig_new_instance_method(_LavaVuPython.Line___nonzero__)
100
- __bool__ = _swig_new_instance_method(_LavaVuPython.Line___bool__)
101
- __len__ = _swig_new_instance_method(_LavaVuPython.Line___len__)
102
- __getslice__ = _swig_new_instance_method(_LavaVuPython.Line___getslice__)
103
- __setslice__ = _swig_new_instance_method(_LavaVuPython.Line___setslice__)
104
- __delslice__ = _swig_new_instance_method(_LavaVuPython.Line___delslice__)
105
- __delitem__ = _swig_new_instance_method(_LavaVuPython.Line___delitem__)
106
- __getitem__ = _swig_new_instance_method(_LavaVuPython.Line___getitem__)
107
- __setitem__ = _swig_new_instance_method(_LavaVuPython.Line___setitem__)
108
- pop = _swig_new_instance_method(_LavaVuPython.Line_pop)
109
- append = _swig_new_instance_method(_LavaVuPython.Line_append)
110
- empty = _swig_new_instance_method(_LavaVuPython.Line_empty)
111
- size = _swig_new_instance_method(_LavaVuPython.Line_size)
112
- swap = _swig_new_instance_method(_LavaVuPython.Line_swap)
113
- begin = _swig_new_instance_method(_LavaVuPython.Line_begin)
114
- end = _swig_new_instance_method(_LavaVuPython.Line_end)
115
- rbegin = _swig_new_instance_method(_LavaVuPython.Line_rbegin)
116
- rend = _swig_new_instance_method(_LavaVuPython.Line_rend)
117
- clear = _swig_new_instance_method(_LavaVuPython.Line_clear)
118
- get_allocator = _swig_new_instance_method(_LavaVuPython.Line_get_allocator)
119
- pop_back = _swig_new_instance_method(_LavaVuPython.Line_pop_back)
120
- erase = _swig_new_instance_method(_LavaVuPython.Line_erase)
121
-
122
- def __init__(self, *args):
123
- _LavaVuPython.Line_swiginit(self, _LavaVuPython.new_Line(*args))
124
- push_back = _swig_new_instance_method(_LavaVuPython.Line_push_back)
125
- front = _swig_new_instance_method(_LavaVuPython.Line_front)
126
- back = _swig_new_instance_method(_LavaVuPython.Line_back)
127
- assign = _swig_new_instance_method(_LavaVuPython.Line_assign)
128
- resize = _swig_new_instance_method(_LavaVuPython.Line_resize)
129
- insert = _swig_new_instance_method(_LavaVuPython.Line_insert)
130
- reserve = _swig_new_instance_method(_LavaVuPython.Line_reserve)
131
- capacity = _swig_new_instance_method(_LavaVuPython.Line_capacity)
132
- __swig_destroy__ = _LavaVuPython.delete_Line
133
-
134
- # Register Line in _LavaVuPython:
135
- _LavaVuPython.Line_swigregister(Line)
136
- class Array(object):
137
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
138
- __repr__ = _swig_repr
139
- iterator = _swig_new_instance_method(_LavaVuPython.Array_iterator)
140
- def __iter__(self):
141
- return self.iterator()
142
- __nonzero__ = _swig_new_instance_method(_LavaVuPython.Array___nonzero__)
143
- __bool__ = _swig_new_instance_method(_LavaVuPython.Array___bool__)
144
- __len__ = _swig_new_instance_method(_LavaVuPython.Array___len__)
145
- __getslice__ = _swig_new_instance_method(_LavaVuPython.Array___getslice__)
146
- __setslice__ = _swig_new_instance_method(_LavaVuPython.Array___setslice__)
147
- __delslice__ = _swig_new_instance_method(_LavaVuPython.Array___delslice__)
148
- __delitem__ = _swig_new_instance_method(_LavaVuPython.Array___delitem__)
149
- __getitem__ = _swig_new_instance_method(_LavaVuPython.Array___getitem__)
150
- __setitem__ = _swig_new_instance_method(_LavaVuPython.Array___setitem__)
151
- pop = _swig_new_instance_method(_LavaVuPython.Array_pop)
152
- append = _swig_new_instance_method(_LavaVuPython.Array_append)
153
- empty = _swig_new_instance_method(_LavaVuPython.Array_empty)
154
- size = _swig_new_instance_method(_LavaVuPython.Array_size)
155
- swap = _swig_new_instance_method(_LavaVuPython.Array_swap)
156
- begin = _swig_new_instance_method(_LavaVuPython.Array_begin)
157
- end = _swig_new_instance_method(_LavaVuPython.Array_end)
158
- rbegin = _swig_new_instance_method(_LavaVuPython.Array_rbegin)
159
- rend = _swig_new_instance_method(_LavaVuPython.Array_rend)
160
- clear = _swig_new_instance_method(_LavaVuPython.Array_clear)
161
- get_allocator = _swig_new_instance_method(_LavaVuPython.Array_get_allocator)
162
- pop_back = _swig_new_instance_method(_LavaVuPython.Array_pop_back)
163
- erase = _swig_new_instance_method(_LavaVuPython.Array_erase)
164
-
165
- def __init__(self, *args):
166
- _LavaVuPython.Array_swiginit(self, _LavaVuPython.new_Array(*args))
167
- push_back = _swig_new_instance_method(_LavaVuPython.Array_push_back)
168
- front = _swig_new_instance_method(_LavaVuPython.Array_front)
169
- back = _swig_new_instance_method(_LavaVuPython.Array_back)
170
- assign = _swig_new_instance_method(_LavaVuPython.Array_assign)
171
- resize = _swig_new_instance_method(_LavaVuPython.Array_resize)
172
- insert = _swig_new_instance_method(_LavaVuPython.Array_insert)
173
- reserve = _swig_new_instance_method(_LavaVuPython.Array_reserve)
174
- capacity = _swig_new_instance_method(_LavaVuPython.Array_capacity)
175
- __swig_destroy__ = _LavaVuPython.delete_Array
176
-
177
- # Register Array in _LavaVuPython:
178
- _LavaVuPython.Array_swigregister(Array)
179
- class List(object):
180
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
181
- __repr__ = _swig_repr
182
- iterator = _swig_new_instance_method(_LavaVuPython.List_iterator)
183
- def __iter__(self):
184
- return self.iterator()
185
- __nonzero__ = _swig_new_instance_method(_LavaVuPython.List___nonzero__)
186
- __bool__ = _swig_new_instance_method(_LavaVuPython.List___bool__)
187
- __len__ = _swig_new_instance_method(_LavaVuPython.List___len__)
188
- __getslice__ = _swig_new_instance_method(_LavaVuPython.List___getslice__)
189
- __setslice__ = _swig_new_instance_method(_LavaVuPython.List___setslice__)
190
- __delslice__ = _swig_new_instance_method(_LavaVuPython.List___delslice__)
191
- __delitem__ = _swig_new_instance_method(_LavaVuPython.List___delitem__)
192
- __getitem__ = _swig_new_instance_method(_LavaVuPython.List___getitem__)
193
- __setitem__ = _swig_new_instance_method(_LavaVuPython.List___setitem__)
194
- pop = _swig_new_instance_method(_LavaVuPython.List_pop)
195
- append = _swig_new_instance_method(_LavaVuPython.List_append)
196
- empty = _swig_new_instance_method(_LavaVuPython.List_empty)
197
- size = _swig_new_instance_method(_LavaVuPython.List_size)
198
- swap = _swig_new_instance_method(_LavaVuPython.List_swap)
199
- begin = _swig_new_instance_method(_LavaVuPython.List_begin)
200
- end = _swig_new_instance_method(_LavaVuPython.List_end)
201
- rbegin = _swig_new_instance_method(_LavaVuPython.List_rbegin)
202
- rend = _swig_new_instance_method(_LavaVuPython.List_rend)
203
- clear = _swig_new_instance_method(_LavaVuPython.List_clear)
204
- get_allocator = _swig_new_instance_method(_LavaVuPython.List_get_allocator)
205
- pop_back = _swig_new_instance_method(_LavaVuPython.List_pop_back)
206
- erase = _swig_new_instance_method(_LavaVuPython.List_erase)
207
-
208
- def __init__(self, *args):
209
- _LavaVuPython.List_swiginit(self, _LavaVuPython.new_List(*args))
210
- push_back = _swig_new_instance_method(_LavaVuPython.List_push_back)
211
- front = _swig_new_instance_method(_LavaVuPython.List_front)
212
- back = _swig_new_instance_method(_LavaVuPython.List_back)
213
- assign = _swig_new_instance_method(_LavaVuPython.List_assign)
214
- resize = _swig_new_instance_method(_LavaVuPython.List_resize)
215
- insert = _swig_new_instance_method(_LavaVuPython.List_insert)
216
- reserve = _swig_new_instance_method(_LavaVuPython.List_reserve)
217
- capacity = _swig_new_instance_method(_LavaVuPython.List_capacity)
218
- __swig_destroy__ = _LavaVuPython.delete_List
219
-
220
- # Register List in _LavaVuPython:
221
- _LavaVuPython.List_swigregister(List)
222
- class GeomList(object):
223
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
224
- __repr__ = _swig_repr
225
- iterator = _swig_new_instance_method(_LavaVuPython.GeomList_iterator)
226
- def __iter__(self):
227
- return self.iterator()
228
- __nonzero__ = _swig_new_instance_method(_LavaVuPython.GeomList___nonzero__)
229
- __bool__ = _swig_new_instance_method(_LavaVuPython.GeomList___bool__)
230
- __len__ = _swig_new_instance_method(_LavaVuPython.GeomList___len__)
231
- __getslice__ = _swig_new_instance_method(_LavaVuPython.GeomList___getslice__)
232
- __setslice__ = _swig_new_instance_method(_LavaVuPython.GeomList___setslice__)
233
- __delslice__ = _swig_new_instance_method(_LavaVuPython.GeomList___delslice__)
234
- __delitem__ = _swig_new_instance_method(_LavaVuPython.GeomList___delitem__)
235
- __getitem__ = _swig_new_instance_method(_LavaVuPython.GeomList___getitem__)
236
- __setitem__ = _swig_new_instance_method(_LavaVuPython.GeomList___setitem__)
237
- pop = _swig_new_instance_method(_LavaVuPython.GeomList_pop)
238
- append = _swig_new_instance_method(_LavaVuPython.GeomList_append)
239
- empty = _swig_new_instance_method(_LavaVuPython.GeomList_empty)
240
- size = _swig_new_instance_method(_LavaVuPython.GeomList_size)
241
- swap = _swig_new_instance_method(_LavaVuPython.GeomList_swap)
242
- begin = _swig_new_instance_method(_LavaVuPython.GeomList_begin)
243
- end = _swig_new_instance_method(_LavaVuPython.GeomList_end)
244
- rbegin = _swig_new_instance_method(_LavaVuPython.GeomList_rbegin)
245
- rend = _swig_new_instance_method(_LavaVuPython.GeomList_rend)
246
- clear = _swig_new_instance_method(_LavaVuPython.GeomList_clear)
247
- get_allocator = _swig_new_instance_method(_LavaVuPython.GeomList_get_allocator)
248
- pop_back = _swig_new_instance_method(_LavaVuPython.GeomList_pop_back)
249
- erase = _swig_new_instance_method(_LavaVuPython.GeomList_erase)
250
-
251
- def __init__(self, *args):
252
- _LavaVuPython.GeomList_swiginit(self, _LavaVuPython.new_GeomList(*args))
253
- push_back = _swig_new_instance_method(_LavaVuPython.GeomList_push_back)
254
- front = _swig_new_instance_method(_LavaVuPython.GeomList_front)
255
- back = _swig_new_instance_method(_LavaVuPython.GeomList_back)
256
- assign = _swig_new_instance_method(_LavaVuPython.GeomList_assign)
257
- resize = _swig_new_instance_method(_LavaVuPython.GeomList_resize)
258
- insert = _swig_new_instance_method(_LavaVuPython.GeomList_insert)
259
- reserve = _swig_new_instance_method(_LavaVuPython.GeomList_reserve)
260
- capacity = _swig_new_instance_method(_LavaVuPython.GeomList_capacity)
261
- __swig_destroy__ = _LavaVuPython.delete_GeomList
262
-
263
- # Register GeomList in _LavaVuPython:
264
- _LavaVuPython.GeomList_swigregister(GeomList)
265
- class ByteArray(object):
266
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
267
- __repr__ = _swig_repr
268
- iterator = _swig_new_instance_method(_LavaVuPython.ByteArray_iterator)
269
- def __iter__(self):
270
- return self.iterator()
271
- __nonzero__ = _swig_new_instance_method(_LavaVuPython.ByteArray___nonzero__)
272
- __bool__ = _swig_new_instance_method(_LavaVuPython.ByteArray___bool__)
273
- __len__ = _swig_new_instance_method(_LavaVuPython.ByteArray___len__)
274
- __getslice__ = _swig_new_instance_method(_LavaVuPython.ByteArray___getslice__)
275
- __setslice__ = _swig_new_instance_method(_LavaVuPython.ByteArray___setslice__)
276
- __delslice__ = _swig_new_instance_method(_LavaVuPython.ByteArray___delslice__)
277
- __delitem__ = _swig_new_instance_method(_LavaVuPython.ByteArray___delitem__)
278
- __getitem__ = _swig_new_instance_method(_LavaVuPython.ByteArray___getitem__)
279
- __setitem__ = _swig_new_instance_method(_LavaVuPython.ByteArray___setitem__)
280
- pop = _swig_new_instance_method(_LavaVuPython.ByteArray_pop)
281
- append = _swig_new_instance_method(_LavaVuPython.ByteArray_append)
282
- empty = _swig_new_instance_method(_LavaVuPython.ByteArray_empty)
283
- size = _swig_new_instance_method(_LavaVuPython.ByteArray_size)
284
- swap = _swig_new_instance_method(_LavaVuPython.ByteArray_swap)
285
- begin = _swig_new_instance_method(_LavaVuPython.ByteArray_begin)
286
- end = _swig_new_instance_method(_LavaVuPython.ByteArray_end)
287
- rbegin = _swig_new_instance_method(_LavaVuPython.ByteArray_rbegin)
288
- rend = _swig_new_instance_method(_LavaVuPython.ByteArray_rend)
289
- clear = _swig_new_instance_method(_LavaVuPython.ByteArray_clear)
290
- get_allocator = _swig_new_instance_method(_LavaVuPython.ByteArray_get_allocator)
291
- pop_back = _swig_new_instance_method(_LavaVuPython.ByteArray_pop_back)
292
- erase = _swig_new_instance_method(_LavaVuPython.ByteArray_erase)
293
-
294
- def __init__(self, *args):
295
- _LavaVuPython.ByteArray_swiginit(self, _LavaVuPython.new_ByteArray(*args))
296
- push_back = _swig_new_instance_method(_LavaVuPython.ByteArray_push_back)
297
- front = _swig_new_instance_method(_LavaVuPython.ByteArray_front)
298
- back = _swig_new_instance_method(_LavaVuPython.ByteArray_back)
299
- assign = _swig_new_instance_method(_LavaVuPython.ByteArray_assign)
300
- resize = _swig_new_instance_method(_LavaVuPython.ByteArray_resize)
301
- insert = _swig_new_instance_method(_LavaVuPython.ByteArray_insert)
302
- reserve = _swig_new_instance_method(_LavaVuPython.ByteArray_reserve)
303
- capacity = _swig_new_instance_method(_LavaVuPython.ByteArray_capacity)
304
- __swig_destroy__ = _LavaVuPython.delete_ByteArray
305
-
306
- # Register ByteArray in _LavaVuPython:
307
- _LavaVuPython.ByteArray_swigregister(ByteArray)
308
- lucMinType = _LavaVuPython.lucMinType
309
- lucLabelType = _LavaVuPython.lucLabelType
310
- lucPointType = _LavaVuPython.lucPointType
311
- lucGridType = _LavaVuPython.lucGridType
312
- lucTriangleType = _LavaVuPython.lucTriangleType
313
- lucVectorType = _LavaVuPython.lucVectorType
314
- lucTracerType = _LavaVuPython.lucTracerType
315
- lucLineType = _LavaVuPython.lucLineType
316
- lucShapeType = _LavaVuPython.lucShapeType
317
- lucVolumeType = _LavaVuPython.lucVolumeType
318
- lucScreenType = _LavaVuPython.lucScreenType
319
- lucMaxType = _LavaVuPython.lucMaxType
320
- lucMinDataType = _LavaVuPython.lucMinDataType
321
- lucVertexData = _LavaVuPython.lucVertexData
322
- lucNormalData = _LavaVuPython.lucNormalData
323
- lucVectorData = _LavaVuPython.lucVectorData
324
- lucColourValueData = _LavaVuPython.lucColourValueData
325
- lucOpacityValueData = _LavaVuPython.lucOpacityValueData
326
- lucRedValueData = _LavaVuPython.lucRedValueData
327
- lucGreenValueData = _LavaVuPython.lucGreenValueData
328
- lucBlueValueData = _LavaVuPython.lucBlueValueData
329
- lucIndexData = _LavaVuPython.lucIndexData
330
- lucXWidthData = _LavaVuPython.lucXWidthData
331
- lucYHeightData = _LavaVuPython.lucYHeightData
332
- lucZLengthData = _LavaVuPython.lucZLengthData
333
- lucRGBAData = _LavaVuPython.lucRGBAData
334
- lucTexCoordData = _LavaVuPython.lucTexCoordData
335
- lucSizeData = _LavaVuPython.lucSizeData
336
- lucLuminanceData = _LavaVuPython.lucLuminanceData
337
- lucRGBData = _LavaVuPython.lucRGBData
338
- lucMaxDataType = _LavaVuPython.lucMaxDataType
339
- class Colour(object):
340
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
341
- __repr__ = _swig_repr
342
- rgba = property(_LavaVuPython.Colour_rgba_get, _LavaVuPython.Colour_rgba_set)
343
- value = property(_LavaVuPython.Colour_value_get, _LavaVuPython.Colour_value_set)
344
- fvalue = property(_LavaVuPython.Colour_fvalue_get, _LavaVuPython.Colour_fvalue_set)
345
-
346
- def __init__(self, *args):
347
- _LavaVuPython.Colour_swiginit(self, _LavaVuPython.new_Colour(*args))
348
- fromRGBA = _swig_new_instance_method(_LavaVuPython.Colour_fromRGBA)
349
- fromJSON = _swig_new_instance_method(_LavaVuPython.Colour_fromJSON)
350
- fromString = _swig_new_instance_method(_LavaVuPython.Colour_fromString)
351
- fromX11Colour = _swig_new_instance_method(_LavaVuPython.Colour_fromX11Colour)
352
- fromHex = _swig_new_instance_method(_LavaVuPython.Colour_fromHex)
353
- invert = _swig_new_instance_method(_LavaVuPython.Colour_invert)
354
- toJson = _swig_new_instance_method(_LavaVuPython.Colour_toJson)
355
- toString = _swig_new_instance_method(_LavaVuPython.Colour_toString)
356
- toArray = _swig_new_instance_method(_LavaVuPython.Colour_toArray)
357
- __swig_destroy__ = _LavaVuPython.delete_Colour
358
-
359
- # Register Colour in _LavaVuPython:
360
- _LavaVuPython.Colour_swigregister(Colour)
361
- class OpenGLViewer(object):
362
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
363
- __repr__ = _swig_repr
364
- quitProgram = property(_LavaVuPython.OpenGLViewer_quitProgram_get, _LavaVuPython.OpenGLViewer_quitProgram_set)
365
- isopen = property(_LavaVuPython.OpenGLViewer_isopen_get, _LavaVuPython.OpenGLViewer_isopen_set)
366
- postdisplay = property(_LavaVuPython.OpenGLViewer_postdisplay_get, _LavaVuPython.OpenGLViewer_postdisplay_set)
367
- nodisplay = property(_LavaVuPython.OpenGLViewer_nodisplay_get, _LavaVuPython.OpenGLViewer_nodisplay_set)
368
- visible = property(_LavaVuPython.OpenGLViewer_visible_get, _LavaVuPython.OpenGLViewer_visible_set)
369
- width = property(_LavaVuPython.OpenGLViewer_width_get, _LavaVuPython.OpenGLViewer_width_set)
370
- height = property(_LavaVuPython.OpenGLViewer_height_get, _LavaVuPython.OpenGLViewer_height_set)
371
- timer_animate = property(_LavaVuPython.OpenGLViewer_timer_animate_get, _LavaVuPython.OpenGLViewer_timer_animate_set)
372
- output_path = property(_LavaVuPython.OpenGLViewer_output_path_get, _LavaVuPython.OpenGLViewer_output_path_set)
373
- mouseState = property(_LavaVuPython.OpenGLViewer_mouseState_get, _LavaVuPython.OpenGLViewer_mouseState_set)
374
- mouseX = property(_LavaVuPython.OpenGLViewer_mouseX_get, _LavaVuPython.OpenGLViewer_mouseX_set)
375
- mouseY = property(_LavaVuPython.OpenGLViewer_mouseY_get, _LavaVuPython.OpenGLViewer_mouseY_set)
376
- open = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_open)
377
- init = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_init)
378
- display = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_display)
379
- show = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_show)
380
- hide = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_hide)
381
- title = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_title)
382
- execute = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_execute)
383
- events = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_events)
384
- loop = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_loop)
385
- downSample = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_downSample)
386
- multiSample = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_multiSample)
387
- animateTimer = _swig_new_instance_method(_LavaVuPython.OpenGLViewer_animateTimer)
388
-
389
- def __init__(self):
390
- _LavaVuPython.OpenGLViewer_swiginit(self, _LavaVuPython.new_OpenGLViewer())
391
- __swig_destroy__ = _LavaVuPython.delete_OpenGLViewer
392
-
393
- # Register OpenGLViewer in _LavaVuPython:
394
- _LavaVuPython.OpenGLViewer_swigregister(OpenGLViewer)
395
- cvar = _LavaVuPython.cvar
396
- version = cvar.version
397
-
398
- class DrawingObject(object):
399
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
400
- __repr__ = _swig_repr
401
-
402
- def __init__(self, *args):
403
- _LavaVuPython.DrawingObject_swiginit(self, _LavaVuPython.new_DrawingObject(*args))
404
- colourMap = property(_LavaVuPython.DrawingObject_colourMap_get, _LavaVuPython.DrawingObject_colourMap_set)
405
- opacityMap = property(_LavaVuPython.DrawingObject_opacityMap_get, _LavaVuPython.DrawingObject_opacityMap_set)
406
- getColourMap = _swig_new_instance_method(_LavaVuPython.DrawingObject_getColourMap)
407
- name = _swig_new_instance_method(_LavaVuPython.DrawingObject_name)
408
- opacity = property(_LavaVuPython.DrawingObject_opacity_get, _LavaVuPython.DrawingObject_opacity_set)
409
- colour = property(_LavaVuPython.DrawingObject_colour_get, _LavaVuPython.DrawingObject_colour_set)
410
- __swig_destroy__ = _LavaVuPython.delete_DrawingObject
411
-
412
- # Register DrawingObject in _LavaVuPython:
413
- _LavaVuPython.DrawingObject_swigregister(DrawingObject)
414
- class Model(object):
415
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
416
- __repr__ = _swig_repr
417
- fignames = property(_LavaVuPython.Model_fignames_get, _LavaVuPython.Model_fignames_set)
418
- figures = property(_LavaVuPython.Model_figures_get, _LavaVuPython.Model_figures_set)
419
- figure = property(_LavaVuPython.Model_figure_get, _LavaVuPython.Model_figure_set)
420
-
421
- def __init__(self, session):
422
- _LavaVuPython.Model_swiginit(self, _LavaVuPython.new_Model(session))
423
- __swig_destroy__ = _LavaVuPython.delete_Model
424
-
425
- # Register Model in _LavaVuPython:
426
- _LavaVuPython.Model_swigregister(Model)
427
- class ColourMap(object):
428
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
429
- __repr__ = _swig_repr
430
- name = property(_LavaVuPython.ColourMap_name_get, _LavaVuPython.ColourMap_name_set)
431
-
432
- def __init__(self, *args):
433
- _LavaVuPython.ColourMap_swiginit(self, _LavaVuPython.new_ColourMap(*args))
434
- flip = _swig_new_instance_method(_LavaVuPython.ColourMap_flip)
435
- monochrome = _swig_new_instance_method(_LavaVuPython.ColourMap_monochrome)
436
- getDefaultMapNames = _swig_new_static_method(_LavaVuPython.ColourMap_getDefaultMapNames)
437
- getDefaultMap = _swig_new_static_method(_LavaVuPython.ColourMap_getDefaultMap)
438
- __swig_destroy__ = _LavaVuPython.delete_ColourMap
439
-
440
- # Register ColourMap in _LavaVuPython:
441
- _LavaVuPython.ColourMap_swigregister(ColourMap)
442
- class GeomData(object):
443
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
444
- __repr__ = _swig_repr
445
- width = property(_LavaVuPython.GeomData_width_get, _LavaVuPython.GeomData_width_set)
446
- height = property(_LavaVuPython.GeomData_height_get, _LavaVuPython.GeomData_height_set)
447
- depth = property(_LavaVuPython.GeomData_depth_get, _LavaVuPython.GeomData_depth_set)
448
- step = property(_LavaVuPython.GeomData_step_get, _LavaVuPython.GeomData_step_set)
449
- type = property(_LavaVuPython.GeomData_type_get, _LavaVuPython.GeomData_type_set)
450
-
451
- def __init__(self, draw, type):
452
- _LavaVuPython.GeomData_swiginit(self, _LavaVuPython.new_GeomData(draw, type))
453
- __swig_destroy__ = _LavaVuPython.delete_GeomData
454
-
455
- # Register GeomData in _LavaVuPython:
456
- _LavaVuPython.GeomData_swigregister(GeomData)
457
- class LavaVu(object):
458
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
459
- __repr__ = _swig_repr
460
- viewer = property(_LavaVuPython.LavaVu_viewer_get, _LavaVuPython.LavaVu_viewer_set)
461
- amodel = property(_LavaVuPython.LavaVu_amodel_get, _LavaVuPython.LavaVu_amodel_set)
462
- aview = property(_LavaVuPython.LavaVu_aview_get, _LavaVuPython.LavaVu_aview_set)
463
- aobject = property(_LavaVuPython.LavaVu_aobject_get, _LavaVuPython.LavaVu_aobject_set)
464
- binpath = property(_LavaVuPython.LavaVu_binpath_get, _LavaVuPython.LavaVu_binpath_set)
465
- unprocessed = property(_LavaVuPython.LavaVu_unprocessed_get, _LavaVuPython.LavaVu_unprocessed_set)
466
-
467
- def __init__(self, binpath, havecontext=False):
468
- _LavaVuPython.LavaVu_swiginit(self, _LavaVuPython.new_LavaVu(binpath, havecontext))
469
- __swig_destroy__ = _LavaVuPython.delete_LavaVu
470
- destroy = _swig_new_instance_method(_LavaVuPython.LavaVu_destroy)
471
- resize = _swig_new_instance_method(_LavaVuPython.LavaVu_resize)
472
- run = _swig_new_instance_method(_LavaVuPython.LavaVu_run)
473
- serialize = _swig_new_instance_method(_LavaVuPython.LavaVu_serialize)
474
- deserialize = _swig_new_instance_method(_LavaVuPython.LavaVu_deserialize)
475
- printall = _swig_new_instance_method(_LavaVuPython.LavaVu_printall)
476
- loadFile = _swig_new_instance_method(_LavaVuPython.LavaVu_loadFile)
477
- parseProperty = _swig_new_instance_method(_LavaVuPython.LavaVu_parseProperty)
478
- parseCommands = _swig_new_instance_method(_LavaVuPython.LavaVu_parseCommands)
479
- gl_version = _swig_new_instance_method(_LavaVuPython.LavaVu_gl_version)
480
- image = _swig_new_instance_method(_LavaVuPython.LavaVu_image)
481
- web = _swig_new_instance_method(_LavaVuPython.LavaVu_web)
482
- video = _swig_new_instance_method(_LavaVuPython.LavaVu_video)
483
- encodeVideo = _swig_new_instance_method(_LavaVuPython.LavaVu_encodeVideo)
484
- pauseVideo = _swig_new_instance_method(_LavaVuPython.LavaVu_pauseVideo)
485
- defaultModel = _swig_new_instance_method(_LavaVuPython.LavaVu_defaultModel)
486
- addColourMap = _swig_new_instance_method(_LavaVuPython.LavaVu_addColourMap)
487
- updateColourMap = _swig_new_instance_method(_LavaVuPython.LavaVu_updateColourMap)
488
- getColourMap = _swig_new_instance_method(_LavaVuPython.LavaVu_getColourMap)
489
- setColourMap = _swig_new_instance_method(_LavaVuPython.LavaVu_setColourMap)
490
- colourBar = _swig_new_instance_method(_LavaVuPython.LavaVu_colourBar)
491
- setState = _swig_new_instance_method(_LavaVuPython.LavaVu_setState)
492
- getState = _swig_new_instance_method(_LavaVuPython.LavaVu_getState)
493
- getTimeSteps = _swig_new_instance_method(_LavaVuPython.LavaVu_getTimeSteps)
494
- addTimeStep = _swig_new_instance_method(_LavaVuPython.LavaVu_addTimeStep)
495
- resetViews = _swig_new_instance_method(_LavaVuPython.LavaVu_resetViews)
496
- addViewport = _swig_new_instance_method(_LavaVuPython.LavaVu_addViewport)
497
- setObject = _swig_new_instance_method(_LavaVuPython.LavaVu_setObject)
498
- createObject = _swig_new_instance_method(_LavaVuPython.LavaVu_createObject)
499
- getObject = _swig_new_instance_method(_LavaVuPython.LavaVu_getObject)
500
- reloadObject = _swig_new_instance_method(_LavaVuPython.LavaVu_reloadObject)
501
- appendToObject = _swig_new_instance_method(_LavaVuPython.LavaVu_appendToObject)
502
- loadTriangles = _swig_new_instance_method(_LavaVuPython.LavaVu_loadTriangles)
503
- loadColours = _swig_new_instance_method(_LavaVuPython.LavaVu_loadColours)
504
- loadLabels = _swig_new_instance_method(_LavaVuPython.LavaVu_loadLabels)
505
- clearAll = _swig_new_instance_method(_LavaVuPython.LavaVu_clearAll)
506
- clearObject = _swig_new_instance_method(_LavaVuPython.LavaVu_clearObject)
507
- clearValues = _swig_new_instance_method(_LavaVuPython.LavaVu_clearValues)
508
- clearData = _swig_new_instance_method(_LavaVuPython.LavaVu_clearData)
509
- getObjectDataLabels = _swig_new_instance_method(_LavaVuPython.LavaVu_getObjectDataLabels)
510
- arrayUChar = _swig_new_instance_method(_LavaVuPython.LavaVu_arrayUChar)
511
- arrayUInt = _swig_new_instance_method(_LavaVuPython.LavaVu_arrayUInt)
512
- arrayFloat = _swig_new_instance_method(_LavaVuPython.LavaVu_arrayFloat)
513
- clearTexture = _swig_new_instance_method(_LavaVuPython.LavaVu_clearTexture)
514
- setTexture = _swig_new_instance_method(_LavaVuPython.LavaVu_setTexture)
515
- textureUChar = _swig_new_instance_method(_LavaVuPython.LavaVu_textureUChar)
516
- textureUInt = _swig_new_instance_method(_LavaVuPython.LavaVu_textureUInt)
517
- getGeometry = _swig_new_instance_method(_LavaVuPython.LavaVu_getGeometry)
518
- getGeometryAt = _swig_new_instance_method(_LavaVuPython.LavaVu_getGeometryAt)
519
- getBoundingBox = _swig_new_instance_method(_LavaVuPython.LavaVu_getBoundingBox)
520
- geometryArrayUChar = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayUChar)
521
- geometryArrayUInt = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayUInt)
522
- geometryArrayFloat = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayFloat)
523
- colourArrayFloat = _swig_new_instance_method(_LavaVuPython.LavaVu_colourArrayFloat)
524
- geometryArrayViewFloat = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayViewFloat)
525
- geometryArrayViewUInt = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayViewUInt)
526
- geometryArrayViewUChar = _swig_new_instance_method(_LavaVuPython.LavaVu_geometryArrayViewUChar)
527
- imageBuffer = _swig_new_instance_method(_LavaVuPython.LavaVu_imageBuffer)
528
- imageFromFile = _swig_new_instance_method(_LavaVuPython.LavaVu_imageFromFile)
529
- imageJPEG = _swig_new_instance_method(_LavaVuPython.LavaVu_imageJPEG)
530
- imagePNG = _swig_new_instance_method(_LavaVuPython.LavaVu_imagePNG)
531
- contour = _swig_new_instance_method(_LavaVuPython.LavaVu_contour)
532
- isoSurface = _swig_new_instance_method(_LavaVuPython.LavaVu_isoSurface)
533
- update = _swig_new_instance_method(_LavaVuPython.LavaVu_update)
534
- close = _swig_new_instance_method(_LavaVuPython.LavaVu_close)
535
- imageArray = _swig_new_instance_method(_LavaVuPython.LavaVu_imageArray)
536
- imageDiff = _swig_new_instance_method(_LavaVuPython.LavaVu_imageDiff)
537
- queueCommands = _swig_new_instance_method(_LavaVuPython.LavaVu_queueCommands)
538
- helpCommand = _swig_new_instance_method(_LavaVuPython.LavaVu_helpCommand)
539
- commandList = _swig_new_instance_method(_LavaVuPython.LavaVu_commandList)
540
- propertyList = _swig_new_instance_method(_LavaVuPython.LavaVu_propertyList)
541
-
542
- # Register LavaVu in _LavaVuPython:
543
- _LavaVuPython.LavaVu_swigregister(LavaVu)
544
- rawImageWrite = _LavaVuPython.rawImageWrite
545
- class VideoEncoder(object):
546
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
547
- __repr__ = _swig_repr
548
- filename = property(_LavaVuPython.VideoEncoder_filename_get, _LavaVuPython.VideoEncoder_filename_set)
549
-
550
- def __init__(self, fn, fps, quality=3):
551
- _LavaVuPython.VideoEncoder_swiginit(self, _LavaVuPython.new_VideoEncoder(fn, fps, quality))
552
- __swig_destroy__ = _LavaVuPython.delete_VideoEncoder
553
- open = _swig_new_instance_method(_LavaVuPython.VideoEncoder_open)
554
- close = _swig_new_instance_method(_LavaVuPython.VideoEncoder_close)
555
- resize = _swig_new_instance_method(_LavaVuPython.VideoEncoder_resize)
556
- display = _swig_new_instance_method(_LavaVuPython.VideoEncoder_display)
557
- copyframe = _swig_new_instance_method(_LavaVuPython.VideoEncoder_copyframe)
558
-
559
- # Register VideoEncoder in _LavaVuPython:
560
- _LavaVuPython.VideoEncoder_swigregister(VideoEncoder)
561
-