Package mgui.interfaces.tools.shapes
Class ToolSelectShape2D
java.lang.Object
mgui.interfaces.tools.graphics.Tool2D
mgui.interfaces.tools.shapes.ToolSelectShape2D
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolSelectShape2D extends Tool2D
2D 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
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.Tool2D
icon, is_active, isImmediate, last_tool, listeners, name, targetPanel, targetShape, toolPhase
-
Constructor Summary
Constructors Constructor Description ToolSelectShape2D(ShapeSelectionSet set)
ToolSelectShape2D(ShapeSelectionSet set, int mode)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
int
getMode()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventprotected void
init()
void
setMode(int m)
Methods inherited from class mgui.interfaces.tools.graphics.Tool2D
activate, addListener, deactivate, fireListeners, 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
-
-
Constructor Details
-
ToolSelectShape2D
-
ToolSelectShape2D
-
-
Method Details
-
init
protected void init() -
setMode
public void setMode(int m) -
getMode
public int getMode() -
clone
public java.lang.Object clone() -
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Specified by:
handleToolEvent
in classTool2D
-