Class 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)
    • 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 imageB
        rvolBufferA - rendering buffer A
        rvolBufferB - rendering buffer B // Tagged for CHECKING DELETING
        extents - image dimension extents
        renderMode - rendering mode, MIP, DRR and SURFACE
        maxExtent - 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 class ViewJComponentRenderImage
        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 class ViewJComponentRenderImage
        Parameters:
        rayStepSize - interp step size
        raySpaceSize - DOCUMENT ME!