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
FieldsModifier 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
Fields inherited from class videoRangePanel.vrmethods.AbstractVRGUIFX
vrControl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the overlay.void
Create the side pane.protected void
drawAnimal
(javafx.scene.canvas.GraphicsContext g2, VRMeasurement vr, PamSymbolFX symbol) Draw all animal measurements for the image.protected void
drawLandMarks
(javafx.scene.canvas.GraphicsContext g2, PamSymbolFX symbol) Draw the landmark measurement points.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.protected void
setAnimalLabels
(VRMeasurement imageMeasurement) Set the animal location labelsprotected void
setImageLabels
(VRMeasurement imageMeasurement) Set the image angle labels.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, point, point2D, 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
-
Method Details
-
createSidePane
public void createSidePane()Create the side pane. -
clearOverlay
public void clearOverlay()Clear the overlay. -
setImageLabels
Set the image angle labels.- Parameters:
imageMeasurement
- the image measurement.
-
setAnimalLabels
Set the animal location labels- Parameters:
imageMeasurement
- the image measurement.
-
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.
-
drawAnimal
protected void drawAnimal(javafx.scene.canvas.GraphicsContext g2, VRMeasurement vr, PamSymbolFX symbol) Draw all animal measurements for the image. -
drawLandMarks
Draw the landmark measurement points.- Parameters:
symbol
-g
- - the landmark measurement points.
-
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.
-