Skip to content

Decoupling trame-slicer core logic from Vue-based UI for React/wslink integration #59

@hieund4438

Description

@hieund4438

I am developing a medical imaging application using React (likely OHIF viewer) for the frontend and a Python (VTK) backend. Currently, I am using wslink library (https://github.com/Kitware/wslink) to establish a WebSocket connection and vtkRemoteView (from vtk.js) to render the server-side frames.

I am very interested in the slicing capabilities of trame-slicer, but our project architecture does not use Vue.js. I want to leverage the robust slicing and volume rendering logic of trame-slicer as a "headless" service or a core library that I can communicate with via custom wslink protocols.

Current Setup
Frontend: React, vtk.js, wslink.

Backend: Python VTK

Reference: Following the vtk.js RemoteView example.

The Problem
The current trame-slicer implementation seems tightly coupled with Trame's UI components (which are built on Vue). This makes it difficult to extract just the VTK pipeline logic (the "Core") to use in a custom protocol setup where the UI state is managed by React.

Questions
Is there an existing way to initialize the trame-slicer engine without triggering the UI generation?

Are there plans to modularize trame-slicer so the VTK pipeline can be used independently of the Trame web components?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions