IsoSurface Rendering of an AR Representation

rlaramee
Class TriangleVertexList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--rlaramee.TriangleVertexList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class TriangleVertexList
extends java.util.Vector

Description: This is a list of all the triangle vertices. A triangle is 3 integers, each integer indentifying an index into the VertexList. This is to avoid duplication of data since 1 vertex may belong to more than 1 triangle.

start date Mon 21 Feb 2000

Version:
1.0
Author:
Robert S Laramee
See Also:
, Serialized Form

Field Summary
private  boolean debug
           
private  int totalVertexCounter
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TriangleVertexList()
          constructor
 
Method Summary
 int addVertex(TriangleVertex newVertex, int polygonNumber)
           
 TriangleVertex getVertex(int index)
           
 void print()
          prints out the corresponding vertex for each index in the list
 void setTotal()
           
 java.lang.String toString()
          The string representation of this TriangleVertexList
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, readObject, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize, writeObject
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

totalVertexCounter

private int totalVertexCounter

debug

private boolean debug
Constructor Detail

TriangleVertexList

public TriangleVertexList()
constructor
Method Detail

setTotal

public void setTotal()

addVertex

public int addVertex(TriangleVertex newVertex,
                     int polygonNumber)
Parameters:
vertex - the vertex to add to the list
polygonNumber - the index of the polygon in the list of polygons e.g. the isosurface that is using this vertex
Returns:
the size of this TriangleVertexList
See Also:
and Gridded3DSet.java


getVertex

public TriangleVertex getVertex(int index)
Parameters:
index - an index entry into the VertexList
Returns:
the TriangleVertex at that index

print

public void print()
prints out the corresponding vertex for each index in the list

toString

public java.lang.String toString()
The string representation of this TriangleVertexList
Overrides:
toString in class java.util.Vector

IsoSurface Rendering of an AR Representation