snakeprogram3d
Class SnakeBufferedImages

java.lang.Object
  extended by snakeprogram3d.SnakeBufferedImages

public class SnakeBufferedImages
extends java.lang.Object

Class for linking the 2D image plus image stack with the 3D volume stacks. Originally used a buffered image, now creates 3D data from the snake_images.


Field Summary
 int CURRENT_FRAME
           
 int FRAMES
           
 boolean REAL
          REAL uses a resolution equivalent to the image being displayed
 int SLICES
           
 boolean TEST
          If hardware support is sufficient
 boolean USER_REAL
          toggled by model
 
Method Summary
 void createVolumeData()
           
 void createVolumeTexture()
          Provided there is volume data, this creates the texture.
 void decreaseMax()
          For changing the Brightness/Contrast of the Image.
 void decreaseMin()
          For changing the Brightness/Contrast of the Image.
 double getDepth()
           
 double getHeight()
           
 int getNSlices()
           
 VolumeTexture getVolumeTexture()
           
 double getWidth()
           
 double getZResolution()
           
 void increaseMax()
          For changing the Brightness/Contrast of the Image.
 void increaseMin()
          For changing the Brightness/Contrast of the Image.
 void updateFrame()
          Updates the image data for the volume displays.
 void updateGeometry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_FRAME

public int CURRENT_FRAME

FRAMES

public int FRAMES

SLICES

public int SLICES

TEST

public boolean TEST
If hardware support is sufficient


REAL

public boolean REAL
REAL uses a resolution equivalent to the image being displayed


USER_REAL

public boolean USER_REAL
toggled by model

Method Detail

updateGeometry

public void updateGeometry()

createVolumeData

public void createVolumeData()

createVolumeTexture

public void createVolumeTexture()
Provided there is volume data, this creates the texture.


getVolumeTexture

public VolumeTexture getVolumeTexture()
Returns:
the volume texture if supported otherwise null.

getHeight

public double getHeight()

getWidth

public double getWidth()

getDepth

public double getDepth()

getZResolution

public double getZResolution()

getNSlices

public int getNSlices()

increaseMax

public void increaseMax()
For changing the Brightness/Contrast of the Image. This raises the max cutoff that pixels saturate at.


decreaseMax

public void decreaseMax()
For changing the Brightness/Contrast of the Image. This lowers the max cutoff that pixels saturate at.


increaseMin

public void increaseMin()
For changing the Brightness/Contrast of the Image. This raises the min cutoff that pixels are considered completely transparent.


decreaseMin

public void decreaseMin()
For changing the Brightness/Contrast of the Image. This lowers the min cutoff that pixels are considered completely transparent.


updateFrame

public void updateFrame()
Updates the image data for the volume displays. Synces the frame with the snake_images.