|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectVRML
public class VRML
Methods to construct a VRML .wrl file to visualize meshes using Balls and Sticks.
| Constructor Summary | |
|---|---|
VRML()
Constructor |
|
VRML(java.io.PrintStream ps)
Constructor |
|
| Method Summary | |
|---|---|
void |
printBall(double x,
double y,
double z)
Output a Ball. |
void |
printPostlog()
Call this last |
void |
printProlog()
Setup - call this first (and only once) |
void |
printStick(double x0,
double y0,
double z0,
double x1,
double y1,
double z1)
Output a Stick |
void |
setColor(double r,
double g,
double b)
Specify the color of the Balls. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VRML(java.io.PrintStream ps)
ps - where to sent the outputpublic VRML()
| Method Detail |
|---|
public void setColor(double r,
double g,
double b)
public void printBall(double x,
double y,
double z)
x - x coordinatey - y coordinatez - z coordinate
public void printStick(double x0,
double y0,
double z0,
double x1,
double y1,
double z1)
throws java.io.IOException
x0 - x coordinate for one endpointy0 - y coordinate for one endpointz0 - z coordinate for one endpointx1 - x coordinate for the other endpointy1 - y coordinate for the other endpointz1 - z coordinate for the other endpoint
java.io.IOException
public void printProlog()
throws java.io.IOException
java.io.IOException
public void printPostlog()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||