Class LandMarkCSVLogging

java.lang.Object
videoRangePanel.vrmethods.landMarkMethod.LandMarkCSVLogging

public class LandMarkCSVLogging extends Object
Imports landmarks.
Author:
Jamie Macaulay
  • Constructor Details

    • LandMarkCSVLogging

      public LandMarkCSVLogging()
  • Method Details

    • importLandMarks

      public LandMarkGroup importLandMarks(javafx.stage.Window owner)
      Open a file dialog and import a .csv of landmarks.
      Returns:
      imported LandMarkGroup.
    • importLandMarks

      public LandMarkGroup importLandMarks(File file)
      Import landmarks from a .csv file
      Parameters:
      file - - the file
      Returns:
      list of imported landmarks.
    • export

      public void export(LandMarkGroup landMarkGroup, javafx.stage.Window owner)
      Opens a file dialog and allows users to export and landmark group
      Parameters:
      landMarkGroup - - the landmark group to export.
    • export

      public void export(File file, LandMarkGroup landMarkGroup)
      Import landmarks from a .csv file
      Parameters:
      file - - the file
    • saveCSVResult

      public static void saveCSVResult(LandMark landMark, FileWriter fwLoc)
      Save a landmark as a line in a .csv file
      Parameters:
      landMark -
      fwLoc -
    • parseLandMarkString

      public LandMark parseLandMarkString(String landMarkString)
      Convert a string from .csv file into a landmark object.
      Returns:
      landmark representation of the string. Null if could not be parsed from String.