Package mgui.interfaces.tools.shapes
Class ToolQueryShape3D
java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.shapes.ToolQueryShape3D
- All Implemented Interfaces:
java.lang.Cloneable
,PopupMenuObject
,QueryTool
,Tool
,ToolInputListener
,IconObject
public class ToolQueryShape3D extends Tool3D implements QueryTool
Tool allowing point-and-click vertex-wise querying of 3D objects, for a InterfaceGraphic3D window.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected InterfaceShapeQuery
current_query
protected int[]
selectedNodes
protected org.jogamp.vecmath.Point3d
selectedPt
protected org.jogamp.java3d.Shape3D
selectedShape
protected 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 ToolQueryShape3D(InterfaceShapeQuery query)
ToolQueryShape3D(InterfaceShapeQuery.QueryMode mode, InterfaceShapeQuery query)
-
Method Summary
Modifier and Type Method Description void
clearNodes()
java.lang.Object
clone()
protected void
displaySelectedNode(org.jogamp.vecmath.Point3d point)
protected void
displaySelectedNodes(org.jogamp.java3d.GeometryArray geom)
InterfaceQuery
getQuery()
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.void
setMode(InterfaceShapeQuery.QueryMode mode)
Methods inherited from class mgui.interfaces.tools.graphics.Tool3D
activate, addListener, deactivate, 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
Methods inherited from interface mgui.resources.icons.IconObject
getObjectIcon
Methods inherited from interface mgui.interfaces.menus.PopupMenuObject
getPopupMenu, getPopupMenu, handlePopupEvent, showPopupMenu
Methods inherited from interface mgui.interfaces.tools.Tool
activate, addListener, deactivate, getName, getPreviousTool, isImmediate, removeListener, setTargetPanel
-
Field Details
-
selectionSet
-
selectedPt
protected transient org.jogamp.vecmath.Point3d selectedPt -
selectedShape
protected transient org.jogamp.java3d.Shape3D selectedShape -
selectedNodes
protected transient int[] selectedNodes -
current_query
-
-
Constructor Details
-
ToolQueryShape3D
-
ToolQueryShape3D
-
-
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:
-
setMode
-
getQuery
-
handleToolEvent
Description copied from interface:ToolInputListener
Handle this tool event- Specified by:
handleToolEvent
in interfaceToolInputListener
- Overrides:
handleToolEvent
in classTool3D
-
clone
public java.lang.Object clone() -
displaySelectedNode
protected void displaySelectedNode(org.jogamp.vecmath.Point3d point) -
clearNodes
public void clearNodes() -
displaySelectedNodes
protected void displaySelectedNodes(org.jogamp.java3d.GeometryArray geom)
-