Package algorithm
Class VisualizationManager
java.lang.Object
algorithm.VisualizationManager
This class is used to manage the 3D-Visualization.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Determines how much the camera moves -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 pointAdds one or multiple stl files to the existing ones for the visualisationvoid
Clears all stl models and paths from the visualisationGet all currently loaded stl modelsvoid
injectStatusLabel
(javafx.scene.control.Label statusLabel) void
Loads the previously used stl files for visualisationvoid
Helper Method used to recenter the view to its original positionvoid
This will set a flag that makes tools reload the transformation matrix from source on the next updatevoid
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 Scenejavafx.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
-
Field Details
-
CAM_MOVEMENT
public static final int CAM_MOVEMENTDetermines how much the camera moves- See Also:
-
-
Constructor Details
-
VisualizationManager
public VisualizationManager()
-
-
Method Details
-
injectStatusLabel
public void injectStatusLabel(javafx.scene.control.Label statusLabel) -
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
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
-