|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectshowIsosurface.Isosurface
public class Isosurface
The Isosurface class creates the Java3D objects necessary to display an isosurface. The details of the isosurface are loaded from a VRML file that contains an IndexedFaceSet. These points and indices are used to create an IndexedTriangleArray from which the Shape3D is constructed. Methods are provided to access and control the Java3D objects.
| Constructor Summary | |
|---|---|
Isosurface()
Do not use the default constructor. |
|
Isosurface(java.net.URL url)
Creates an Isosurface object based upon the contents of a VRML file. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys all objects |
javax.media.j3d.IndexedTriangleArray |
getIndexedTriangleArray()
Provides the IndexedTriangleArray object for the isosurface |
java.lang.String |
getInfo()
Returns name, version, copyright, and author information about this class. |
int |
getNbrCoordinates()
Provides the number of coordinates in the geometry array. |
int |
getNbrIndices()
Provides the number of coordinate indices in the geometry array. |
javax.media.j3d.Shape3D |
getShape3D()
Provides the Shape3D object for the isosurface |
void |
setColor(javax.vecmath.Color3f diffuseC)
Sets the diffuse color of the isosurface |
void |
setColor(javax.vecmath.Color3f ambientC,
javax.vecmath.Color3f diffuseC,
javax.vecmath.Color3f emissiveC,
javax.vecmath.Color3f specularC)
Sets the color of the isosurface |
void |
setTransparency(float t)
Sets the transparency of the isosurface |
void |
setVisible(boolean s)
Determines whether the isosurface is visible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Isosurface()
public Isosurface(java.net.URL url)
throws java.io.IOException
url - URL of the VRML file
java.io.FileNotFoundException
java.io.IOException| Method Detail |
|---|
public void destroy()
public java.lang.String getInfo()
public javax.media.j3d.IndexedTriangleArray getIndexedTriangleArray()
public int getNbrCoordinates()
public int getNbrIndices()
public javax.media.j3d.Shape3D getShape3D()
public void setColor(javax.vecmath.Color3f ambientC,
javax.vecmath.Color3f diffuseC,
javax.vecmath.Color3f emissiveC,
javax.vecmath.Color3f specularC)
ambientC - ambient colordiffuseC - diffuse coloremissiveC - emissive colorspecularC - specular colorpublic void setColor(javax.vecmath.Color3f diffuseC)
diffuseC - diffuse colorpublic void setTransparency(float t)
t - transparencypublic void setVisible(boolean s)
s - State for the visibility of the Shape3D object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||