Class SymmetryAction
java.lang.Object
javax.swing.AbstractAction
cz.fidentis.analyst.gui.task.ControlPanelAction<SymmetryPanel>
cz.fidentis.analyst.gui.task.symmetry.SymmetryAction
- All Implemented Interfaces:
HumanFaceListener
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Action listener for the manipulation with the symmetry plane.
- 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
ConstructorsConstructorDescriptionSymmetryAction
(FaceService faceService, HumanFacesEventBusService humanFacesEventBusService, 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
protected void
recomputeFromFeaturePoints
(int slot) protected void
recomputeFromMesh
(int faceSlot) protected void
setDrawablePlane
(HumanFace face, int slot) Methods 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
-
SymmetryAction
public SymmetryAction(FaceService faceService, HumanFacesEventBusService humanFacesEventBusService, Canvas canvas, Task task, JTabbedPane topControlPane) Constructor. A newSymmetryPanel
is instantiated and added to thetopControlPane
- Parameters:
canvas
- OpenGL canvastask
- Task with faces processed by current analytical tasktopControlPane
- A top component when a new control panel is placed
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Specified by:
actionPerformed
in classControlPanelAction<SymmetryPanel>
-
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.
-
recomputeFromMesh
protected void recomputeFromMesh(int faceSlot) -
recomputeFromFeaturePoints
protected void recomputeFromFeaturePoints(int slot) -
setDrawablePlane
-