Package mgui.interfaces.tools.shapes
Class ToolSelectShape3D
java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.shapes.ToolSelectShape3D
- All Implemented Interfaces:
java.lang.Cloneable,PopupMenuObject,Tool,ToolInputListener,IconObject
public class ToolSelectShape3D extends Tool3D
3D tool for selecting/deselcting shapes.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description static intDESELECTbooleandisplayNodesintmodestatic intSELECTint[]selectedNodesorg.jogamp.vecmath.Point3dselectedPtorg.jogamp.java3d.Shape3DselectedShapeShapeSelectionSetselectionSetFields inherited from class mgui.interfaces.tools.graphics.Tool3D
icon, isImmediate, listeners, name, previous_tool, targetPanel, targetShape, toolPhase -
Constructor Summary
Constructors Constructor Description ToolSelectShape3D(ShapeSelectionSet set)ToolSelectShape3D(ShapeSelectionSet set, int mode) -
Method Summary
Modifier and Type Method Description voidclearNodes()java.lang.Objectclone()protected voiddisplaySelectedNode(org.jogamp.vecmath.Point3d p)protected voiddisplaySelectedNodes(org.jogamp.java3d.GeometryArray geom)intgetMode()protected Shape3DIntgetShape(org.jogamp.java3d.Shape3D shape)voidhandleToolEvent(ToolInputEvent e)Handle this tool eventprotected voidinit()voidsetMode(int m)Methods inherited from class mgui.interfaces.tools.graphics.Tool3D
activate, addListener, deactivate, fireDeactivated, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isExclusive, isImmediate, removeListener, setIcon, setTargetPanel, setTargetShape, showPopupMenuMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SELECT
public static final int SELECT- See Also:
- Constant Field Values
-
DESELECT
public static final int DESELECT- See Also:
- Constant Field Values
-
selectionSet
-
selectedPt
public org.jogamp.vecmath.Point3d selectedPt -
selectedShape
public org.jogamp.java3d.Shape3D selectedShape -
selectedNodes
public int[] selectedNodes -
mode
public int mode -
displayNodes
public boolean displayNodes
-
-
Constructor Details
-
ToolSelectShape3D
-
ToolSelectShape3D
-
-
Method Details
-
init
protected void init() -
setMode
public void setMode(int m) -
getMode
public int getMode() -
handleToolEvent
Description copied from interface:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Overrides:
handleToolEventin classTool3D
-
displaySelectedNode
protected void displaySelectedNode(org.jogamp.vecmath.Point3d p) -
clearNodes
public void clearNodes() -
displaySelectedNodes
protected void displaySelectedNodes(org.jogamp.java3d.GeometryArray geom) -
getShape
-
clone
public java.lang.Object clone()
-