VolumeJ
Class VJZBuffer

java.lang.Object
  |
  +--VolumeJ.VJZBuffer

public class VJZBuffer
extends java.lang.Object

VJZBuffer. Copyright (c) 2001-2002, Michael Abramoff. All rights reserved.


Constructor Summary
VJZBuffer(int width, int height)
          Create a new VJZBuffer filled with 0.
VJZBuffer(int width, int height, double f)
          Create a new VJZBuffer filled with 0.
 
Method Summary
protected  double get(int i, int j)
          Get a depth at i,j.
 float[] getBuffer()
           
protected  void insert(double depth, int i, int j)
          Insert a depth at i,j into the z-buffer.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VJZBuffer

public VJZBuffer(int width,
                 int height)
Create a new VJZBuffer filled with 0.
Parameters:
width -  
height - the dimensions of the buffer.

VJZBuffer

public VJZBuffer(int width,
                 int height,
                 double f)
Create a new VJZBuffer filled with 0.
Parameters:
width -  
height - the dimensions of the buffer.
Method Detail

insert

protected void insert(double depth,
                      int i,
                      int j)
Insert a depth at i,j into the z-buffer.
Parameters:
depth - the depth at i,j
i,j - the positions in viewspace coordinates.

get

protected double get(int i,
                     int j)
Get a depth at i,j.
Parameters:
i,j - the positions in viewspace coordinates.
Returns:
the depth at i,j

getBuffer

public float[] getBuffer()