Class ModelLUTHelper
- java.lang.Object
-
- gov.nih.mipav.view.renderer.flythroughview.ModelLUTHelper
-
public class ModelLUTHelper extends java.lang.Object
A helper class to map image values to RGB colors.
-
-
Field Summary
Fields Modifier and Type Field Description private float[]
m_afLutIn
DOCUMENT ME!private float[]
m_afLutOut
DOCUMENT ME!private float[]
m_afLutSlope
DOCUMENT ME!private int[]
m_aiColorMap
DOCUMENT ME!private ModelLUT
m_kModelLUT
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description ModelLUTHelper(ModelLUT kLUT)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of image memory and associated objects.protected void
finalize()
Calls dispose.ModelLUT
getModelLUT()
Get access to the associated ModelLUT instance.int
mapValue(float fInput)
Return an ARGB value stored as an integer which represents the color corresponding to the input value.
-
-
-
Field Detail
-
m_afLutIn
private float[] m_afLutIn
DOCUMENT ME!
-
m_afLutOut
private float[] m_afLutOut
DOCUMENT ME!
-
m_afLutSlope
private float[] m_afLutSlope
DOCUMENT ME!
-
m_aiColorMap
private int[] m_aiColorMap
DOCUMENT ME!
-
m_kModelLUT
private ModelLUT m_kModelLUT
DOCUMENT ME!
-
-
Constructor Detail
-
ModelLUTHelper
public ModelLUTHelper(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.
-
getModelLUT
public ModelLUT getModelLUT()
Get access to the associated ModelLUT instance.- Returns:
- ModelLUT Reference to ModelLUT passed in the constructor.
-
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.Throwable
Calls dispose.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
- DOCUMENT ME!
-
-