Package gov.nih.mipav.view.renderer.J3D
Class ViewJComponentSurfaceVolume
java.lang.Object
gov.nih.mipav.view.renderer.J3D.ViewJComponentSurfaceVolume
Texture mapped image volume displayed in the surface renderer. .
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatAlphaBlending values for compositing two images.private floatAlphaBlending values for compositing two images.private RenderViewBaseFrame where the component image is displayed.private ModelImageModel for image A.private ModelImageModel for active image.private ModelImageModel for image A.private float[]Buffer holding image data for image A.private float[]Buffer holding image data for imageA GM.private float[]Buffer holding image data for active image.private float[]Buffer holding image data for image B.private float[]Buffer holding image data for imageB GM.private int[]Extents of the 3D image.private ModelLUTLookup table for image A.private ModelLUTLookup table for image A.private int[]Buffer for holding volume texture composite values for image A.private javax.vecmath.Vector3f[]Buffer for holding the most recently computed normal vectors of image A.private int[]Paint buffer.private ModelRGBRGB table for image A.private ModelRGBRGB table for image B.private VolumeTextureTexture mapped image.private intCurrent time slice being displayed. -
Constructor Summary
ConstructorsConstructorDescriptionViewJComponentSurfaceVolume(RenderViewBase _frame, ModelImage _imageA, ModelLUT _LUTa, float[] imgBufferA, ModelImage _imageB, ModelLUT _LUTb, float[] imgBufferB, VolumeTexture volTexture, int[] extents) Constructs new component image plane with the appropriate arrays. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets all variables to null, disposes, and garbage collects.protected voidfinalize()Calls garbage collector to release system resources.Accessor that returns the active image.float[]Accessor that returns the active image buffer.floatAccessor that returns the alphablend of the two image.int[]Access to retrieve the array ARGB composite 3D texture values for image A.getFrame()Accessor that returns the frame holding this component.Accessor that returns the image A.Accessor that returns the image B.getLUTa()Accessor that returns the model lut for the image A.getLUTb()Accessor that returns the model lut for the image B.getRGBTA()Accessor that returns the RGB table for image A.getRGBTB()Accessor that returns the RGB table for image B.voidsetBuffers(float[] imgBufferA, float[] imgBufferB) Sets the buffers for the actual data, the displayable image, and the paint.voidsetImageA(ModelImage image) Sets component's Image A.voidsetImageB(ModelImage image) Sets component's Image B.voidsetImageBufferB(float[] buffer) Sets component's Image B data buffer.voidAccessor that sets the model lut for the image A.voidAccessor that sets the model lut for the image B.voidSets the RGB table for ARGB image A.voidSets the RGB table for ARGB image B.booleanshow(int tSlice, boolean forceShow) For generating the display of 1 or 2 RGB images.booleanShows the gray scale image(s).private boolean
-
Field Details
-
alphaBlend
private float alphaBlendAlphaBlending values for compositing two images. -
alphaPrime
private float alphaPrimeAlphaBlending values for compositing two images. -
frame
Frame where the component image is displayed. -
imageA
Model for image A. -
imageActive
Model for active image. -
imageB
Model for image A. -
imageBufferA
private float[] imageBufferABuffer holding image data for image A. -
imageBufferA_GM
private float[] imageBufferA_GMBuffer holding image data for imageA GM. -
imageBufferActive
private float[] imageBufferActiveBuffer holding image data for active image. -
imageBufferB
private float[] imageBufferBBuffer holding image data for image B. -
imageBufferB_GM
private float[] imageBufferB_GMBuffer holding image data for imageB GM. -
imageExtents
private int[] imageExtentsExtents of the 3D image. -
LUTa
Lookup table for image A. -
LUTb
Lookup table for image A. -
m_aiCompositeImageA
private int[] m_aiCompositeImageABuffer for holding volume texture composite values for image A. -
m_akNormalsImageA
private javax.vecmath.Vector3f[] m_akNormalsImageABuffer for holding the most recently computed normal vectors of image A. -
paintBuffer
private int[] paintBufferPaint buffer. -
RGBTA
RGB table for image A. -
RGBTB
RGB table for image B. -
texture
Texture mapped image. -
timeSlice
private int timeSliceCurrent time slice being displayed.
-
-
Constructor Details
-
ViewJComponentSurfaceVolume
public ViewJComponentSurfaceVolume(RenderViewBase _frame, ModelImage _imageA, ModelLUT _LUTa, float[] imgBufferA, ModelImage _imageB, ModelLUT _LUTb, float[] imgBufferB, VolumeTexture volTexture, int[] extents) Constructs new component image plane with the appropriate arrays.- Parameters:
_frame- Frame where image(s) will be displayed._imageA- Model of the image that will be displayed._LUTa- LUT used to display imageA.imgBufferA- Storage buffer used to display image A._imageB- Model of the image that will be displayed._LUTb- LUT used to display imageB.imgBufferB- Storage buffer used to display image B.volTexture- Storage buffer used to build a displayable texture mapped image.extents- Initial display dimensions of the image.
-
-
Method Details
-
disposeLocal
public void disposeLocal()Sets all variables to null, disposes, and garbage collects. -
getActiveImage
Accessor that returns the active image.- Returns:
- The active image.
-
getActiveImageBuffer
public float[] getActiveImageBuffer()Accessor that returns the active image buffer.- Returns:
- The active image buffer
-
getAlphaBlend
public float getAlphaBlend()Accessor that returns the alphablend of the two image.- Returns:
- Opacity of paint.
-
getCompositeImageA
public int[] getCompositeImageA()Access to retrieve the array ARGB composite 3D texture values for image A. This is a copy of those values currently stored in the 3D texture.- Returns:
- int[] Array of ARGB composite 3D texture values for image A.
-
getFrame
Accessor that returns the frame holding this component.- Returns:
- The frame.
-
getImageA
Accessor that returns the image A.- Returns:
- Image A.
-
getImageB
Accessor that returns the image B.- Returns:
- Image B.
-
getLUTa
Accessor that returns the model lut for the image A.- Returns:
- The model LUT for image A.
-
getLUTb
Accessor that returns the model lut for the image B.- Returns:
- The model LUT for image B.
-
getRGBTA
Accessor that returns the RGB table for image A.- Returns:
- The RGB table.
-
getRGBTB
Accessor that returns the RGB table for image B.- Returns:
- The RGB table.
-
setBuffers
public void setBuffers(float[] imgBufferA, float[] imgBufferB) Sets the buffers for the actual data, the displayable image, and the paint.- Parameters:
imgBufferA- Storage buffer used to display image A.imgBufferB- Storage buffer used to display image B.
-
setImageA
Sets component's Image A.- Parameters:
image- The component's image A.
-
setImageB
Sets component's Image B.- Parameters:
image- The component's image B.
-
setImageBufferB
public void setImageBufferB(float[] buffer) Sets component's Image B data buffer.- Parameters:
buffer- The component's image B data buffer.
-
setLUTa
Accessor that sets the model lut for the image A.- Parameters:
LUT- The model LUT for image A.
-
setLUTb
Accessor that sets the model lut for the image B.- Parameters:
LUT- The model LUT for image B.
-
setRGBTA
Sets the RGB table for ARGB image A.- Parameters:
RGBT- RGB table.
-
setRGBTB
Sets the RGB table for ARGB image B.- Parameters:
RGBT- RGB table.
-
show
public boolean show(int tSlice, boolean forceShow) For generating the display of 1 or 2 RGB images.- Parameters:
tSlice- t (time) slice to show.forceShow- Forces this method to import image and recalculate java image.- Returns:
- Confirms if the show was successful.
-
show
Shows the gray scale image(s).- Parameters:
tSlice- t (time) slice to show_LUTa- LUTa - to change to new LUT for imageA else null._LUTb- LUTb - to change to new LUT for imageB else null.forceShow- Forces this method to import image and recalculate java image.- Returns:
- Confirms if the show was successful.
-
showAB
-
finalize
Calls garbage collector to release system resources.
-