edu.stanford.rsl.konrad.cuda
Class ImagePlusVolumeRenderer
java.lang.Object
edu.stanford.rsl.konrad.cuda.JCudaDriverTextureSample
edu.stanford.rsl.konrad.cuda.ImagePlusVolumeRenderer
- All Implemented Interfaces:
- java.util.EventListener, javax.media.opengl.GLEventListener
public class ImagePlusVolumeRenderer
- extends JCudaDriverTextureSample
Method Summary |
void |
init(javax.media.opengl.GLAutoDrawable drawable)
Implementation of GLEventListener: Called to initialize the
GLAutoDrawable. |
static void |
main(java.lang.String[] args)
Entry point for this sample. |
void |
resetTimer()
|
void |
setVoxel(byte[] h_volume,
int i,
int j,
int k,
double value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImagePlusVolumeRenderer
public ImagePlusVolumeRenderer(byte[] volumeData,
int sizeX,
int sizeY,
int sizeZ,
boolean stereoMode)
ImagePlusVolumeRenderer
public ImagePlusVolumeRenderer(ij.ImagePlus image)
setVoxel
public void setVoxel(byte[] h_volume,
int i,
int j,
int k,
double value)
main
public static void main(java.lang.String[] args)
- Entry point for this sample.
- Parameters:
args
- not used
resetTimer
public void resetTimer()
init
public void init(javax.media.opengl.GLAutoDrawable drawable)
- Description copied from class:
JCudaDriverTextureSample
- Implementation of GLEventListener: Called to initialize the
GLAutoDrawable. This method will initialize the JCudaDriver
and cause the initialization of CUDA and the OpenGL PBO.
- Specified by:
init
in interface javax.media.opengl.GLEventListener
- Overrides:
init
in class JCudaDriverTextureSample