Class CuttingPlanesAction

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

public class CuttingPlanesAction extends ControlPanelAction<CuttingPlanesPanel> implements HumanFaceListener
Action listener for manipulation with cutting planes.
See Also:
  • Field Details

    • FEATURE_POINTS_CLOSENESS

      public static final double FEATURE_POINTS_CLOSENESS
      See Also:
    • DIRECTION_VERTICAL

      public static final javax.vecmath.Vector3d DIRECTION_VERTICAL
    • DIRECTION_HORIZONTAL

      public static final javax.vecmath.Vector3d DIRECTION_HORIZONTAL
    • DIRECTION_FRONT_BACK

      public static final javax.vecmath.Vector3d DIRECTION_FRONT_BACK
  • Constructor Details

    • CuttingPlanesAction

      public CuttingPlanesAction(Canvas canvas, FacesProxy faces, JTabbedPane topControlPane)
      Constructor. A new ProfilesPanel 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

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class ControlPanelAction<CuttingPlanesPanel>
    • acceptEvent

      public void acceptEvent(HumanFaceEvent event)
      Description copied from interface: HumanFaceListener
      Subscription method, which is invoked when an event appears.
      Specified by:
      acceptEvent in interface HumanFaceListener
      Parameters:
      event - A fired event.
    • computeHausdorffDistances

      protected void computeHausdorffDistances(List<CrossSection2D> primaryCurves, List<CrossSection2D> secondaryCurves)
      Computes Hausdorff distances of all visible curves.
      Parameters:
      primaryCurves - cross-sections with primary face
      secondaryCurves - cross-sections with secondary face
    • getCuttingPlanes

      protected List<DrawableCuttingPlane> getCuttingPlanes(javax.vecmath.Vector3d direction)
      Returns a list of cutting planes with given normal vector.
      Parameters:
      direction - normal vector indicating direction of cutting plane
      Returns:
      list of cutting planes in given direction
    • showCheckedPlanes

      protected void showCheckedPlanes()
      Shows cutting planes marked as visible for user.
    • hideAllPlanes

      protected void hideAllPlanes()