com.sygem.jazz3d3
Class RenderOutline

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
      extended bycom.sygem.jazz3d3.RenderOutline

public class RenderOutline
extends Render

Renderer that provides the ability to use wireframe, particle or image modes. NOTE: All objects start life with a RenderOutline by default.

Version:
3.0a

Field Summary
static int SIXTEEN
          Set the rendered image size to 16x16
static int SIXTYFOUR
          Set the rendered image size to 64x64
static int THIRTYTWO
          Set the rendered image size to 32x32
 
Fields inherited from class com.sygem.jazz3d3.Render
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE
 
Constructor Summary
RenderOutline()
          Default constructor
 
Method Summary
 Render cloneRenderer()
          Returns a copy of the current renderer.
 boolean getHiddenLineRemoval()
          Query the current hidden-line removal state.
 int getPenColourB()
          Returns the Blue colour of the lines/particles
 int getPenColourG()
          Returns the Green colour of the lines/particles
 int getPenColourR()
          Returns the Red colour of the lines/particles
 void read(java.io.FileInputStream reader)
           
 void setHiddenLineRemoval(boolean t)
          Turn on/off hidden-line removal.
 void setImageSize(int size)
          Set the size of the image for the image-rendering mode.
 void setPenColour(int r, int g, int b)
          Set the colour of the lines/particles
 int setVertexImage(Texture tex)
          Load a texture to be used with the image-render mode.
 void write(java.io.FileOutputStream writer)
           
 
Methods inherited from class com.sygem.jazz3d3.Render
getDrawingMode, setDrawingMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIXTEEN

public static final int SIXTEEN
Set the rendered image size to 16x16

See Also:
Constant Field Values

SIXTYFOUR

public static final int SIXTYFOUR
Set the rendered image size to 64x64

See Also:
Constant Field Values

THIRTYTWO

public static final int THIRTYTWO
Set the rendered image size to 32x32

See Also:
Constant Field Values
Constructor Detail

RenderOutline

public RenderOutline()
Default constructor

Method Detail

cloneRenderer

public Render cloneRenderer()
Returns a copy of the current renderer. All fields are copied across.

Specified by:
cloneRenderer in class Render

getHiddenLineRemoval

public final boolean getHiddenLineRemoval()
Query the current hidden-line removal state.


getPenColourB

public final int getPenColourB()
Returns the Blue colour of the lines/particles


getPenColourG

public final int getPenColourG()
Returns the Green colour of the lines/particles


getPenColourR

public final int getPenColourR()
Returns the Red colour of the lines/particles


read

public void read(java.io.FileInputStream reader)
          throws java.io.IOException
Specified by:
read in class Render
Throws:
java.io.IOException

setHiddenLineRemoval

public final void setHiddenLineRemoval(boolean t)
Turn on/off hidden-line removal.


setImageSize

public final void setImageSize(int size)
Set the size of the image for the image-rendering mode.

Parameters:
size - Either SIXTEEN, THIRTYTWO or SIXTYFOUR
See Also:
SIXTEEN, THIRTYTWO, SIXTYFOUR

setPenColour

public final void setPenColour(int r,
                               int g,
                               int b)
Set the colour of the lines/particles

Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

setVertexImage

public final int setVertexImage(Texture tex)
Load a texture to be used with the image-render mode.

Parameters:
tex - A Texture
See Also:
Object3d.setVertexTexture(int, int)

write

public void write(java.io.FileOutputStream writer)
           throws java.io.IOException
Specified by:
write in class Render
Throws:
java.io.IOException


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