ansys-tools-visualization-interface 0.9.2__py3-none-any.whl → 0.10.0__py3-none-any.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.
- ansys/tools/visualization_interface/backends/pyvista/pyvista.py +7 -5
- ansys/tools/visualization_interface/backends/pyvista/widgets/button.py +3 -4
- ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py +4 -5
- ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py +5 -5
- {ansys_tools_visualization_interface-0.9.2.dist-info → ansys_tools_visualization_interface-0.10.0.dist-info}/METADATA +9 -6
- {ansys_tools_visualization_interface-0.9.2.dist-info → ansys_tools_visualization_interface-0.10.0.dist-info}/RECORD +8 -8
- {ansys_tools_visualization_interface-0.9.2.dist-info → ansys_tools_visualization_interface-0.10.0.dist-info}/LICENSE +0 -0
- {ansys_tools_visualization_interface-0.9.2.dist-info → ansys_tools_visualization_interface-0.10.0.dist-info}/WHEEL +0 -0
@@ -412,7 +412,8 @@ class PyVistaBackendInterface(BaseBackend):
|
|
412
412
|
view_2d: Dict = None,
|
413
413
|
name_filter: str = None,
|
414
414
|
dark_mode: bool = False,
|
415
|
-
|
415
|
+
plotting_options: Optional[Dict[str, Any]] = {},
|
416
|
+
**show_options: Dict[str, Any],
|
416
417
|
) -> List[Any]:
|
417
418
|
"""Plot and show any PyAnsys object.
|
418
419
|
|
@@ -431,9 +432,11 @@ class PyVistaBackendInterface(BaseBackend):
|
|
431
432
|
Regular expression with the desired name or names to include in the plotter.
|
432
433
|
dark_mode : bool, default: False
|
433
434
|
Whether to use dark mode for the widgets.
|
434
|
-
|
435
|
+
plotting_options : dict, default: None
|
435
436
|
Keyword arguments. For allowable keyword arguments, see the
|
436
437
|
:meth:`Plotter.add_mesh <pyvista.Plotter.add_mesh>` method.
|
438
|
+
**show_options : Any
|
439
|
+
Additional keyword arguments for the show method.
|
437
440
|
|
438
441
|
Returns
|
439
442
|
-------
|
@@ -476,7 +479,7 @@ class PyVistaBackendInterface(BaseBackend):
|
|
476
479
|
# Update all buttons/widgets
|
477
480
|
[widget.update() for widget in self._widgets]
|
478
481
|
|
479
|
-
self.show_plotter(screenshot, **
|
482
|
+
self.show_plotter(screenshot, **show_options)
|
480
483
|
|
481
484
|
picked_objects_list = []
|
482
485
|
if isinstance(plottable_object, list):
|
@@ -512,8 +515,7 @@ class PyVistaBackendInterface(BaseBackend):
|
|
512
515
|
visualizer.set_scene(self._pl)
|
513
516
|
visualizer.show()
|
514
517
|
else:
|
515
|
-
|
516
|
-
self.pv_interface.show(screenshot=screenshot, jupyter_backend=jupyter_backend)
|
518
|
+
self.pv_interface.show(screenshot=screenshot, **kwargs)
|
517
519
|
|
518
520
|
pv.OFF_SCREEN = self._pv_off_screen_original
|
519
521
|
|
@@ -33,10 +33,6 @@ from ansys.tools.visualization_interface.backends.pyvista.widgets.widget import
|
|
33
33
|
class Button(PlotterWidget):
|
34
34
|
"""Provides the abstract class for implementing buttons in PyAnsys.
|
35
35
|
|
36
|
-
Notes
|
37
|
-
-----
|
38
|
-
This class wraps the PyVista ``add_checkbox_button_widget()`` method.
|
39
|
-
|
40
36
|
Parameters
|
41
37
|
----------
|
42
38
|
plotter : Plotter
|
@@ -46,6 +42,9 @@ class Button(PlotterWidget):
|
|
46
42
|
dark_mode : bool, optional
|
47
43
|
Whether to activate the dark mode or not.
|
48
44
|
|
45
|
+
Notes
|
46
|
+
-----
|
47
|
+
This class wraps the PyVista ``add_checkbox_button_widget()`` method.
|
49
48
|
"""
|
50
49
|
|
51
50
|
def __init__(self, plotter: Plotter, button_config: tuple, dark_mode: bool = False) -> None:
|
@@ -56,16 +56,15 @@ class Ruler(PlotterWidget):
|
|
56
56
|
def callback(self, state: bool) -> None:
|
57
57
|
"""Remove or add the ruler widget actor upon click.
|
58
58
|
|
59
|
-
Notes
|
60
|
-
-----
|
61
|
-
This method provides a callback function for the ruler widet.
|
62
|
-
It is called every time the ruler widget is clicked.
|
63
|
-
|
64
59
|
Parameters
|
65
60
|
----------
|
66
61
|
state : bool
|
67
62
|
Whether the state of the button, which is inherited from PyVista, is ``True``.
|
68
63
|
|
64
|
+
Notes
|
65
|
+
-----
|
66
|
+
This method provides a callback function for the ruler widet.
|
67
|
+
It is called every time the ruler widget is clicked.
|
69
68
|
"""
|
70
69
|
if not state and self._actor:
|
71
70
|
self.plotter.remove_actor(self._actor)
|
@@ -56,16 +56,16 @@ class ScreenshotButton(PlotterWidget):
|
|
56
56
|
def callback(self, state: bool) -> None:
|
57
57
|
"""Remove or add the screenshot widget actor upon click.
|
58
58
|
|
59
|
-
Notes
|
60
|
-
-----
|
61
|
-
This method provides a callback function for the screenshot widget.
|
62
|
-
It is called every time the screenshot widget is clicked.
|
63
|
-
|
64
59
|
Parameters
|
65
60
|
----------
|
66
61
|
state : bool
|
67
62
|
Whether the state of the button, which is inherited from PyVista, is ``True``.
|
68
63
|
|
64
|
+
|
65
|
+
Notes
|
66
|
+
-----
|
67
|
+
This method provides a callback function for the screenshot widget.
|
68
|
+
It is called every time the screenshot widget is clicked.
|
69
69
|
"""
|
70
70
|
self.plotter._pl.scene.screenshot("screenshot.png")
|
71
71
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: ansys-tools-visualization-interface
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.10.0
|
4
4
|
Summary: A Python visualization interface for PyAnsys libraries
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
6
6
|
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
@@ -14,14 +14,16 @@ Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
17
18
|
Requires-Dist: pyvista >= 0.43.0,<1
|
18
19
|
Requires-Dist: websockets >= 12.0,< 16
|
19
20
|
Requires-Dist: trame >= 3.6.0,<4
|
20
21
|
Requires-Dist: trame-vtk >= 2.8.7,<3,!=2.8.16
|
21
22
|
Requires-Dist: trame-vuetify >= 2.4.3,< 4
|
23
|
+
Requires-Dist: pyvista==0.45.2 ; extra == "doc"
|
22
24
|
Requires-Dist: ansys-sphinx-theme==1.3.2 ; extra == "doc"
|
23
25
|
Requires-Dist: jupyter_sphinx==0.5.3 ; extra == "doc"
|
24
|
-
Requires-Dist: jupytext==1.
|
26
|
+
Requires-Dist: jupytext==1.17.2 ; extra == "doc"
|
25
27
|
Requires-Dist: nbsphinx==0.9.6 ; extra == "doc"
|
26
28
|
Requires-Dist: numpydoc==1.8.0 ; extra == "doc"
|
27
29
|
Requires-Dist: sphinx==8.2.3 ; extra == "doc"
|
@@ -30,13 +32,14 @@ Requires-Dist: sphinx-copybutton==0.5.2 ; extra == "doc"
|
|
30
32
|
Requires-Dist: sphinx_design==0.6.1 ; extra == "doc"
|
31
33
|
Requires-Dist: sphinx-gallery==0.19.0 ; extra == "doc"
|
32
34
|
Requires-Dist: sphinx-jinja==2.0.2 ; extra == "doc"
|
33
|
-
Requires-Dist: ansys-fluent-core==0.
|
35
|
+
Requires-Dist: ansys-fluent-core==0.32.1 ; extra == "doc"
|
34
36
|
Requires-Dist: pyside6 >= 6.8.0,<7 ; extra == "pyvistaqt"
|
35
37
|
Requires-Dist: pyvistaqt >= 0.11.1,<1 ; extra == "pyvistaqt"
|
36
|
-
Requires-Dist: pytest==8.
|
38
|
+
Requires-Dist: pytest==8.4.0 ; extra == "tests"
|
39
|
+
Requires-Dist: pyvista==0.45.2 ; extra == "tests"
|
37
40
|
Requires-Dist: pytest-pyvista==0.1.9 ; extra == "tests"
|
38
|
-
Requires-Dist: pytest-cov==6.
|
39
|
-
Requires-Dist: pyside6==6.9.
|
41
|
+
Requires-Dist: pytest-cov==6.2.1 ; extra == "tests"
|
42
|
+
Requires-Dist: pyside6==6.9.1 ; extra == "tests"
|
40
43
|
Project-URL: Discussions, https://github.com/ansys/ansys-tools-visualization-interface/discussions
|
41
44
|
Project-URL: Documentation, https://visualization-interface.tools.docs.pyansys.com/
|
42
45
|
Project-URL: Issues, https://github.com/ansys/ansys-tools-visualization-interface/issues
|
@@ -3,19 +3,19 @@ ansys/tools/visualization_interface/plotter.py,sha256=Q2WCPzq5w5bz84cEeknSGUqILY
|
|
3
3
|
ansys/tools/visualization_interface/backends/__init__.py,sha256=QrhkJRa-r6kqBqdw7FVPE4eofL4RGC5FcWM20Pgjcr0,1180
|
4
4
|
ansys/tools/visualization_interface/backends/_base.py,sha256=pR_uqDCngqpuPsoA5qPI4Ul8kPqB_nMGZTCIbcjPBBM,1871
|
5
5
|
ansys/tools/visualization_interface/backends/pyvista/__init__.py,sha256=V7w7QRUGTxmyl4eW5uZeY-mBjrrz9cN-T8HeS2qOC3E,1320
|
6
|
-
ansys/tools/visualization_interface/backends/pyvista/pyvista.py,sha256=
|
6
|
+
ansys/tools/visualization_interface/backends/pyvista/pyvista.py,sha256=vQQFR-bK2bXAziBTPk8dm75I1EfH6h_YrJTxnvTPs08,26049
|
7
7
|
ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py,sha256=H5h8aoamLhygHjOfLzxQlf_NTXxzdZDNzGBw5F2R34k,15629
|
8
8
|
ansys/tools/visualization_interface/backends/pyvista/trame_local.py,sha256=6jIDMqJhZGUPru3ebfKflW9qIHOikUl5zrLGFsMCGP0,2996
|
9
9
|
ansys/tools/visualization_interface/backends/pyvista/trame_remote.py,sha256=LxiVbwyvKoBiOX5wj_U4oZ7E-i-_gD3z7H2ZMC6UiSU,2834
|
10
10
|
ansys/tools/visualization_interface/backends/pyvista/trame_service.py,sha256=eseK01KmnXherN-sMyv5XSmkLeD_7mPd32BFT97K3K0,5404
|
11
11
|
ansys/tools/visualization_interface/backends/pyvista/widgets/__init__.py,sha256=gxGGvlW2dn3jASvH1KOhMXRH2WaY0bgXjsfuuVRX6gs,1339
|
12
|
-
ansys/tools/visualization_interface/backends/pyvista/widgets/button.py,sha256=
|
12
|
+
ansys/tools/visualization_interface/backends/pyvista/widgets/button.py,sha256=n4cMOTNi5Uu-nhpLMEEDrzUqUuja1wEcw9pvuSRrjRU,3250
|
13
13
|
ansys/tools/visualization_interface/backends/pyvista/widgets/displace_arrows.py,sha256=xJy8UQmpgK6F6AZQmM7c5JOeAfQYhRwL_OO4VUFEReM,4337
|
14
14
|
ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py,sha256=78Kb_LRKMl7YgSGN2o4_fMyRYrSV70MEpGkt19Hv2k4,3934
|
15
15
|
ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py,sha256=6ilSFoJxnZOy0jVIEBo5Ca3BWLKp2_ImnJN4M6QR50Y,4266
|
16
16
|
ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py,sha256=jRbqDxeIREJlP5iLRzfqQjINBERVbtnlpMo1k4QYHdA,5155
|
17
|
-
ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py,sha256=
|
18
|
-
ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py,sha256=
|
17
|
+
ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py,sha256=E1H0_b-zbF6IAXZrXSQ_FQCt8EJIuYHgA66dXyAf9y0,3865
|
18
|
+
ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py,sha256=ziZByCihKWG20Bwl5XESwYukviCvb36w-keRm_R0pxk,3375
|
19
19
|
ansys/tools/visualization_interface/backends/pyvista/widgets/view_button.py,sha256=8QvWoTXcCrRMtn3X_-dFvjksypNWq7baIXDoGa-nTF0,3444
|
20
20
|
ansys/tools/visualization_interface/backends/pyvista/widgets/widget.py,sha256=M15gpahjGoZaCKwES0Jcgua5-Y3jukwlw5hx46lvqU0,2311
|
21
21
|
ansys/tools/visualization_interface/backends/pyvista/widgets/_images/+xy.png,sha256=aPjLBmnKYIBmp_FKdDSp9M-NQuxnJ_VyMxZ6dqd1j6c,499
|
@@ -59,7 +59,7 @@ ansys/tools/visualization_interface/utils/__init__.py,sha256=KMyCn7hV7fzhvMntMqH
|
|
59
59
|
ansys/tools/visualization_interface/utils/clip_plane.py,sha256=Mbavan9rZu86hgoBunEwWfh6Ts2mQJUCzUw9jEifrDU,2911
|
60
60
|
ansys/tools/visualization_interface/utils/color.py,sha256=OPOO87b4bE00aRR014ob__82_rllLKu86kI1hQGmxFc,1641
|
61
61
|
ansys/tools/visualization_interface/utils/logger.py,sha256=SRw6fcjly5dabAn4xRLYoug3WBoGulX9znSopCv4jA4,3825
|
62
|
-
ansys_tools_visualization_interface-0.
|
63
|
-
ansys_tools_visualization_interface-0.
|
64
|
-
ansys_tools_visualization_interface-0.
|
65
|
-
ansys_tools_visualization_interface-0.
|
62
|
+
ansys_tools_visualization_interface-0.10.0.dist-info/LICENSE,sha256=hG7YAylqSVoTbB2JgP7Euy_f2WZRx8zwJ_x4yMttDTg,1098
|
63
|
+
ansys_tools_visualization_interface-0.10.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
64
|
+
ansys_tools_visualization_interface-0.10.0.dist-info/METADATA,sha256=3X3IxtG0mr3vuWyvHZK5gEVhn634aDnv4tPvdlMmDDU,7410
|
65
|
+
ansys_tools_visualization_interface-0.10.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|