IsoSurface Rendering of an AR Representation

rlaramee
Class CubeVertex

java.lang.Object
  |
  +--rlaramee.Vertex
        |
        +--rlaramee.CubeVertex

public class CubeVertex
extends Vertex

Description A [cube|face] is made up of [8|4] vertices. Including a vertex class in the design allows flexibility in implementation.

start date Tue 14 Mar 00

Version:
1.0
Author:
Robert S Laramee
See Also:

Field Summary
private  float errorValue
          changing the error value to a short also changes the color that appears as uncertainty
private  float scalarValue
          changing the scalar value to a short causes a problem
private  byte xcoordinate
           
private  byte ycoordinate
          a short takes up 2 bytes
private  byte zcoordinate
           
 
Constructor Summary
CubeVertex()
          vertex constructor(s)
 
Method Summary
 float[] getCoords()
           
 float getData()
           
 float getError()
           
 float getXcoord()
          This method must be over-ridden
 float getYcoord()
          This method must be over-ridden
 float getZcoord()
          This method must be over-ridden
 boolean isValid()
          /** An error check method called from Cube.isValid() It includes checking the scalarValue.
 void setData(float newValue)
           
 void setError(float newValue)
           
 void setXcoord(float newX)
          This method must be over-ridden
 void setYcoord(float newY)
          This method must be over-ridden
 void setZcoord(float newZ)
          This method must be over-ridden
 java.lang.String toString()
           
 
Methods inherited from class rlaramee.Vertex
isEqual
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

xcoordinate

private byte xcoordinate

ycoordinate

private byte ycoordinate
a short takes up 2 bytes

zcoordinate

private byte zcoordinate

scalarValue

private float scalarValue
changing the scalar value to a short causes a problem

errorValue

private float errorValue
changing the error value to a short also changes the color that appears as uncertainty
Constructor Detail

CubeVertex

public CubeVertex()
vertex constructor(s)

VisAD requires that the polygonList be initialized with Constant.BIG_NEG. We don't want to initialize all the entries with an integer value of 0 (by default) because this will be interpreted as all the vertices sharing polygon number 0 (by default)

This constructor is used when reading in the cube vertices from a file. These vertices are in block space so they have to be transformed from block space to VisAD space.

Method Detail

getXcoord

public float getXcoord()
Description copied from class: Vertex
This method must be over-ridden

Overrides:
getXcoord in class Vertex
Returns:
the x coordinate of this cube vertex

getYcoord

public float getYcoord()
Description copied from class: Vertex
This method must be over-ridden

Overrides:
getYcoord in class Vertex
Returns:
the y coordinate of this cube vertex

getZcoord

public float getZcoord()
Description copied from class: Vertex
This method must be over-ridden

Overrides:
getZcoord in class Vertex
Returns:
the z coordinate of this cube vertex

getCoords

public float[] getCoords()
Returns:
an array with the x, y, and z coordinates of this cube vertex

setXcoord

public void setXcoord(float newX)
Description copied from class: Vertex
This method must be over-ridden

Overrides:
setXcoord in class Vertex
Parameters:
newX - an x coordinate value

setYcoord

public void setYcoord(float newY)
Description copied from class: Vertex
This method must be over-ridden

Overrides:
setYcoord in class Vertex
Parameters:
newY - a y coordinate value

setZcoord

public void setZcoord(float newZ)
Description copied from class: Vertex
This method must be over-ridden

Overrides:
setZcoord in class Vertex
Parameters:
newZ - a z coordinate value

getData

public float getData()
Returns:
this cube vertex's scalar value

setData

public void setData(float newValue)
Parameters:
newValue - this cube vertex's scalar value

getError

public float getError()
Returns:
this cube vertex's error value

setError

public void setError(float newValue)
Parameters:
newValue - this cube vertex's error value

isValid

public boolean isValid()
/** An error check method called from Cube.isValid() It includes checking the scalarValue.

Returns:
TRUE if this is a valid cube vertex object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this cube vertex

IsoSurface Rendering of an AR Representation