Class ToolSelectShape3D

java.lang.Object
mgui.interfaces.tools.graphics.Tool3D
mgui.interfaces.tools.shapes.ToolSelectShape3D
All Implemented Interfaces:
java.lang.Cloneable, PopupMenuObject, Tool, ToolInputListener, IconObject

public class ToolSelectShape3D
extends Tool3D
3D tool for selecting/deselcting shapes.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • 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

      public ShapeSelectionSet selectionSet
    • selectedPt

      public org.jogamp.vecmath.Point3d selectedPt
    • selectedShape

      public org.jogamp.java3d.Shape3D selectedShape
    • selectedNodes

      public int[] selectedNodes
    • mode

      public int mode
    • displayNodes

      public boolean displayNodes
  • Constructor Details

  • Method Details

    • init

      protected void init()
    • setMode

      public void setMode​(int m)
    • getMode

      public int getMode()
    • 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
    • displaySelectedNode

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

      public void clearNodes()
    • displaySelectedNodes

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

      protected Shape3DInt getShape​(org.jogamp.java3d.Shape3D shape)
    • clone

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