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 intDESELECTintmodestatic intSELECTint[]selectedNodesorg.jogamp.vecmath.Point3dselectedPtorg.jogamp.java3d.Shape3DselectedShapeShapeSelectionSetselectionSetFields 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.Objectclone()intgetMode()voidhandleToolEvent(ToolInputEvent e)Handle this tool eventprotected voidinit()voidsetMode(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, 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
-
-
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:ToolInputListenerHandle this tool event- Specified by:
handleToolEventin interfaceToolInputListener- Specified by:
handleToolEventin classTool2D
-