Class VertexSelection

java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.mesh.VertexSelection
All Implemented Interfaces:
InterfaceObject, NamedObject, TreeObject, CleanableObject

public class VertexSelection
extends AbstractInterfaceObject
Defines a selection of nodes for a shape object.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • selected_nodes

      protected java.util.ArrayList<java.lang.Boolean> selected_nodes
  • Constructor Details

    • VertexSelection

      public VertexSelection​(int n)
    • VertexSelection

      public VertexSelection​(java.util.ArrayList<java.lang.Boolean> selected)
    • VertexSelection

      public VertexSelection​(boolean[] selected)
  • Method Details

    • isSelected

      public boolean isSelected​(int i)
    • select

      public void select​(int i)
    • select

      public void select​(java.util.List<java.lang.Integer> indices)
    • deselect

      public void deselect​(int i)
    • deselect

      public void deselect​(java.util.ArrayList<java.lang.Integer> indices)
    • clear

      public void clear()
    • set

      public void set​(int index, boolean selected)
    • getIntersection

      public VertexSelection getIntersection​(VertexSelection selection)
      Returns a new selection which is the intersection of this object and selection.
      Parameters:
      selection -
      Returns:
    • getUnion

      public VertexSelection getUnion​(VertexSelection selection)
      Returns a new selection which is the union of this object and selection.
      Parameters:
      selection -
      Returns:
    • set

      public void set​(VertexSelection selection)
    • getSelectedCount

      public int getSelectedCount()
      Returns the count of selected vertices
      Returns: