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 |
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.
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,ji,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()
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.