lavavu-osmesa 1.9.9__cp313-cp313-manylinux_2_28_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.
Files changed (65) hide show
  1. lavavu/LavaVuPython.py +561 -0
  2. lavavu/_LavaVuPython.cpython-313-x86_64-linux-gnu.so +0 -0
  3. lavavu/__init__.py +15 -0
  4. lavavu/__main__.py +12 -0
  5. lavavu/amalgamate.py +15 -0
  6. lavavu/aserver.py +359 -0
  7. lavavu/control.py +1731 -0
  8. lavavu/convert.py +888 -0
  9. lavavu/dict.json +2528 -0
  10. lavavu/font.bin +0 -0
  11. lavavu/html/LavaVu-amalgamated.css +282 -0
  12. lavavu/html/OK-min.js +99 -0
  13. lavavu/html/baseviewer.js +307 -0
  14. lavavu/html/control.css +104 -0
  15. lavavu/html/control.js +340 -0
  16. lavavu/html/dat-gui-light-theme.css +68 -0
  17. lavavu/html/dat.gui.min.js +2 -0
  18. lavavu/html/draw.js +2259 -0
  19. lavavu/html/drawbox.js +1039 -0
  20. lavavu/html/emscripten-template.js +184 -0
  21. lavavu/html/emscripten.css +92 -0
  22. lavavu/html/favicon.ico +0 -0
  23. lavavu/html/gl-matrix-min.js +47 -0
  24. lavavu/html/gui.css +25 -0
  25. lavavu/html/menu.js +615 -0
  26. lavavu/html/server.js +226 -0
  27. lavavu/html/stats.min.js +5 -0
  28. lavavu/html/styles.css +58 -0
  29. lavavu/html/webview-template.html +43 -0
  30. lavavu/html/webview.html +43 -0
  31. lavavu/lavavu.py +6200 -0
  32. lavavu/osmesa/LavaVuPython.py +561 -0
  33. lavavu/osmesa/_LavaVuPython.cpython-313-x86_64-linux-gnu.so +0 -0
  34. lavavu/osmesa/__init__.py +0 -0
  35. lavavu/points.py +191 -0
  36. lavavu/server.py +343 -0
  37. lavavu/shaders/default.frag +14 -0
  38. lavavu/shaders/default.vert +17 -0
  39. lavavu/shaders/fontShader.frag +20 -0
  40. lavavu/shaders/fontShader.vert +18 -0
  41. lavavu/shaders/lineShader.frag +39 -0
  42. lavavu/shaders/lineShader.vert +26 -0
  43. lavavu/shaders/pointShader.frag +127 -0
  44. lavavu/shaders/pointShader.vert +53 -0
  45. lavavu/shaders/triShader.frag +153 -0
  46. lavavu/shaders/triShader.vert +49 -0
  47. lavavu/shaders/volumeShader.frag +400 -0
  48. lavavu/shaders/volumeShader.vert +5 -0
  49. lavavu/tracers.py +207 -0
  50. lavavu/vutils.py +211 -0
  51. lavavu_osmesa-1.9.9.dist-info/METADATA +323 -0
  52. lavavu_osmesa-1.9.9.dist-info/RECORD +65 -0
  53. lavavu_osmesa-1.9.9.dist-info/WHEEL +5 -0
  54. lavavu_osmesa-1.9.9.dist-info/entry_points.txt +2 -0
  55. lavavu_osmesa-1.9.9.dist-info/licenses/LICENSE.md +179 -0
  56. lavavu_osmesa-1.9.9.dist-info/top_level.txt +1 -0
  57. lavavu_osmesa.libs/libLLVM-17-51492e70.so +0 -0
  58. lavavu_osmesa.libs/libOSMesa-f6a8f160.so.8.0.0 +0 -0
  59. lavavu_osmesa.libs/libdrm-b0291a67.so.2.4.0 +0 -0
  60. lavavu_osmesa.libs/libffi-3a37023a.so.6.0.2 +0 -0
  61. lavavu_osmesa.libs/libglapi-520b284c.so.0.0.0 +0 -0
  62. lavavu_osmesa.libs/libpcre2-8-516f4c9d.so.0.7.1 +0 -0
  63. lavavu_osmesa.libs/libselinux-d0805dcb.so.1 +0 -0
  64. lavavu_osmesa.libs/libtinfo-3a2cb85b.so.6.1 +0 -0
  65. lavavu_osmesa.libs/libzstd-76b78bac.so.1.4.4 +0 -0
