com.sygem.jazz3d3
Class Render

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
Direct Known Subclasses:
RenderOutline, RenderSolid, RenderTextured, RenderTransparent

public abstract class Render
extends java.lang.Object

The superclass of all rendering objects, this provides common functionality.

Version:
3.0a

Field Summary
static int FLAT
          Field used to set the rendering style to Lambertian shading.
static int GOURAUD
          Field used to set the rendering style to Gouraud shading.
static int IMAGE
          Field used to set the rendering style to vertex-image rendering.
static int LINE
          Field used to set the rendering style to wireframe mode.
static int NOSHADE
          Field used to set the rendering style to no shading.
static int PARTICLE
          Field used to set the rendering style to particle rendering.
 
Constructor Summary
Render()
          Default constructor
 
Method Summary
abstract  Render cloneRenderer()
          Clones the current renderer.
 int getDrawingMode()
          Gets the current drawing mode.
abstract  void read(java.io.FileInputStream reader)
           
 void setDrawingMode(int newMode)
          Set the drawing mode to one of the fields defined above.
abstract  void write(java.io.FileOutputStream writer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAT

public static final int FLAT
Field used to set the rendering style to Lambertian shading.

See Also:
Constant Field Values

GOURAUD

public static final int GOURAUD
Field used to set the rendering style to Gouraud shading.

See Also:
Constant Field Values

IMAGE

public static final int IMAGE
Field used to set the rendering style to vertex-image rendering.

See Also:
Constant Field Values

LINE

public static final int LINE
Field used to set the rendering style to wireframe mode.

See Also:
Constant Field Values

NOSHADE

public static final int NOSHADE
Field used to set the rendering style to no shading.

See Also:
Constant Field Values

PARTICLE

public static final int PARTICLE
Field used to set the rendering style to particle rendering.

See Also:
Constant Field Values
Constructor Detail

Render

public Render()
Default constructor

Method Detail

cloneRenderer

public abstract Render cloneRenderer()
Clones the current renderer.


getDrawingMode

public final int getDrawingMode()
Gets the current drawing mode.


read

public abstract void read(java.io.FileInputStream reader)
                   throws java.io.IOException
Throws:
java.io.IOException

setDrawingMode

public final void setDrawingMode(int newMode)
Set the drawing mode to one of the fields defined above.

Parameters:
newMode - The drawing mode to be used in this renderer.

write

public abstract void write(java.io.FileOutputStream writer)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 1999-2006 SyGem Software. All Rights Reserved.