Class ModelSurfaceTopology.Vertex
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.model.structures.ModelSurfaceTopology.Vertex
-
- Enclosing class:
- ModelSurfaceTopology
public class ModelSurfaceTopology.Vertex extends java.lang.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
m_iV
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description Vertex(int iV)
Constructs a vertex in the table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object kObject)
Support for hashing into a map of vertices.int
hashCode()
Support for hashing into a map of vertices.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object kObject)
Support for hashing into a map of vertices.- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
- Returns:
- the hash key for the vertex
-
-