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 Details

    • selectionSet

      protected transient ShapeSelectionSet selectionSet
    • selectedPt

      protected transient org.jogamp.vecmath.Point3d selectedPt
    • selectedShape

      protected transient org.jogamp.java3d.Shape3D selectedShape
    • selectedNodes

      protected transient int[] selectedNodes
    • current_query

      protected transient InterfaceShapeQuery current_query
  • Constructor Details

  • 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 interface Tool
      Overrides:
      isExclusive in class Tool3D
      Returns:
    • setMode

      public void setMode​(InterfaceShapeQuery.QueryMode mode)
    • getQuery

      public InterfaceQuery getQuery()
      Specified by:
      getQuery in interface QueryTool
    • handleToolEvent

      public void handleToolEvent​(ToolInputEvent e)
      Description copied from interface: ToolInputListener
      Handle this tool event
      Specified by:
      handleToolEvent in interface ToolInputListener
      Overrides:
      handleToolEvent in class Tool3D
    • clone

      public java.lang.Object clone()
      Specified by:
      clone in interface Tool
      Overrides:
      clone in class Tool3D
    • displaySelectedNode

      protected void displaySelectedNode​(org.jogamp.vecmath.Point3d point)
    • clearNodes

      public void clearNodes()
    • displaySelectedNodes

      protected void displaySelectedNodes​(org.jogamp.java3d.GeometryArray geom)