edu.stanford.rsl.konrad.cuda
Class ImagePlusVolumeRenderer

java.lang.Object
  extended by edu.stanford.rsl.konrad.cuda.JCudaDriverTextureSample
      extended by edu.stanford.rsl.konrad.cuda.ImagePlusVolumeRenderer
All Implemented Interfaces:
java.util.EventListener, javax.media.opengl.GLEventListener

public class ImagePlusVolumeRenderer
extends JCudaDriverTextureSample


Constructor Summary
ImagePlusVolumeRenderer(byte[] volumeData, int sizeX, int sizeY, int sizeZ, boolean stereoMode)
           
ImagePlusVolumeRenderer(ij.ImagePlus image)
           
 
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 edu.stanford.rsl.konrad.cuda.JCudaDriverTextureSample
display, displayChanged, reshape, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePlusVolumeRenderer

public ImagePlusVolumeRenderer(byte[] volumeData,
                               int sizeX,
                               int sizeY,
                               int sizeZ,
                               boolean stereoMode)

ImagePlusVolumeRenderer

public ImagePlusVolumeRenderer(ij.ImagePlus image)
Method Detail

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