Class LandMarkGUIFX

java.lang.Object
videoRangePanel.vrmethods.AbstractVRGUIFX
videoRangePanel.vrmethods.landMarkMethod.LandMarkGUIFX
All Implemented Interfaces:
VROverlayFX

public class LandMarkGUIFX extends AbstractVRGUIFX
Contains GUI components for the landmark method.
Author:
Jamie Macaulay
  • Field Details

    • landMarkCol

      public static final javafx.scene.paint.Color landMarkCol
    • animalCol

      public static final javafx.scene.paint.Color animalCol
    • rectOutline

      public static final javafx.scene.paint.Color rectOutline
    • rectFill

      public static final javafx.scene.paint.Color rectFill
    • landMarkMarker

      public static PamSymbolFX landMarkMarker
    • animalMarker

      public static PamSymbolFX animalMarker
    • candAnimalMarker

      public static PamSymbolFX candAnimalMarker
  • Constructor Details

  • Method Details

    • createSidePane

      public void createSidePane()
      Create the side pane.
    • clearOverlay

      public void clearOverlay()
      Clear the overlay.
    • setLandMarks

      public void setLandMarks()
      Create a landmark list for the landmark combo box on side panel
    • getSidePaneFX

      public javafx.scene.layout.Pane getSidePaneFX()
      The side pane with controls specific for landmarks.
      Returns:
      - the side pane for landmarks
    • getRibbonPaneFX

      public javafx.scene.layout.Pane getRibbonPaneFX()
      Get the ribbon pane.
      Specified by:
      getRibbonPaneFX in interface VROverlayFX
      Overrides:
      getRibbonPaneFX in class AbstractVRGUIFX
      Returns:
      the ribbon pane.
    • update

      public void update(int updateType)
      Update the GUI.
      Specified by:
      update in interface VROverlayFX
      Overrides:
      update in class AbstractVRGUIFX
      Parameters:
      updateType - - the update flag.
    • paint

      public void paint(javafx.scene.canvas.GraphicsContext g)
      Description copied from interface: VROverlayFX
      Paint graphics onto the image.
      Parameters:
      g - - the graphics context handle.
    • mouseAction

      public void mouseAction(javafx.scene.input.MouseEvent e, boolean motion, javafx.scene.canvas.Canvas drawCanvas)
      Description copied from interface: VROverlayFX
      Called whenever there is a mouse action on the overlay draw cnvas
      Parameters:
      e - - the mouse event.
      motion - - true if the mouse event is just a motion. ie. movement of mouse on screen but no clicking.
    • getMeasuredPolygon

      public Point[] getMeasuredPolygon()
      Get polygon points on the image. These points are in image pixels. If there is no drawn polygon will return null.
      Returns:
      list of points representing corners of polygon drawn on image.