Package algorithm
Class VisualizationManager
java.lang.Object
algorithm.VisualizationManager
This class is used to manage the 3D-Visualization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDetermines how much the camera moves -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSelect 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 visualisationvoidClears all stl models and paths from the visualisationGet all currently loaded stl modelsvoidinjectStatusLabel(javafx.scene.control.Label statusLabel) voidLoads the previously used stl files for visualisationvoidHelper Method used to recenter the view to its original positionvoidThis will set a flag that makes tools reload the transformation matrix from source on the next updatevoidsetMeshGroup(javafx.scene.Group meshGroup) Sets the reference to the MeshGroup.voidsetPane(javafx.scene.control.ScrollPane scrollPane) Sets the reference to the ScrollPane.voidAdds the Nodes and Controls to the Scenejavafx.beans.property.BooleanPropertyvoidVisualizes 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
-