Class BatchDistanceHeatmapAction
java.lang.Object
javax.swing.AbstractAction
cz.fidentis.analyst.gui.task.ControlPanelAction<BatchDistanceHeatmapPanel>
cz.fidentis.analyst.gui.task.batch.distanceheatmap.BatchDistanceHeatmapAction
- All Implemented Interfaces:
HumanFaceListener
,BatchDistanceListener
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class BatchDistanceHeatmapAction
extends ControlPanelAction<BatchDistanceHeatmapPanel>
implements BatchDistanceListener, HumanFaceListener
Action listener for heatmap for batch registration
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
enabled, changeSupport
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDistanceHeatmapAction
(ProjectPanel projectPanel, TaskService taskService, Canvas canvas, Task task, JTabbedPane topControlPane) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(HumanFaceEvent event) Subscription method, which is invoked when an event appears.void
void
Get the face that should be shown on the left side of the opened taskvoid
symmetryCompleted
(double[][] distances) Get the measured distances of facesMethods inherited from class cz.fidentis.analyst.gui.task.ControlPanelAction
getCanvas, getControlPanel, getPrimaryDrawableFace, getPrimaryFace, getPrimaryFaceId, getPrimaryFeaturePoints, getPrimaryInteractiveMask, getScene, getSecondaryDrawableFace, getSecondaryFace, getSecondaryFaceId, getSecondaryFeaturePoints, getSecondaryInteractiveMask, getTask, hideShowPanelActionPerformed, popup, renderScene, setControlPanel, setShowHideCode
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
BatchDistanceHeatmapAction
public BatchDistanceHeatmapAction(ProjectPanel projectPanel, TaskService taskService, Canvas canvas, Task task, JTabbedPane topControlPane) Constructor- Parameters:
canvas
- OpenGL canvastask
- Shared faces across multiple batch tabs. The Distance tab checks for changes in the average face stored in the decoratortopControlPane
- A top component when a new control panel is placed
-
-
Method Details
-
acceptEvent
Description copied from interface:HumanFaceListener
Subscription method, which is invoked when an event appears.- Specified by:
acceptEvent
in interfaceHumanFaceListener
- Parameters:
event
- A fired event.
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Specified by:
actionPerformed
in classControlPanelAction<BatchDistanceHeatmapPanel>
-
registrationCompleted
Description copied from interface:BatchDistanceListener
Get the face that should be shown on the left side of the opened task- Specified by:
registrationCompleted
in interfaceBatchDistanceListener
- Parameters:
face
- face to be shown
-
symmetryCompleted
public void symmetryCompleted(double[][] distances) Description copied from interface:BatchDistanceListener
Get the measured distances of faces- Specified by:
symmetryCompleted
in interfaceBatchDistanceListener
- Parameters:
distances
- measured distances of faces
-