Class ClassificationWidgetState
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Render.MultiDimensionalTransfer.ClassificationWidgetState
-
- All Implemented Interfaces:
java.io.Serializable
public class ClassificationWidgetState extends java.lang.Object implements java.io.SerializableThis class stores the information needed for calculating how the multi-histogram is applied to the volume to create the rendered image. It encapsulates all the parameters that can be set for the widget and is used to pass those parameters to the GLSL shader program that renders the volume. Each widget used in the multi-histogram tool contains it's own ClassificationWidgetState which is passed to the GLSL shader program. The number of widgets is limited to VolumeImageMultiDimensionalTransfer.MAX_WIDGETS.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description float[]BoundaryEmphasiscontribution of the boundary emphasis slider and therefor the contribution of the 2nd derivative of the data.float[]CenterWidget Center:static intCircleCurrent three types of widget:float[]ColorDefault color for the color transfer function is white:booleanInvertLUTfloat[]LeftLineTransfer function left line:static intm_iTextureIDfloat[]MidLineTransfer function mid-line:float[]RadiusTransfer function radius:float[]RightLineTransfer function right line:private static longserialVersionUIDfloat[]ShiftTransfer function shift:static intSquarestatic intTriangleintTypefloat[]UseColorMapturns the widget color map on/off in the GLSL shader code.float[]UseWidgetturns the widget on/off in the GLSL shader code.float[]XRatioTransfer function y-ratios:float[]YRatioTransfer function y-ratios:static ClassificationWidgetStateZERO_STATEDefault, unused state.
-
Constructor Summary
Constructors Constructor Description ClassificationWidgetState()Default Constructor:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidCopy(ClassificationWidgetState kIn)Copies the input ClassificationWidgetState:voiddispose()Dispose local memory.booleanequals(ClassificationWidgetState kIn)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
Circle
public static int Circle
Current three types of widget:
-
Square
public static int Square
-
Triangle
public static int Triangle
-
m_iTextureID
public static int m_iTextureID
-
ZERO_STATE
public static ClassificationWidgetState ZERO_STATE
Default, unused state.
-
Color
public float[] Color
Default color for the color transfer function is white:
-
Center
public float[] Center
Widget Center:
-
MidLine
public float[] MidLine
Transfer function mid-line:
-
LeftLine
public float[] LeftLine
Transfer function left line:
-
RightLine
public float[] RightLine
Transfer function right line:
-
Shift
public float[] Shift
Transfer function shift:
-
XRatio
public float[] XRatio
Transfer function y-ratios:
-
YRatio
public float[] YRatio
Transfer function y-ratios:
-
Radius
public float[] Radius
Transfer function radius:
-
BoundaryEmphasis
public float[] BoundaryEmphasis
contribution of the boundary emphasis slider and therefor the contribution of the 2nd derivative of the data.
-
UseWidget
public float[] UseWidget
turns the widget on/off in the GLSL shader code.
-
UseColorMap
public float[] UseColorMap
turns the widget color map on/off in the GLSL shader code.
-
InvertLUT
public boolean InvertLUT
-
Type
public int Type
-
-
Method Detail
-
Copy
public void Copy(ClassificationWidgetState kIn)
Copies the input ClassificationWidgetState:- Parameters:
kIn- ClassificationWidgetState to copy.
-
dispose
public void dispose()
Dispose local memory.
-
equals
public boolean equals(ClassificationWidgetState kIn)
-
-