Class BatchCuttingPlanesPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BatchCuttingPlanesPanel extends ControlPanel
Control panel for analysis via cutting planes.
See Also:
  • Field Details

  • Constructor Details

    • BatchCuttingPlanesPanel

      public BatchCuttingPlanesPanel(ActionListener action, Task task)
      Constructor
      Parameters:
      action - Action listener
  • Method Details

    • getIcon

      public ImageIcon getIcon()
      Description copied from class: ControlPanel
      Returns panel's icon.
      Specified by:
      getIcon in class ControlPanel
      Returns:
      panel's icon
    • updateDatasetMenu

      public void updateDatasetMenu()
      Updates drop-down menu to select currently shown face
    • getSelectedFace

      public StoredHumanFace getSelectedFace()
      Returns the face selected in a menu.
      Returns:
      The face selected in a menu. This is either some face from the dataset, or the average face.
    • isAvgFaceSelected

      public boolean isAvgFaceSelected()
      Returns true if the item selected in the menu is the average face
      Returns:
      true if the item selected in the menu is the average face
    • selectAvgFace

      public void selectAvgFace()
      Select the average face in the manu, if exists.
    • addAndSelectAvgFace

      public void addAndSelectAvgFace(FaceReference face)
      The average face is added, replaced, or removed (if null) and the action event is automatically triggered by the jBomboBox1 with the first item set as selected. Also, the export button is switched on/off.
      Parameters:
      face - new AVG face
    • getStaticIcon

      public static ImageIcon getStaticIcon()
      Static implementation of the getIcon() method.
      Returns:
      Control panel icon
    • getTask

      public Task getTask()
    • getCurveRenderingPanel

      public CurveRenderingPanel getCurveRenderingPanel()
      Returns embedded CurveRenderingPanel
      Returns:
      embedded CurveRenderingPanel
    • getCheckedPlanes

      public List<Boolean> getCheckedPlanes()
      Returns a list of Booleans that contains true for visible and false for hidden planes.
      Returns:
      List of Booleans indicating visibility of planes
    • getPlaneManipulationPanels

      public List<PlaneManipulationPanel> getPlaneManipulationPanels()
    • getSubsamplingStrength

      public int getSubsamplingStrength()
      Hide Hausdorff Distance label if only one face is present.