|
IsoSurface Rendering of an AR Representation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rlaramee.Vertex | +--rlaramee.CubeVertex
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
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 |
|
Field Detail |
private byte xcoordinate
private byte ycoordinate
private byte zcoordinate
private float scalarValue
private float errorValue
Constructor Detail |
public CubeVertex()
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 |
public float getXcoord()
Vertex
getXcoord
in class Vertex
public float getYcoord()
Vertex
getYcoord
in class Vertex
public float getZcoord()
Vertex
getZcoord
in class Vertex
public float[] getCoords()
public void setXcoord(float newX)
Vertex
setXcoord
in class Vertex
newX
- an x coordinate valuepublic void setYcoord(float newY)
Vertex
setYcoord
in class Vertex
newY
- a y coordinate valuepublic void setZcoord(float newZ)
Vertex
setZcoord
in class Vertex
newZ
- a z coordinate valuepublic float getData()
public void setData(float newValue)
newValue
- this cube vertex's scalar valuepublic float getError()
public void setError(float newValue)
newValue
- this cube vertex's error valuepublic boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
|
IsoSurface Rendering of an AR Representation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |