ProGAL.geom3d.viewer
Class J3DImageFileWriter

java.lang.Object
  extended by ProGAL.geom3d.viewer.J3DImageFileWriter

public class J3DImageFileWriter
extends java.lang.Object

A wrapper class for exporting image files from a J3DScene. A scene is written by passing the Canvas3D object to one of the methods in this class. The Canvas3D object is accessed using the getCanvas() method in J3DScene.

Author:
R. Fonseca

Constructor Summary
J3DImageFileWriter()
           
 
Method Summary
static void writeEPSFile(java.lang.String fName, javax.media.j3d.Canvas3D canvas)
          Writes the current view in a Canvas3D object to an EPS file
static void writeJPEGFile(java.lang.String fName, javax.media.j3d.Canvas3D canvas)
          Writes the current view in a Canvas3D object to an JPG file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J3DImageFileWriter

public J3DImageFileWriter()
Method Detail

writeJPEGFile

public static void writeJPEGFile(java.lang.String fName,
                                 javax.media.j3d.Canvas3D canvas)
Writes the current view in a Canvas3D object to an JPG file


writeEPSFile

public static void writeEPSFile(java.lang.String fName,
                                javax.media.j3d.Canvas3D canvas)
Writes the current view in a Canvas3D object to an EPS file