Class RendererMapIntensity
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.volumeview.RendererMapIntensity
-
public class RendererMapIntensity extends java.lang.ObjectA helper class to map image values to RBB colors.
-
-
Field Summary
Fields Modifier and Type Field Description private float[]m_afLutInDOCUMENT ME!private float[]m_afLutOutDOCUMENT ME!private float[]m_afLutSlopeDOCUMENT ME!private int[]m_aiColorMapDOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description RendererMapIntensity(ModelLUT kLUT)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes of image memory and associated objects.protected voidfinalize()Calls dispose.intmapValue(float fInput)Return an ARGB value stored as an integer which represents the color corresponding to the input value.
-
-
-
Constructor Detail
-
RendererMapIntensity
public RendererMapIntensity(ModelLUT kLUT)
Constructor.- Parameters:
kLUT- ModelLUT Contains the color map and transfer function.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of image memory and associated objects.
-
mapValue
public final int mapValue(float fInput)
Return an ARGB value stored as an integer which represents the color corresponding to the input value.- Parameters:
fInput- float Input value to map.- Returns:
- int ARGB color value where bits 24-31 store the alpha, bits 16-23 store the red, bits 8-15 store the green, and bits 0-7 store the blue.
-
finalize
protected void finalize() throws java.lang.ThrowableCalls dispose.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable- DOCUMENT ME!
-
-