GridView
Class MyVertex

java.lang.Object
  extended by GridView.MyVertex

 class MyVertex
extends java.lang.Object

Internal class used in marshalling the vertex related data and putting things in order before a Vertex can be constructed. This class differs from Vertex class in that it has a iNewVertexNum field. It is mainly used when the initial vertex numbering (read from input file) needs to change. For instance, if a surface mesh is being extracted from a three dimensional mesh, internal vertices will disappear and to keep the vertex numbers contiguous, a re-numbering is essential. For all other cases (when no re-numbering is needed), Vertex class should be used. (@see GeomRep.Vertex)

Since:
1.0

Field Summary
private  int iNewVertexNum
           
private  float[] mCoord
           
 
Constructor Summary
MyVertex(float[] coor)
           
 
Method Summary
 float[] GetCoordinates()
          Get vertex coordinate array.
 int GetNewVertexNum()
          Get new number corresponding to this vertex.
 void SetNewVertexNum(int newNum)
          Set new number corresponding to this vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mCoord

private float[] mCoord

iNewVertexNum

private int iNewVertexNum
Constructor Detail

MyVertex

public MyVertex(float[] coor)
Method Detail

GetCoordinates

public float[] GetCoordinates()
Get vertex coordinate array.

Returns:
Vertex coordinate array.

SetNewVertexNum

public void SetNewVertexNum(int newNum)
Set new number corresponding to this vertex.

Parameters:
newNum - New vertex number.

GetNewVertexNum

public int GetNewVertexNum()
Get new number corresponding to this vertex.

Returns:
New vertex number.