Class ViewJComponentRenderImageRayCast
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.volumeview.ViewJComponentRenderImage
-
- gov.nih.mipav.view.renderer.J3D.volumeview.ViewJComponentRenderImageRayCast
-
- All Implemented Interfaces:
java.awt.event.MouseMotionListener
,java.util.EventListener
public class ViewJComponentRenderImageRayCast extends ViewJComponentRenderImage implements java.awt.event.MouseMotionListener
Need to add.- Version:
- 0.1 Nov 18, 1997
- Author:
- Matthew J. McAuliffe, Ph.D. (primary)
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ViewJComponentRenderImage
imageExtentMax, LUTa, LUTb, m_fAlphaBlend, m_kBackgroundColor, m_kImage, m_kImageA, m_kImageB, m_kImageDim, m_kRendererImageDataA, m_kRendererImageDataB, m_kRGBTA, m_kRGBTB, m_kVolumeRenderer, mode, ModeCOMPOSITE, ModeMIP, ModeSURFACE, ModeSURFACEFAST, ModeXRAY, raySpaceSize, rayStepSize, rayTracerA, rayTracerB, renBufferA, renBufferB, renderingMode, timeSlice, timeSliceA, timeSliceB, transformBU, transformCounter
-
-
Constructor Summary
Constructors Constructor Description ViewJComponentRenderImageRayCast(VolumeRenderer kVolumeRenderer, ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, int[] rvolBufferA, int[] rvolBufferB, int[] extents, int renderMode, int maxExtent)
ImageA and ImageB are expected to be of the same dimensionality !!
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBlurFlag(boolean flag)
Blur the result ray traced image or not.void
setRenderMode(int renderMode)
Change the camera model.void
setVertexDiffuseColor(java.awt.Color color)
Set the vertex material diffuse color.void
setVertexSpecularColor(java.awt.Color color)
Set the vertex material specular color.protected void
trace(int rayStepSize, int raySpaceSize)
Ray trace by step size.-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ViewJComponentRenderImage
disposeLocal, drawImages, finalize, getalphaBlend, getAxisAngle, getEyePoint, getImage, getImageA, getImageB, getLUTa, getLUTb, getParallel, getRayTracerA, getRenderMode, getRGBTA, getRGBTB, getSpaceSize, getStepSize, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, moveTrackBall, setAlphaBlend, setBackgroundColor, setImageA, setImageB, setLUTa, setLUTb, setMaxExtent, setParallel, setRGBTA, setRGBTB, setSpaceSize, setStepSize, setXBoundNeg, setXBoundPos, setYBoundNeg, setYBoundPos, setZBoundNeg, setZBoundPos, show, updateLighting, updateTransform, updateView
-
-
-
-
Constructor Detail
-
ViewJComponentRenderImageRayCast
public ViewJComponentRenderImageRayCast(VolumeRenderer kVolumeRenderer, ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, int[] rvolBufferA, int[] rvolBufferB, int[] extents, int renderMode, int maxExtent)
ImageA and ImageB are expected to be of the same dimensionality !!- Parameters:
kVolumeRenderer
- Access to renderer of which this is an instance._imageA
- Model of the image that will be displayed_LUTa
- LUT used to display imageA_imageB
- Model of the image that will be displayed_LUTb
- LUT used to display imageBrvolBufferA
- rendering buffer ArvolBufferB
- rendering buffer B // Tagged for CHECKING DELETINGextents
- image dimension extentsrenderMode
- rendering mode, MIP, DRR and SURFACEmaxExtent
- maximium extent value.
-
-
Method Detail
-
setBlurFlag
public void setBlurFlag(boolean flag)
Blur the result ray traced image or not.- Parameters:
flag
- true bluring to reduce contract, false not bluring
-
setRenderMode
public void setRenderMode(int renderMode)
Change the camera model.- Specified by:
setRenderMode
in classViewJComponentRenderImage
- Parameters:
renderMode
- rendering mode.
-
setVertexDiffuseColor
public void setVertexDiffuseColor(java.awt.Color color)
Set the vertex material diffuse color.- Parameters:
color
- diffuse color
-
setVertexSpecularColor
public void setVertexSpecularColor(java.awt.Color color)
Set the vertex material specular color.- Parameters:
color
- specular color
-
trace
protected void trace(int rayStepSize, int raySpaceSize)
Ray trace by step size.- Specified by:
trace
in classViewJComponentRenderImage
- Parameters:
rayStepSize
- interp step sizeraySpaceSize
- DOCUMENT ME!
-
-