Package algorithm

Class VisualizationManager

java.lang.Object
algorithm.VisualizationManager

public class VisualizationManager extends Object
This class is used to manage the 3D-Visualization.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Determines how much the camera moves
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Select a .mps file created from MITK to add two targets to the visualisation One is the entry point and the other represents the target point
    Adds one or multiple stl files to the existing ones for the visualisation
    void
    Clears all stl models and paths from the visualisation
    Get all currently loaded stl models
    void
    injectStatusLabel(javafx.scene.control.Label statusLabel)
     
    void
    Loads the previously used stl files for visualisation
    void
    Helper Method used to recenter the view to its original position
    void
    This will set a flag that makes tools reload the transformation matrix from source on the next update
    void
    setMeshGroup(javafx.scene.Group meshGroup)
    Sets the reference to the MeshGroup.
    void
    setPane(javafx.scene.control.ScrollPane scrollPane)
    Sets the reference to the ScrollPane.
    void
    Adds the Nodes and Controls to the Scene
    javafx.beans.property.BooleanProperty
     
    void
    Visualizes the tracking tools by updating their position and rotation according to the tracking data read from CSV or IGT connection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CAM_MOVEMENT

      public static final int CAM_MOVEMENT
      Determines how much the camera moves
      See Also:
  • Constructor Details

    • VisualizationManager

      public VisualizationManager()
  • Method Details

    • injectStatusLabel

      public void injectStatusLabel(javafx.scene.control.Label statusLabel)
    • getSTLModels

      public ArrayList<STLModel> getSTLModels()
      Get all currently loaded stl models
      Returns:
      ArrayList of stl models
    • setPane

      public void setPane(javafx.scene.control.ScrollPane scrollPane)
      Sets the reference to the ScrollPane.
      Parameters:
      scrollPane - new scrollPane
    • setMeshGroup

      public void setMeshGroup(javafx.scene.Group meshGroup)
      Sets the reference to the MeshGroup.
      Parameters:
      meshGroup - new meshGroup
    • visualizeCone

      public javafx.beans.property.BooleanProperty visualizeCone()
    • loadLastSTLModels

      public void loadLastSTLModels()
      Loads the previously used stl files for visualisation
    • clearSTLModelsAndPaths

      public void clearSTLModelsAndPaths()
      Clears all stl models and paths from the visualisation
    • addSTLModels

      public List<File> addSTLModels()
      Adds one or multiple stl files to the existing ones for the visualisation
      Returns:
      a string array of the loaded stl file names
    • addPathVisualisation

      public void addPathVisualisation()
      Select a .mps file created from MITK to add two targets to the visualisation One is the entry point and the other represents the target point
    • visualizeTracking

      public void visualizeTracking()
      Visualizes the tracking tools by updating their position and rotation according to the tracking data read from CSV or IGT connection
    • scheduleReloadMatrix

      public void scheduleReloadMatrix()
      This will set a flag that makes tools reload the transformation matrix from source on the next update
    • showFigure

      public void showFigure()
      Adds the Nodes and Controls to the Scene
    • resetView

      public void resetView()
      Helper Method used to recenter the view to its original position