Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt
Class Renderer

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderer

public class Renderer
extends java.lang.Object


Field Summary
protected  Background background
           
protected  Camera camera
           
protected  boolean clamp
           
protected  int currentTimeSlice
           
protected  int currentY
           
protected  int endX
           
protected  int endY
           
protected static float FACTOR
           
protected  float focalDistance
           
protected  int hitMovingObj
           
protected  Vector3f inc
           
protected  boolean jitter
           
protected  float lensRadius
           
static int maxTimeSamples
           
protected  int midX
           
protected  int midY
           
protected  float pixelGap
           
protected  RandomTable rand
           
static int RGB
           
static int RGBA
           
static int RGBAO
           
protected  SampleMask sampleMask
           
protected  int samplesPerPixel
           
protected  int screenH
           
protected  int screenW
           
protected  int startX
           
protected  int startY
           
protected  int timeSamplesPerPixel
           
protected  Matrix4f trans
           
protected  World world
           
 
Constructor Summary
protected Renderer()
           
 
Method Summary
 void doRender(int format, java.io.OutputStream out)
           
 Background getBackground()
          get the background for this renderer.
 int getImageDepth()
           
 int getImageHeight()
           
 int getImageWidth()
           
 float getRandNum()
           
 World getWorld()
          get "world" for this renderer.
 boolean renderLineByLine(int format, java.io.OutputStream out)
           
 void setBackground(Background background)
          set the background for this renderer.
 void setCamera(Camera camera)
           
 void setClamp(boolean clamp)
          set whether, or not, to clamp (clamping is the process of truncating overilluminated pixels back to 1).
 void setImageSize(int xSize, int ySize)
          set the size of the image.
 void setJittering(boolean jitter)
           
 void setObjects(Illuminated objs)
          set the object environment to be used by this renderer.
 void setSamplesPerPixel(int samplesPerPixel)
           
 void setWindow(int x, int y, int xLen, int yLen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTOR

protected static float FACTOR

camera

protected Camera camera

world

protected World world

screenW

protected int screenW

screenH

protected int screenH

midX

protected int midX

midY

protected int midY

startX

protected int startX

startY

protected int startY

endX

protected int endX

endY

protected int endY

currentY

protected int currentY

pixelGap

protected float pixelGap

hitMovingObj

protected int hitMovingObj

currentTimeSlice

protected int currentTimeSlice

samplesPerPixel

protected int samplesPerPixel

timeSamplesPerPixel

protected int timeSamplesPerPixel

jitter

protected boolean jitter

clamp

protected boolean clamp

RGB

public static final int RGB

RGBA

public static final int RGBA

RGBAO

public static final int RGBAO

maxTimeSamples

public static int maxTimeSamples

rand

protected RandomTable rand

background

protected Background background

inc

protected Vector3f inc

trans

protected Matrix4f trans

lensRadius

protected float lensRadius

focalDistance

protected float focalDistance

sampleMask

protected SampleMask sampleMask
Constructor Detail

Renderer

protected Renderer()
Method Detail

setObjects

public void setObjects(Illuminated objs)
set the object environment to be used by this renderer.
Parameters:
the - world we are trying to render.

getWorld

public World getWorld()
get "world" for this renderer.
Returns:
the environment this renderer is trying to handle.

setBackground

public void setBackground(Background background)
set the background for this renderer.
Parameters:
background - the background to use.

getBackground

public Background getBackground()
get the background for this renderer.
Returns:
the renderer's background node.

setClamp

public void setClamp(boolean clamp)
set whether, or not, to clamp (clamping is the process of truncating overilluminated pixels back to 1).
Parameters:
clamp - true if we should, false otherwise.

setImageSize

public void setImageSize(int xSize,
                         int ySize)
set the size of the image.
Parameters:
xSize - image size in x (width).
ySize - image size in y (height).

setWindow

public void setWindow(int x,
                      int y,
                      int xLen,
                      int yLen)

setSamplesPerPixel

public void setSamplesPerPixel(int samplesPerPixel)

setJittering

public void setJittering(boolean jitter)

setCamera

public void setCamera(Camera camera)

getRandNum

public float getRandNum()

getImageWidth

public int getImageWidth()

getImageHeight

public int getImageHeight()

getImageDepth

public int getImageDepth()

doRender

public void doRender(int format,
                     java.io.OutputStream out)
              throws java.io.IOException

renderLineByLine

public boolean renderLineByLine(int format,
                                java.io.OutputStream out)
                         throws java.io.IOException

Bouncy Castle Rendering Toolkit 1.0