Documentation & API Reference

Master the SciViz WebGL environment, manipulate layouts, and script advanced physics via Python.

Contents

Workspace Basics

Master the SciViz multi-panel environment, manipulate viewport layouts, and manage the layer hierarchy graph.

Viewport Layouts & Window Management

SciViz employs a highly customizable, multi-viewport layout system modeled after professional post-processing suites (e.g., ParaView, EnSight), allowing simultaneous comparative analysis of complex datasets.

  • View Layouts: Use the layout selector in the top toolbar to switch between Single (1x1), Double (1x2 or 2x1), or Triple (1 main + 2 secondary) split configurations.
  • Split Orientation: For the Double layout, you can toggle between vertical and horizontal splits. For the Triple layout, the primary viewport can be docked to the left, top, or bottom.
  • Dynamic Resizing: Grab the interactive layout borders (splitters) separating viewports to adjust the screen real estate ratio dynamically. The UI enforces a minimum viewport size to prevent collapse.
  • Swap Viewports: Double-click anywhere within a subviewport's boundary to swap it with the main viewport. This allows you to quickly bring a secondary view into focus.

Camera & 3D Navigation

The WebGL 3D camera utilizes an ArcBall (trackball) interaction model, standard in scientific visualization environments.

  • Orbit/Rotate: Click and drag with the Left Mouse Button (LMB). The camera orbits around the designated focal point.
  • Pan/Translate: Click and drag with the Right Mouse Button (RMB) or Middle Mouse Button (MMB). Holding Shift + LMB also performs a pan.
  • Zoom/Dolly: Use the scroll wheel to zoom in and out. Alternatively, hold Ctrl/Cmd + LMB and drag vertically.
  • Reset Camera: Use the camera reset button in the viewport overlay to instantly re-center the bounding box of the active datasets in the frustum.
  • Projection Modes: Switch between Perspective (natural depth) and Orthographic (parallel projection, ideal for 2D slices or exact measurements) via the viewport settings.

Pipeline Browser & Layer Management

The Pipeline Browser (right sidebar) manages the directed acyclic graph (DAG) of your scene, showing the hierarchical relationship between source datasets and applied filters.

  • Visibility Toggling: Click the 'Eye' icon next to any node to instantly show or hide its rendering actor in the active viewport.
  • Active Layer Selection: Clicking a layer name sets it as the "Active" layer. The Properties panel below will automatically update to show rendering and data properties specific to this layer.
  • Renaming: Double-click on any layer's current name to assign a custom label, aiding organization in complex scenes.
  • Memory Management: Click the Trash icon to delete a node. Note: Deleting a source node will also recursively delete all downstream filters attached to it, freeing GPU buffers and memory.

Data Loading & Properties

SciViz supports loading local data securely by uploading it to the backend server, where geometry generation and topological parsing are handled efficiently before being streamed to the WebGL viewer.

  • Supported Formats: Drag and drop standard formats such as VTK, VTP, STL, OBJ, and specialized formats (PDB/mmCIF for Bio, NetCDF for Geo) directly into the viewport.
  • Properties Panel: Located below the Pipeline Browser, this panel exposes controls for the Active Layer. You can adjust Representation (Surface, Wireframe, Points), Opacity, Color Mapping (Scalar fields), and Edge visibility here.

State Management (.sviz Projects)

Scientific visualizations often require meticulous tweaking. SciViz allows you to serialize the entire application state.

  • Saving State: Export your workspace as a .sviz project file. This archives all loaded geometries, pipeline hierarchies, active filters, camera matrices, and applied colormaps into a compressed payload.
  • Reproducibility: Sharing a .sviz file allows collaborators to instantly reconstruct your exact visualization state locally in their browser, ensuring 1:1 reproducibility without sharing massive raw dataset files.

Jailed Server Storage & Quotas

Enterprise users receive allocated private server storage isolated strictly to their account using PostgreSQL Row Level Security (RLS) and realpath jail containment.

  • Zero Data Leakage: Each tenant's datasets and statefiles are housed under app_data/userdata/{user_id}/{endpoint}/, guarded against path traversal.
  • Live Storage Quota: The File Loader Modal displays your current storage utilization and allocated limit (default 500 MB base tier).
  • Direct Server Loading: Switch to the Server Files & Jobs tab in the loader modal to restore previous simulation runs, statefiles, or batch-load datasets.

Background Job Detachment & Autonomous Recovery

When running long computations (e.g. molecular simulations, ANM normal mode analysis, or seismic parsing), you do not need to keep the browser tab open.

  • Departure Guard: If you navigate or close the page while an operation is in flight, SciViz prompts you to Send Job to Server.
  • Autonomous State Archiving: The server executes the calculation asynchronously and, upon completion, synthesizes a complete .sviz workspace file saved directly to your server storage.
  • Seamless Auto-Resume: When you return to the endpoint, SciViz displays a floating restore prompt allowing you to resume the finished job with one click.

Status Indicators & System LEDs

The workspace status indicators provide real-time diagnostic telemetry on network connectivity, server synchronization, and GPU rendering pipelines.

🌐 Backend Connectivity LED

This LED monitors the real-time websocket and REST connections between SciViz clients and remote processing nodes.

Green
Connected and ready for compute requests.
Red
Connection lost or server endpoints unreachable.

⚙️ Operation Engine LED

Indicates active asynchronous processing. When spinning, complex background data pipelines are updating models.

Blue (Breathe)
Initializing rendering engine.
Purple (Breathe)
Uploading structure geometry/data.
Cyan (Breathe)
Pre-caching temporal timeline frames.
Blue (Breathe)
Fetching heavily encoded PDB repos.
Green (Breathe)
Generating & validating export payloads.
Amber (Breathe)
Computing Normal Mode Analysis physics.