Class BatchCuttingPlanesAction
java.lang.Object
javax.swing.AbstractAction
cz.fidentis.analyst.gui.task.ControlPanelAction<BatchCuttingPlanesPanel>
cz.fidentis.analyst.gui.task.batch.symmetry.BatchCuttingPlanesAction
- All Implemented Interfaces:
HumanFaceListener
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class BatchCuttingPlanesAction
extends ControlPanelAction<BatchCuttingPlanesPanel>
implements HumanFaceListener
Action listener for manipulation with cutting planes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javax.vecmath.Vector3d
static final javax.vecmath.Vector3d
static final javax.vecmath.Vector3d
static final double
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
ConstructorsConstructorDescriptionBatchCuttingPlanesAction
(Canvas canvas, FacesProxyDecorator batchFacesProxy, JTabbedPane topControlPane) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(HumanFaceEvent event) Subscription method, which is invoked when an event appears.void
protected void
computeHausdorffDistances
(List<CrossSection2D> primaryCurves, List<CrossSection2D> secondaryCurves) Computes Hausdorff distances of all visible curves.protected List
<DrawableCuttingPlane> getCuttingPlanes
(javax.vecmath.Vector3d direction) Returns a list of cutting planes with given normal vector.protected void
protected void
changeSampling
(int sampling) protected void
Shows cutting planes marked as visible for user.Methods inherited from class cz.fidentis.analyst.gui.task.ControlPanelAction
getCanvas, getControlPanel, getFaces, getPrimaryDrawableFace, getPrimaryFace, getPrimaryFeaturePoints, getPrimaryInteractiveMask, getScene, getSecondaryDrawableFace, getSecondaryFace, getSecondaryFeaturePoints, getSecondaryInteractiveMask, hideShowPanelActionPerformed, popup, renderScene, setControlPanel, setShowHideCode
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
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
-
BatchCuttingPlanesAction
public BatchCuttingPlanesAction(Canvas canvas, FacesProxyDecorator batchFacesProxy, JTabbedPane topControlPane) Constructor. A newProfilesPanel
is instantiated and added to thetopControlPane
- Parameters:
canvas
- OpenGL canvasbatchFacesProxy
- 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<BatchCuttingPlanesPanel>
-
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.
-
computeHausdorffDistances
protected void computeHausdorffDistances(List<CrossSection2D> primaryCurves, List<CrossSection2D> secondaryCurves) Computes Hausdorff distances of all visible curves.- Parameters:
primaryCurves
- cross sections with primary facesecondaryCurves
- cross sections with secondary face
-
getCuttingPlanes
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() -
changeSampling
protected void changeSampling(int sampling)
-