Class LandMarkGUIFX
java.lang.Object
videoRangePanel.vrmethods.AbstractVRGUIFX
videoRangePanel.vrmethods.landMarkMethod.LandMarkGUIFX
- All Implemented Interfaces:
VROverlayFX
Contains GUI components for the landmark method.
- Author:
- Jamie Macaulay
-
Field Summary
Modifier and TypeFieldDescriptionstatic final javafx.scene.paint.Color
static PamSymbolFX
static PamSymbolFX
static final javafx.scene.paint.Color
static PamSymbolFX
static final javafx.scene.paint.Color
static final javafx.scene.paint.Color
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the overlay.void
Create the side pane.Point[]
Get polygon points on the image.javafx.scene.layout.Pane
Get the ribbon pane.javafx.scene.layout.Pane
The side pane with controls specific for landmarks.void
mouseAction
(javafx.scene.input.MouseEvent e, boolean motion, javafx.scene.canvas.Canvas drawCanvas) Called whenever there is a mouse action on the overlay draw cnvasvoid
paint
(javafx.scene.canvas.GraphicsContext g) Paint graphics onto the image.void
Create a landmark list for the landmark combo box on side panelvoid
update
(int updateType) Update the GUI.Methods inherited from class videoRangePanel.vrmethods.AbstractVRGUIFX
createCameraHeightPane, createCameraLocationPane, getSettingsPaneFX, imageToLocal, localToImage, populateHeightBox, setGPSText
-
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
-
animalMarker
-
candAnimalMarker
-
-
Constructor Details
-
LandMarkGUIFX
-
-
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 interfaceVROverlayFX
- Overrides:
getRibbonPaneFX
in classAbstractVRGUIFX
- Returns:
- the ribbon pane.
-
update
public void update(int updateType) Update the GUI.- Specified by:
update
in interfaceVROverlayFX
- Overrides:
update
in classAbstractVRGUIFX
- 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
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.
-