Class SymmetryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SymmetryPanel extends ControlPanel
Control panel for symmetry plane.
See Also:
  • Field Details

  • Constructor Details

    • SymmetryPanel

      public SymmetryPanel(ActionListener action)
      Creates new form SymmetryPanelNew
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Returns chosen symmetry algorithm
      Returns:
      chosen symmetry algorithm
    • getIcon

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

      public int getPointSamplingStrength1()
      Return the number of point samples for the fist phase
      Returns:
      the number of point samples
    • getPointSamplingStrength2

      public int getPointSamplingStrength2()
      Return the number of point samples for the second phase
      Returns:
      the number of point samples
    • getPointSamplingStrategy

      public String getPointSamplingStrategy()
      Return selected point sampling strategy
      Returns:
      selected point sampling strategy
    • getShowSamples

      public boolean getShowSamples()
      Returns true if su-samples are to be shown
      Returns:
      true if su-samples are to be shown
    • setShowSamples

      public void setShowSamples(boolean on)
      Selects show samples.
      Parameters:
      on - on/off
    • setEnableShowSamples

      public void setEnableShowSamples(boolean enable)
      Enables show samples.
      Parameters:
      enable - enable/disable
    • getStaticIcon

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

      public void setComputeFromFPs(boolean on)
      Enables/disables the selection for the computation of the symmetry from feature points.
      Parameters:
      on - true = enable
    • setEnabledOpenCL

      public void setEnabledOpenCL(boolean on)
      Turns on or off the OpenCL dependant sampling strategies
      Parameters:
      on - on-off value
    • updateHausdorffDistanceStats

      public void updateHausdorffDistanceStats(double precision, boolean first)
      Updates GUI elements that display statistical data about the calculated Hausdorff distance.
      Parameters:
      precision - Average of Statistical data of the ordinary Hausdorff distance
      first - First face