Class RayCastIntensity

    • Field Detail

      • m_acImageA

        protected byte[] m_acImageA
        DOCUMENT ME!
      • m_acImageB

        protected byte[] m_acImageB
        DOCUMENT ME!
    • Constructor Detail

      • RayCastIntensity

        protected RayCastIntensity​(ModelImage kImage,
                                   int iRBound,
                                   int[] aiRImage)
        The constructor for the ray tracer.
        Parameters:
        kImage - the 3D image
        iRBound - the dimension of the square 2D renderer image
        aiRImage - The rendered image data stored in row-major order. Each integer pixel represents an RGB color in the format B | (G << 8) | (R << 16).
    • Method Detail

      • disposeLocal

        public void disposeLocal​(boolean flag)
        Clean memory.
        Overrides:
        disposeLocal in class RayCastRenderer
        Parameters:
        flag - is true call the super.disposeLocal
      • hasInputData

        public boolean hasInputData()
        Return indication as to whether or not the input image data has been specified yet.
        Specified by:
        hasInputData in interface RendererInterfaceIntensity
        Specified by:
        hasInputData in class Renderer
        Returns:
        boolean True if the input image data has been specified.
      • hasInputMap

        public boolean hasInputMap()
        Return indication as to whether or not a LUT to use for mapping input intensity values to colors has been specified.
        Specified by:
        hasInputMap in interface RendererInterfaceIntensity
        Returns:
        boolean True if such a LUT has been defined.
      • setInput

        public void setInput​(byte[] acImageB,
                             byte[] acImageA)
        Specify the input volume to use for rendering. The image data stored in order of slice indices, each slice stored in row-major order. That is, slice z=0 is stored first, slice z=1 is stored next, and so on. In slice z=0, the y=0 row is stored first, the y=1 row is stored next, and so on.
        Specified by:
        setInput in interface RendererInterfaceIntensity
        Parameters:
        acImageB - byte[] Array of byte intensity values for volume.
        acImageA - byte[] Array of byte alpha values for volume.
      • setInputMap

        public void setInputMap​(RendererMapIntensity kMap)
        Specify the lookup table to use for mapping input intensity values to colors.
        Specified by:
        setInputMap in interface RendererInterfaceIntensity
        Parameters:
        kMap - Look up table for mapping the intensity values to colors.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Calls dispose.
        Overrides:
        finalize in class RayCastRenderer
        Throws:
        java.lang.Throwable - DOCUMENT ME!