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.Colorstatic PamSymbolFXstatic PamSymbolFXstatic final javafx.scene.paint.Colorstatic PamSymbolFXstatic final javafx.scene.paint.Colorstatic final javafx.scene.paint.ColorFields inherited from class videoRangePanel.vrmethods.AbstractVRGUIFX
vrControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the overlay.voidCreate the side pane.protected voiddrawAnimal(javafx.scene.canvas.GraphicsContext g2, VRMeasurement vr, PamSymbolFX symbol) Draw all animal measurements for the image.protected voiddrawLandMarks(javafx.scene.canvas.GraphicsContext g2, PamSymbolFX symbol) Draw the landmark measurement points.Point[]Get polygon points on the image.javafx.scene.layout.PaneGet the ribbon pane.javafx.scene.layout.PaneThe side pane with controls specific for landmarks.voidmouseAction(javafx.scene.input.MouseEvent e, boolean motion, javafx.scene.canvas.Canvas drawCanvas) Called whenever there is a mouse action on the overlay draw cnvasvoidpaint(javafx.scene.canvas.GraphicsContext g) Paint graphics onto the image.protected voidsetAnimalLabels(VRMeasurement imageMeasurement) Set the animal location labelsprotected voidsetImageLabels(VRMeasurement imageMeasurement) Set the image angle labels.voidCreate a landmark list for the landmark combo box on side panelvoidupdate(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
-
LandMarkGUIFX
-
-
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:
getRibbonPaneFXin interfaceVROverlayFX- Overrides:
getRibbonPaneFXin classAbstractVRGUIFX- Returns:
- the ribbon pane.
-
update
public void update(int updateType) Update the GUI.- Specified by:
updatein interfaceVROverlayFX- Overrides:
updatein classAbstractVRGUIFX- Parameters:
updateType- - the update flag.
-
paint
public void paint(javafx.scene.canvas.GraphicsContext g) Description copied from interface:VROverlayFXPaint 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:VROverlayFXCalled 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.
-