Class ModelSurfaceTopology.Vertex

java.lang.Object
gov.nih.mipav.view.renderer.J3D.model.structures.ModelSurfaceTopology.Vertex
Enclosing class:
ModelSurfaceTopology

public class ModelSurfaceTopology.Vertex extends Object
A representation of a vertex for the vertex-edge-triangle table. This class just stores the index of the vertex but is unconcerned about the actually vertex 3D coordinate. The class extends Object to obtain support for hashing into a map of vertices.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    DOCUMENT ME!
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vertex(int iV)
    Constructs a vertex in the table.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object kObject)
    Support for hashing into a map of vertices.
    int
    Support for hashing into a map of vertices.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_iV

      public int m_iV
      DOCUMENT ME!
  • Constructor Details

    • Vertex

      public Vertex(int iV)
      Constructs a vertex in the table.
      Parameters:
      iV - the index of the vertex
  • Method Details

    • equals

      public boolean equals(Object kObject)
      Support for hashing into a map of vertices.
      Overrides:
      equals in class Object
      Parameters:
      kObject - a vertex for comparison to the current one
      Returns:
      true iff the vertices have the same index
    • hashCode

      public int hashCode()
      Support for hashing into a map of vertices.
      Overrides:
      hashCode in class Object
      Returns:
      the hash key for the vertex