org.bouncycastle.graphics.rt
Class Renderer
java.lang.Object
|
+--org.bouncycastle.graphics.rt.Renderer
- public class Renderer
- extends java.lang.Object
Constructor Summary |
protected |
Renderer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Renderer
protected Renderer()
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