Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions peacock_trame/app/exodusViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .core.common.utils import throttled_run
from .core.exodusViewer.time_step import TimeStepController
import ptc.vue2 as ptc_vue2

try:
from paraview import simple
Expand Down Expand Up @@ -177,13 +178,23 @@ def get_ui(self):
)
self.ctrl.update_exodus_view = renderView.update
self.ctrl.reset_exodus_view_camera = renderView.reset_camera
self.ctrl.view_reset_camera = renderView.reset_camera
self.ctrl.on_data_change.add(self.ctrl.update_exodus_view)
self.ctrl.view_update = self.ctrl.update_exodus_view

# ex2 timestep controller
with html.Div(
style="position: absolute; top: 0px; left: 0px; display: flex; z-index: 1;",
):
self.time_ctrl.get_ui()

with html.Div(
style="position: absolute; top: 0px; right: 20px; display: flex; align-items: center;"
):
with html.Div(style="top: 0.5rem; position: relative;"):
ptc_vue2.PalettePicker()
ptc_vue2.ResetCameraButtons(rounded="s")

# block, boundary, nodeset selector
with html.Div(
style="position: absolute; bottom: 0px; left: 0px; display: flex; z-index: 1;",
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ install_requires =
trame-vtk==2.10.0
trame-xterm==0.2.1
trame-simput==2.6.2
paraview-trame-components==0.15.0
pyaml
numpy # come with ParaView

Expand Down
Loading