Class BurnBaseView.Edge

java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.rfaview.BurnBaseView.Edge
Enclosing class:
BurnBaseView

protected class BurnBaseView.Edge extends Object
A representation of an edge for the vertex-edge-triangle table. This class stores the pair of vertex indices for the end points of the edge. The edges invalid input: '<'V0,V1> and invalid input: '<'V1,V0> are considered to be identical. To simplify comparisons, the class stores the ordered indices. The class extends Object to obtain support for hashing into a map of edges.
  • Field Summary

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

    Constructors
    Constructor
    Description
    Edge(int i0, int i1)
    Constructs an edge in the table.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • m_i0

      public int m_i0
      DOCUMENT ME!
    • m_i1

      public int m_i1
      DOCUMENT ME!
  • Constructor Details

    • Edge

      public Edge(int i0, int i1)
      Constructs an edge in the table.
      Parameters:
      i0 - a vertex index for an end point
      i1 - a vertex index for an end point
  • Method Details

    • equals

      public boolean equals(Object kObject)
      Support for hashing into a map of edges.
      Overrides:
      equals in class Object
      Parameters:
      kObject - an edge for comparison to the current one
      Returns:
      true iff the edges are identical. Because the class stores ordered indices, it is not necessary to use the more expensive test (i0 == other.i0 invalid input: '&'invalid input: '&' i1 == other.i1) || (i0 == other.i1 invalid input: '&'invalid input: '&' i1 == other.i0).
    • hashCode

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