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

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

      protected void renderPolygon()
    • displayNode

      protected void displayNode​(org.jogamp.vecmath.Point3d point, java.awt.Color c)
    • displaySelectedNodes

      protected void displaySelectedNodes()