Class DistanceAction

All Implemented Interfaces:
HumanFaceListener, ActionListener, Serializable, Cloneable, EventListener, Action

public class DistanceAction extends ControlPanelAction<DistancePanel> implements HumanFaceListener
Action listener for computation of the Hausdorff distance.

Besides the UX logic, this object stores the parameters and results of Hausdorff distance and provide them to other parts of GUI.

This object also serves as HumanFaceListener. It means that it is invoked whenever one of the faces are changed and then can react to these changes, e.g., the distance automatically recomputed whenever the faces are transformed.

Changes made by these objects are announced to other listeners. Following events are triggered:

  • MeshDistanceComputed
See Also:
  • Constructor Details

    • DistanceAction

      public DistanceAction(Canvas canvas, FacesProxy faces, JTabbedPane topControlPane)
      Constructor. A new DistancePanel is instantiated and added to the topControlPane
      Parameters:
      canvas - OpenGL canvas
      faces - Faces processed by current analytical task
      topControlPane - A top component when a new control panel is placed
  • Method Details