lavavu/vutils.py ADDED
@@ -0,0 +1,211 @@
1
+ """
2
+ LavaVu python interface: vis utils
3
+ """
4
+ import sys
5
+ import os
6
+
7
+ def is_ipython():
8
+ """
9
+ Detects if running within IPython environment
10
+
11
+ Returns
12
+ -------
13
+ boolean
14
+ True if IPython detected
15
+ Does not necessarrily indicate running within a browser / notebook context
16
+ """
17
+ try:
18
+ if __IPYTHON__:
19
+ return True
20
+ else:
21
+ return False
22
+ except:
23
+ return False
24
+
25
+ def is_notebook():
26
+ """
27
+ Detects if running within an interactive IPython notebook environment
28
+
29
+ Returns
30
+ -------
31
+ boolean
32
+ True if IPython detected and browser/notebook display capability detected
33
+ """
34
+ if 'IPython' not in sys.modules:
35
+ # IPython hasn't been imported, definitely not
36
+ return False
37
+ try:
38
+ from IPython import get_ipython
39
+ from IPython.display import display,Image,HTML
40
+ except:
41
+ return False
42
+ # check for `kernel` attribute on the IPython instance
43
+ return getattr(get_ipython(), 'kernel', None) is not None
44
+
45
+ def getname(var):
46
+ """
47
+ Attempt to find the name of a variable from the main module namespace
48
+
49
+ Parameters
50
+ ----------
51
+ var
52
+ The variable in question
53
+
54
+ Returns
55
+ -------
56
+ name : str
57
+ Name of the variable
58
+ """
59
+ import __main__ as main_mod
60
+ for name in dir(main_mod):
61
+ val = getattr(main_mod, name)
62
+ if val is var:
63
+ return name
64
+ return None
65
+
66
+ def download(url, filename=None, overwrite=False, quiet=False):
67
+ """
68
+ Download a file from an internet URL
69
+
70
+ Parameters
71
+ ----------
72
+ url : str
73
+ URL to request the file from
74
+ filename : str
75
+ Filename to save, default is to keep the same name in current directory
76
+ overwrite : boolean
77
+ Always overwrite file if it exists, default is to never overwrite
78
+
79
+ Returns
80
+ -------
81
+ filename : str
82
+ Actual filename written to local filesystem
83
+ """
84
+ from urllib.request import urlopen, URLError, HTTPError, Request
85
+ from urllib.parse import urlparse
86
+ from urllib.parse import quote
87
+ import http.client
88
+
89
+ if filename is None:
90
+ filename = url[url.rfind("/")+1:]
91
+
92
+ if overwrite or not os.path.exists(filename):
93
+ #Encode url path
94
+ o = urlparse(url)
95
+ o = o._replace(path=quote(o.path))
96
+ url = o.geturl()
97
+ if not quiet: print("Downloading: " + filename)
98
+ try:
99
+ #Use a fake user agent, as some websites disallow python/urllib
100
+ user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7'
101
+ headers = {'User-Agent':user_agent,}
102
+ request = Request(url, None, headers)
103
+ with open(filename, "wb") as out:
104
+ try:
105
+ page = urlopen(request).read()
106
+ except (http.client.IncompleteRead) as e:
107
+ page = e.partial
108
+ out.write(page)
109
+ except (Exception) as e:
110
+ print(str(e), url)
111
+ raise(e)
112
+
113
+ else:
114
+ if not quiet:
115
+ print(filename + " exists, skipped downloading.")
116
+
117
+ return filename
118
+
119
+ def inject(html):
120
+ """
121
+ Inject HTML into a notebook cell
122
+ """
123
+ if not is_notebook():
124
+ return
125
+ from IPython.display import display,HTML
126
+ display(HTML(html))
127
+
128
+ def injectjs(js):
129
+ """
130
+ Inject Javascript into a notebook cell
131
+ """
132
+ inject('<script>' + js + '</script>')
133
+
134
+ def hidecode():
135
+ """
136
+ Allow toggle of code cells
137
+ """
138
+ inject('''<script>
139
+ var code_show = '';
140
+ var menu_edited = false;
141
+ function code_toggle() {
142
+ var code_cells = document.getElementsByClassName('CodeMirror');
143
+ if (code_cells.length == 0) return;
144
+
145
+ if (code_show == 'none')
146
+ code_show = '';
147
+ else
148
+ code_show = 'none';
149
+
150
+ for (var x=0; x<code_cells.length; x++) {
151
+ var el = code_cells[x].parentElement;
152
+ el.style.display = code_show;
153
+
154
+ //Show cell code on double click
155
+ var p = el.parentElement.parentElement;
156
+ p.ondblclick = function() {
157
+ var pel = this.parentElement;
158
+ var all = pel.getElementsByTagName('*');
159
+ for (var i = 0; i < all.length; i++) {
160
+ if (all[i].classList.contains('CodeMirror')) {
161
+ all[i].parentElement.style.display = '';
162
+ break;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ if (!menu_edited) {
170
+ menu_edited = true;
171
+ var mnu = document.getElementById("view_menu");
172
+ console.log(mnu)
173
+ if (mnu) {
174
+ var element = document.createElement('li');
175
+ element.id = 'toggle_toolbar';
176
+ element.title = 'Show/Hide code cells'
177
+ element.innerHTML = "<a href='javascript:code_toggle()'>Toggle Code Cells</a>"
178
+ mnu.appendChild(element);
179
+ }
180
+ }
181
+ code_toggle();
182
+ </script>
183
+ The code for this notebook is hidden <a href="#" onclick="code_toggle()">Click here</a> to show/hide code.''')
184
+
185
+ def style(css):
186
+ """
187
+ Inject stylesheet
188
+ """
189
+ inject("<style>" + css + "</style>")
190
+
191
+ def cellstyle(css):
192
+ """
193
+ Override the notebook cell styles
194
+ """
195
+ style("""
196
+ div.container {{
197
+ {css}
198
+ }}
199
+ """.format(css=css))
200
+
201
+ def cellwidth(width='99%'):
202
+ """
203
+ Override the notebook cell width
204
+ """
205
+ cellstyle("""
206
+ width:{width} !important;
207
+ margin-left:1%;
208
+ margin-right:auto;
209
+ """.format(width=width))
210
+
211
+
@@ -0,0 +1,323 @@
1
+ Metadata-Version: 2.4
2
+ Name: lavavu-osmesa
3
+ Version: 1.9.9
4
+ Summary: Python interface to LavaVu OpenGL 3D scientific visualisation utilities
5
+ Author-email: Owen Kaluza <owen@kaluza.id.au>
6
+ License: ### Licensing
7
+
8
+ 1) All source code is released under the LGPL-3 (See below). This covers all
9
+ files found in the `src` directory and any other material not explicitly
10
+ identified under (2) below.
11
+
12
+ 2) Notebooks, stand-alone documentation and python scripts which show how the code is used and run are licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. We offer this licence to encourage you to modify and share the examples and use them to help you in your research. Where no individual creator is identified in these files, the appropriate attribution is "The LavaVu Team". All the files covered by this license are found in the `scripts` and `notebooks` directories.
13
+
14
+ ### Copyright holders
15
+
16
+ Copyright Monash University, 2009-2017
17
+
18
+ ### License
19
+
20
+ GNU LESSER GENERAL PUBLIC LICENSE
21
+ Version 3, 29 June 2007
22
+
23
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
24
+ Everyone is permitted to copy and distribute verbatim copies
25
+ of this license document, but changing it is not allowed.
26
+
27
+
28
+ This version of the GNU Lesser General Public License incorporates
29
+ the terms and conditions of version 3 of the GNU General Public
30
+ License, supplemented by the additional permissions listed below.
31
+
32
+ 0. Additional Definitions.
33
+
34
+ As used herein, "this License" refers to version 3 of the GNU Lesser
35
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
36
+ General Public License.
37
+
38
+ "The Library" refers to a covered work governed by this License,
39
+ other than an Application or a Combined Work as defined below.
40
+
41
+ An "Application" is any work that makes use of an interface provided
42
+ by the Library, but which is not otherwise based on the Library.
43
+ Defining a subclass of a class defined by the Library is deemed a mode
44
+ of using an interface provided by the Library.
45
+
46
+ A "Combined Work" is a work produced by combining or linking an
47
+ Application with the Library. The particular version of the Library
48
+ with which the Combined Work was made is also called the "Linked
49
+ Version".
50
+
51
+ The "Minimal Corresponding Source" for a Combined Work means the
52
+ Corresponding Source for the Combined Work, excluding any source code
53
+ for portions of the Combined Work that, considered in isolation, are
54
+ based on the Application, and not on the Linked Version.
55
+
56
+ The "Corresponding Application Code" for a Combined Work means the
57
+ object code and/or source code for the Application, including any data
58
+ and utility programs needed for reproducing the Combined Work from the
59
+ Application, but excluding the System Libraries of the Combined Work.
60
+
61
+ 1. Exception to Section 3 of the GNU GPL.
62
+
63
+ You may convey a covered work under sections 3 and 4 of this License
64
+ without being bound by section 3 of the GNU GPL.
65
+
66
+ 2. Conveying Modified Versions.
67
+
68
+ If you modify a copy of the Library, and, in your modifications, a
69
+ facility refers to a function or data to be supplied by an Application
70
+ that uses the facility (other than as an argument passed when the
71
+ facility is invoked), then you may convey a copy of the modified
72
+ version:
73
+
74
+ a) under this License, provided that you make a good faith effort to
75
+ ensure that, in the event an Application does not supply the
76
+ function or data, the facility still operates, and performs
77
+ whatever part of its purpose remains meaningful, or
78
+
79
+ b) under the GNU GPL, with none of the additional permissions of
80
+ this License applicable to that copy.
81
+
82
+ 3. Object Code Incorporating Material from Library Header Files.
83
+
84
+ The object code form of an Application may incorporate material from
85
+ a header file that is part of the Library. You may convey such object
86
+ code under terms of your choice, provided that, if the incorporated
87
+ material is not limited to numerical parameters, data structure
88
+ layouts and accessors, or small macros, inline functions and templates
89
+ (ten or fewer lines in length), you do both of the following:
90
+
91
+ a) Give prominent notice with each copy of the object code that the
92
+ Library is used in it and that the Library and its use are
93
+ covered by this License.
94
+
95
+ b) Accompany the object code with a copy of the GNU GPL and this license
96
+ document.
97
+
98
+ 4. Combined Works.
99
+
100
+ You may convey a Combined Work under terms of your choice that,
101
+ taken together, effectively do not restrict modification of the
102
+ portions of the Library contained in the Combined Work and reverse
103
+ engineering for debugging such modifications, if you also do each of
104
+ the following:
105
+
106
+ a) Give prominent notice with each copy of the Combined Work that
107
+ the Library is used in it and that the Library and its use are
108
+ covered by this License.
109
+
110
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
111
+ document.
112
+
113
+ c) For a Combined Work that displays copyright notices during
114
+ execution, include the copyright notice for the Library among
115
+ these notices, as well as a reference directing the user to the
116
+ copies of the GNU GPL and this license document.
117
+
118
+ d) Do one of the following:
119
+
120
+ 0) Convey the Minimal Corresponding Source under the terms of this
121
+ License, and the Corresponding Application Code in a form
122
+ suitable for, and under terms that permit, the user to
123
+ recombine or relink the Application with a modified version of
124
+ the Linked Version to produce a modified Combined Work, in the
125
+ manner specified by section 6 of the GNU GPL for conveying
126
+ Corresponding Source.
127
+
128
+ 1) Use a suitable shared library mechanism for linking with the
129
+ Library. A suitable mechanism is one that (a) uses at run time
130
+ a copy of the Library already present on the user's computer
131
+ system, and (b) will operate properly with a modified version
132
+ of the Library that is interface-compatible with the Linked
133
+ Version.
134
+
135
+ e) Provide Installation Information, but only if you would otherwise
136
+ be required to provide such information under section 6 of the
137
+ GNU GPL, and only to the extent that such information is
138
+ necessary to install and execute a modified version of the
139
+ Combined Work produced by recombining or relinking the
140
+ Application with a modified version of the Linked Version. (If
141
+ you use option 4d0, the Installation Information must accompany
142
+ the Minimal Corresponding Source and Corresponding Application
143
+ Code. If you use option 4d1, you must provide the Installation
144
+ Information in the manner specified by section 6 of the GNU GPL
145
+ for conveying Corresponding Source.)
146
+
147
+ 5. Combined Libraries.
148
+
149
+ You may place library facilities that are a work based on the
150
+ Library side by side in a single library together with other library
151
+ facilities that are not Applications and are not covered by this
152
+ License, and convey such a combined library under terms of your
153
+ choice, if you do both of the following:
154
+
155
+ a) Accompany the combined library with a copy of the same work based
156
+ on the Library, uncombined with any other library facilities,
157
+ conveyed under the terms of this License.
158
+
159
+ b) Give prominent notice with the combined library that part of it
160
+ is a work based on the Library, and explaining where to find the
161
+ accompanying uncombined form of the same work.
162
+
163
+ 6. Revised Versions of the GNU Lesser General Public License.
164
+
165
+ The Free Software Foundation may publish revised and/or new versions
166
+ of the GNU Lesser General Public License from time to time. Such new
167
+ versions will be similar in spirit to the present version, but may
168
+ differ in detail to address new problems or concerns.
169
+
170
+ Each version is given a distinguishing version number. If the
171
+ Library as you received it specifies that a certain numbered version
172
+ of the GNU Lesser General Public License "or any later version"
173
+ applies to it, you have the option of following the terms and
174
+ conditions either of that published version or of any later version
175
+ published by the Free Software Foundation. If the Library as you
176
+ received it does not specify a version number of the GNU Lesser
177
+ General Public License, you may choose any version of the GNU Lesser
178
+ General Public License ever published by the Free Software Foundation.
179
+
180
+ If the Library as you received it specifies that a proxy can decide
181
+ whether future versions of the GNU Lesser General Public License shall
182
+ apply, that proxy's public statement of acceptance of any version is
183
+ permanent authorization for you to choose that version for the
184
+ Library.
185
+
186
+ Project-URL: Documentation, https://lavavu.github.io
187
+ Project-URL: Source, https://github.com/lavavu/LavaVu
188
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
189
+ Classifier: Intended Audience :: Developers
190
+ Classifier: Intended Audience :: Science/Research
191
+ Classifier: Operating System :: POSIX :: Linux
192
+ Classifier: Operating System :: MacOS
193
+ Classifier: Operating System :: Microsoft :: Windows
194
+ Classifier: Environment :: X11 Applications
195
+ Classifier: Environment :: MacOS X :: Cocoa
196
+ Classifier: Environment :: Win32 (MS Windows)
197
+ Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
198
+ Classifier: Topic :: Scientific/Engineering :: Visualization
199
+ Classifier: Development Status :: 5 - Production/Stable
200
+ Classifier: Programming Language :: C++
201
+ Classifier: Programming Language :: Python :: 3
202
+ Classifier: Programming Language :: Python :: 3.6
203
+ Classifier: Programming Language :: Python :: 3.7
204
+ Classifier: Programming Language :: Python :: 3.8
205
+ Classifier: Programming Language :: Python :: 3.9
206
+ Classifier: Programming Language :: Python :: 3.10
207
+ Classifier: Programming Language :: Python :: 3.11
208
+ Classifier: Programming Language :: Python :: 3.12
209
+ Classifier: Programming Language :: Python :: 3 :: Only
210
+ Classifier: Framework :: Jupyter
211
+ Classifier: Framework :: IPython
212
+ Requires-Python: >=3.5
213
+ Description-Content-Type: text/markdown
214
+ License-File: LICENSE.md
215
+ Requires-Dist: numpy>=1.18
216
+ Requires-Dist: aiohttp
217
+ Requires-Dist: jupyter_server_proxy
218
+ Requires-Dist: matplotlib
219
+ Requires-Dist: numpy-quaternion
220
+ Dynamic: license-file
221
+
222
+ ![# logo](http://owen.kaluza.id.au/Slides/2017-08-15/LavaVu.png)
223
+
224
+ [![Build Status](https://github.com/lavavu/LavaVu/workflows/Test/badge.svg)](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
225
+ [![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
+ [![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
+
229
+ A scientific visualisation tool with a python interface for fast and flexible visual analysis.
230
+
231
+ Documentation available here [LavaVu Documentation](https://lavavu.github.io/Documentation/)
232
+
233
+ ![examplevis](http://owen.kaluza.id.au/Slides/2017-08-15/combined.png)
234
+
235
+ LavaVu development is supported by [ACCESS-NRI](https://www.access-nri.org.au/).
236
+ Prior development was funded by the Monash Immersive Visualisation Plaform at [Monash eResearch](https://www.monash.edu/researchinfrastructure/eresearch) and the Simulation, Analysis & Modelling component of the [NCRIS AuScope](http://www.auscope.org.au/ncris/) capability.
237
+
238
+ The acronym stands for: lightweight, automatable visualisation and analysis viewing utility, but "lava" is also a reference to its primary application as a viewer for geophysical simulations. It was also chosen to be unique enough to find the repository with google.
239
+
240
+ The project started as a replacement rendering library for the gLucifer<sup>1</sup> framework, visualising geodynamics simulations. The new OpenGL visualisation code was re-implemented as a more general purpose visualisation tool. gLucifer continues as a set of sampling tools for Underworld simulations as part of the [Underworld2](https://github.com/underworldcode/underworld2/) code. LavaVu provides the rendering library for creating 2d and 3d visualisations to view this sampled data, inline within interactive Jupyter notebooks and offline through saved visualisation databases and images/movies.
241
+
242
+ As a standalone tool it is a scriptable 3D visualisation tool capable of producing publication quality high res images and video output from time varying data sets along with HTML5 3D visualisations in WebGL.
243
+ Rendering features include correctly and efficiently rendering large numbers of opaque and transparent points and surfaces and volume rendering by GPU ray-marching. There are also features for drawing vector fields and tracers (streamlines).
244
+
245
+ Control is via python and a set of simple verbose scripting commands along with mouse/keyboard interaction.
246
+ GUI components can be generated for use from a web browser via the python "control" module and a built in web server.
247
+
248
+ Widgets for interactive use in the Jupyter notebook environment allow use for remote visualisation, eg: on supercomputing environments.
249
+
250
+ A native data format called GLDB is used to store and visualisations in a compact single file, using SQLite for storage and fast loading. A small number of other data formats are supported for import (OBJ surfaces, TIFF stacks etc).
251
+ Further data import formats are supported with python scripts, with the numpy interface allowing rapid loading and manipulation of data.
252
+
253
+ ### This repository ###
254
+
255
+ This is the public source code repository for all development on the project.
256
+ Development happens in the "master" branch with stable releases tagged, so if you just check out master, be aware that things can be unstable or broken from time to time.
257
+
258
+ ### How do I get set up? ###
259
+
260
+ It's now in the python package index, so you can install with *pip*:
261
+
262
+ ```
263
+ python -m pip install lavavu
264
+ ```
265
+
266
+ > Currently binary wheels are provided for Linux x86_64, MacOS x86_64 and ARM64 and Windows x86_64.
267
+
268
+ To try it out:
269
+
270
+ ```
271
+ python
272
+ > import lavavu
273
+ > lv = lavavu.Viewer() #Create a viewer
274
+ > lv.test() #Plot some sample data
275
+ > lv.interactive() #Open an interactive viewer window
276
+ ```
277
+
278
+ Alternatively, clone this repository with *git* and build from source:
279
+
280
+ ```
281
+ git clone https://github.com/lavavu/LavaVu
282
+ cd LavaVu
283
+ python -m pip install .
284
+ ```
285
+ or
286
+ ```
287
+ make -j4
288
+
289
+ ```
290
+
291
+ If all goes well the viewer will be built, try running with:
292
+ ./lavavu/LavaVu
293
+
294
+ ### Dependencies ###
295
+
296
+ * OpenGL and Zlib, present on most systems, headers may need to be installed
297
+ * To use with python requires python 3.6+ and NumPy
298
+ * For video output, requires: PyAV or for built in encoding, libavcodec, libavformat, libavutil, libswscale (from FFmpeg / libav)
299
+ * To build the python interface from source requires swig (http://www.swig.org/)
300
+
301
+ ### Who do I talk to? ###
302
+
303
+ * Report bugs/issues here on github: https://github.com/lavavu/LavaVu/issues
304
+ * Contact developer: Owen Kaluza (at) anu.edu.au
305
+
306
+ For further documentation / examples, see the online documentation
307
+ * https://lavavu.github.io/Documentation
308
+
309
+ ### Included libraries ###
310
+ In order to avoid as many external dependencies as possible, the LavaVu sources include files from the following public domain or open source libraries, many thanks to the authors for making their code available!
311
+ * SQLite3 https://www.sqlite.org
312
+ * JSON for Modern C++ https://github.com/nlohmann/json
313
+ * linalg https://github.com/sgorsten/linalg
314
+ * Tiny OBJ Loader https://github.com/syoyo/tinyobjloader
315
+ * LodePNG https://github.com/lvandeve/lodepng
316
+ * jpeg-compressor https://github.com/richgel999/jpeg-compressor
317
+ * miniz https://github.com/richgel999/miniz
318
+ * GPU Cubic B-Spline Interpolation (optional) in volume shader http://www.dannyruijters.nl/cubicinterpolation/ <sup>2</sup>
319
+ * stb_image_resize http://github.com/nothings/stb
320
+
321
+ ---
322
+ <sup>1</sup> [Stegman, D.R., Moresi, L., Turnbull, R., Giordani, J., Sunter, P., Lo, A. and S. Quenette, *gLucifer: Next Generation Visualization Framework for High performance computational geodynamics*, 2008, Visual Geosciences](http://dx.doi.org/10.1007/s10069-008-0010-2)
323
+ <sup>2</sup> [Ruijters, Daniel & ter Haar Romeny, Bart & Suetens, Paul. (2008). Efficient GPU-Based Texture Interpolation using Uniform B-Splines. J. Graphics Tools. 13. 61-69.](http://dx.doi.org/10.1080/2151237X.2008.10129269)
@@ -0,0 +1,65 @@
1
+ lavavu/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
2
+ lavavu/_LavaVuPython.cpython-313-x86_64-linux-gnu.so,sha256=7ilnT2MepbY-3fvLJhEww9f09hF5TmXS7H62WBvxuqc,73659392
3
+ lavavu/__init__.py,sha256=JroZQiUbuVN7ifixk2zNDGlyLGaM8bqfRbw4D_F9qIQ,191
4
+ lavavu/__main__.py,sha256=EbDetijCjyoiNxmExqnDGoRVs996tSVave5DML9zuMY,235
5
+ lavavu/amalgamate.py,sha256=Xloq1IZ4VUvYiROzQtwKcQIWC65c7EZrdiGVhZdolL8,586
6
+ lavavu/aserver.py,sha256=SfFvLeDTcx1XtS8fY_HIrDmh3q9HicCBRSAriY5yyOE,12003
7
+ lavavu/control.py,sha256=s32rtLPXXYtxpeXd6-iHdupmaMTJ3KhK6Vq-CLjf9OQ,66755
8
+ lavavu/convert.py,sha256=tbYRjLE2l1hI4d6tsW41Lia1JXmrWSc0-JAYCiMrjys,35516
9
+ lavavu/dict.json,sha256=EcJsoHsiHDDmM8FGuBRF6eOG2nMr-Pda3sxE6v6KB80,52952
10
+ lavavu/font.bin,sha256=fvi5zkvmq6gh9v3jXedBVuxNJWKmHtbjECzv6eT9wb4,225360
11
+ lavavu/lavavu.py,sha256=v7tXwp6gQzu1F05hHyALng8FXznv4rVwdCJ3sO65O8o,221223
12
+ lavavu/points.py,sha256=jRRtA6CrcA46Y2jUJmkxnIiVoMC5a14xEd_ojhmjhz4,5871
13
+ lavavu/server.py,sha256=L-_yPCbNfwYxJCPjDQtr_lxPnDp4oMNVFyxXhBERYrQ,12468
14
+ lavavu/tracers.py,sha256=e10H8evUH7V-XUSkHjfoakaA4SfeuQ8-gWzfa86RGzQ,8997
15
+ lavavu/vutils.py,sha256=6Vm_xl1bp9mWlfk7jgLDwbRw-tdE_oxin77YkLel3_4,5437
16
+ lavavu/html/LavaVu-amalgamated.css,sha256=iE2xrxFcwmY0AcASrXxNa_RpvFEbS_YO4H5OILbPteE,8640
17
+ lavavu/html/OK-min.js,sha256=-4Gc1-dWfxP_w6r9ZOHa8u-X2BlGUoSQbX68lwCxQ3E,39115
18
+ lavavu/html/baseviewer.js,sha256=u3UhC1At6rMBKmcQ7d2DXTRxQ20wsQkc4lqA-7sL7i4,9567
19
+ lavavu/html/control.css,sha256=PVLwmle00ciEckUV5ZIRmI3Whxhl7-mlVexnyyxoU70,3259
20
+ lavavu/html/control.js,sha256=dBjFHgDal3aixVWoQuMOt_ZyhiGSAcEUFJJx9I_ndOQ,11719
21
+ lavavu/html/dat-gui-light-theme.css,sha256=uPhvJs-1IAsdxudItyOw8lZy8Hrih0zmFM1u-xRwZ-M,1142
22
+ lavavu/html/dat.gui.min.js,sha256=S4_QjoXe4IOpU0f0Sj5jEQLTWPoX9uRl1ohB91jyhuw,56992
23
+ lavavu/html/draw.js,sha256=57LlHlYRh0IvWVwzGDnF6PaCxYLzokpokLNCuZlG1ds,84108
24
+ lavavu/html/drawbox.js,sha256=SJxFSmWd7QVFI5__66hFkKzLKeqg1JPcx-gJuqdMkXw,34590
25
+ lavavu/html/emscripten-template.js,sha256=h63mzl3Lv7aQT1wMOiOucPOvHTJjpKkzsL-SFVYaZlA,6135
26
+ lavavu/html/emscripten.css,sha256=wkaIJhXaxuMchinQX9Z8c12cJomyvFQMeIZ62WGQEPQ,1813
27
+ lavavu/html/favicon.ico,sha256=OrIWwvxOSnOCuynrGRUyEIVQng0ZwA9Rrz89S9eiog0,1150
28
+ lavavu/html/gl-matrix-min.js,sha256=qfhP_dWP2bTSL1ibMX2IYw7KDXBW2IhgpfhvU9kKjhM,23143
29
+ lavavu/html/gui.css,sha256=PRDLsYwM6cgLC9zZsEAG0dnnSd-HYH6oSEfsdEBkuxk,582
30
+ lavavu/html/menu.js,sha256=42h-BCnrmEpW4IdZRKC_FIXUVczJP0sm4ciZ2ccfs-k,21630
31
+ lavavu/html/server.js,sha256=b5eNlWWbiEk90n3WARJ1Mh7lmfHM0pOtZfrrmM-wfyc,7099
32
+ lavavu/html/stats.min.js,sha256=iiwrLW4SUBhrzWrfW2VZP_9mowHX-Ks1EKORFv4EHdE,1965
33
+ lavavu/html/styles.css,sha256=68pH0fWIc0mP1puFbsIg0ET9G1ujd40Aiqfx4phuzjs,2983
34
+ lavavu/html/webview-template.html,sha256=Mh9sOd6YEOiwJa_fPwyY4s9AdCuvsaHKLwVipVk_4Go,1530
35
+ lavavu/html/webview.html,sha256=18jUDdjnNH0GEJl377vZ-2tj9AUawj3lUbveleBkguM,1521
36
+ lavavu/osmesa/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
37
+ lavavu/osmesa/_LavaVuPython.cpython-313-x86_64-linux-gnu.so,sha256=BZvoMn4UYBpTD6eVzdu657RMZmB5tNKT1f386np8p-M,73957313
38
+ lavavu/osmesa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ lavavu/shaders/default.frag,sha256=5XLYVfLwzN0sFT3aMYGmxbyquA_cmndp55YCOuy1t4E,180
40
+ lavavu/shaders/default.vert,sha256=3xKybexF39UGsESMLQQcqHlE1MgLCDEXUMLz4sr5blQ,352
41
+ lavavu/shaders/fontShader.frag,sha256=clgomy2lu-1u7w0GwFd0BNU_L3-SkYt8zv03N5ciJug,351
42
+ lavavu/shaders/fontShader.vert,sha256=yCBmRugaPUeUQUdIh62-AK_5KELiJqVS2M82iyIqPwo,290
43
+ lavavu/shaders/lineShader.frag,sha256=2PQBMcb149jVKnsBhTvU1vf94x91O0kAdOBTSs8OpGY,888
44
+ lavavu/shaders/lineShader.vert,sha256=5HDJMphXW438yMc0I2NtBdnvF6uXrOUac9hjk3S7mfk,501
45
+ lavavu/shaders/pointShader.frag,sha256=3zREBdsimlL9fAXBPjhzomGaFUWmlG_QYkhwMTVURHQ,3291
46
+ lavavu/shaders/pointShader.vert,sha256=mDMF4wAPvHELXT5rXN_QZFezxvK4q50Mdm-qZZJ7FYI,1160
47
+ lavavu/shaders/triShader.frag,sha256=SkPatq2s7Osa5o7U3lg-7We8ldY0oHZHCLuQjRY4Vgk,4601
48
+ lavavu/shaders/triShader.vert,sha256=U_G_74Jybaw20-PI-NDgaLDDfxGhURHMxdvNYXEkBjc,1156
49
+ lavavu/shaders/volumeShader.frag,sha256=Ajkpt0S2p0PpbQ2jygDnrymSgPMU2CG5xQT-dq2rr90,14194
50
+ lavavu/shaders/volumeShader.vert,sha256=uGdQjGqi7V5kE6V7nxymfugtU4cbf6u570xBy13RgmY,78
51
+ lavavu_osmesa.libs/libLLVM-17-51492e70.so,sha256=s_fu2V3vueF5k7yndLsOoMFVm3WjR4z7BrEPBATtmV8,120758265
52
+ lavavu_osmesa.libs/libOSMesa-f6a8f160.so.8.0.0,sha256=ILVf-eVIwCmg-TeCVPhv9jBkdhDAmI__hg5Vabf_020,12991561
53
+ lavavu_osmesa.libs/libdrm-b0291a67.so.2.4.0,sha256=K48ZAlNAuvSdX7i2toETxCm6886w4E17JmP2c8RM2-0,96417
54
+ lavavu_osmesa.libs/libffi-3a37023a.so.6.0.2,sha256=Q1Rq1XplFBXNFHvg92SNmTgQ0T6E9wmcqZcgOZ7DgLE,42489
55
+ lavavu_osmesa.libs/libglapi-520b284c.so.0.0.0,sha256=utRBwf4eggMdlz4mFKS5ooG5BXU70LAu60NSAoN1XMk,247921
56
+ lavavu_osmesa.libs/libpcre2-8-516f4c9d.so.0.7.1,sha256=IcbljW_oKuAVlrAwKz8qtRZxfi1sQH_iKxPSoNpzsmU,547745
57
+ lavavu_osmesa.libs/libselinux-d0805dcb.so.1,sha256=iYGaLO-LIy5-WEihMiXHpeJUXyq56DDqGU49JbpfTu4,195097
58
+ lavavu_osmesa.libs/libtinfo-3a2cb85b.so.6.1,sha256=6Co83bxdB4J-rBU5l0p_7HpGlU46RG2EDnf-LpF5kBY,194041
59
+ lavavu_osmesa.libs/libzstd-76b78bac.so.1.4.4,sha256=F2-A6yQ3AA2N0vHZe-81OfEUOcwgjjWiOnYAxk2Kflc,686073
60
+ lavavu_osmesa-1.9.9.dist-info/METADATA,sha256=2iXjcMkyZgYGwsU0iRIZ5U9oaQf_e43XnLNkUhmBIJI,17884
61
+ lavavu_osmesa-1.9.9.dist-info/WHEEL,sha256=wj07yRGyNgfcgMSZOScoYkBkpidoeAzGSgCNSOVFG2E,113
62
+ lavavu_osmesa-1.9.9.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
63
+ lavavu_osmesa-1.9.9.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
64
+ lavavu_osmesa-1.9.9.dist-info/RECORD,,
65
+ lavavu_osmesa-1.9.9.dist-info/licenses/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-manylinux_2_28_x86_64
5
+
@@ -0,0 +1,2 @@
1
+ [gui_scripts]
2
+ LavaVu = lavavu.__main__:main