Package mgui.interfaces.tools.shapes
Class ToolSelectNodesWithPolygon
java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.shapes.ToolSelectNodesWithPolygon
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,Tool
,ToolInputListener
,IconObject
public class ToolSelectNodesWithPolygon extends Tool3D
Tool specifies options with a dialog and then calls an inner class instance of Tool3D
to allow the user to select nodes on the Canvas3D.
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.interfaces.tools.graphics.Tool3D
icon, isImmediate, listeners, name, previous_tool, targetPanel, targetShape, toolPhase
-
Constructor Summary
Constructors Constructor Description ToolSelectNodesWithPolygon()
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
void
deactivate()
Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here.protected void
displayNode(org.jogamp.vecmath.Point3d point, java.awt.Color c)
protected void
displaySelectedNodes()
void
handleToolEvent(ToolInputEvent e)
Handle this tool eventboolean
isExclusive()
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.protected void
renderPolygon()
Methods inherited from class mgui.interfaces.tools.graphics.Tool3D
activate, addListener, fireDeactivated, fireListeners, getName, getObjectIcon, getPopupMenu, getPopupMenu, getPreviousTool, handlePopupEvent, isImmediate, removeListener, setIcon, setTargetPanel, setTargetShape, showPopupMenu
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ToolSelectNodesWithPolygon
public ToolSelectNodesWithPolygon()
-
-
Method Details
-
isExclusive
public boolean isExclusive()Description copied from interface:Tool
Specifies whether this tool requires exclusively; otherwise it will run in parallel with the default tool, if one exists.- Specified by:
isExclusive
in interfaceTool
- Overrides:
isExclusive
in classTool3D
- Returns:
-
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Overrides:
handleToolEvent
in classTool3D
-
deactivate
public void deactivate()Description copied from interface:Tool
Should be called once a tool is deactivated; instances of Tool should perform clean-up activities here.- Specified by:
deactivate
in interfaceTool
- Overrides:
deactivate
in classTool3D
-
clone
public java.lang.Object clone() -
renderPolygon
protected void renderPolygon() -
displayNode
protected void displayNode(org.jogamp.vecmath.Point3d point, java.awt.Color c) -
displaySelectedNodes
protected void displaySelectedNodes()
-