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 int
DESELECT
boolean
displayNodes
int
mode
static int
SELECT
int[]
selectedNodes
org.jogamp.vecmath.Point3d
selectedPt
org.jogamp.java3d.Shape3D
selectedShape
ShapeSelectionSet
selectionSet
Fields 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 void
clearNodes()
java.lang.Object
clone()
protected void
displaySelectedNode(org.jogamp.vecmath.Point3d p)
protected void
displaySelectedNodes(org.jogamp.java3d.GeometryArray geom)
int
getMode()
protected Shape3DInt
getShape(org.jogamp.java3d.Shape3D shape)
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventprotected void
init()
void
setMode(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, showPopupMenu
Methods 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:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Overrides:
handleToolEvent
in 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()
-