Class ClassificationWidgetState
java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Render.MultiDimensionalTransfer.ClassificationWidgetState
- All Implemented Interfaces:
Serializable
This 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]contribution of the boundary emphasis slider and therefor the contribution of the 2nd derivative of the data.float[]Widget Center:static intCurrent three types of widget:float[]Default color for the color transfer function is white:booleanfloat[]Transfer function left line:static intfloat[]Transfer function mid-line:float[]Transfer function radius:float[]Transfer function right line:private static final longfloat[]Transfer function shift:static intstatic intintfloat[]turns the widget color map on/off in the GLSL shader code.float[]turns the widget on/off in the GLSL shader code.float[]Transfer function y-ratios:float[]Transfer function y-ratios:static ClassificationWidgetStateDefault, unused state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the input ClassificationWidgetState:voiddispose()Dispose local memory.boolean
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
Circle
public static int CircleCurrent three types of widget: -
Square
public static int Square -
Triangle
public static int Triangle -
m_iTextureID
public static int m_iTextureID -
ZERO_STATE
Default, unused state. -
Color
public float[] ColorDefault color for the color transfer function is white: -
Center
public float[] CenterWidget Center: -
MidLine
public float[] MidLineTransfer function mid-line: -
LeftLine
public float[] LeftLineTransfer function left line: -
RightLine
public float[] RightLineTransfer function right line: -
Shift
public float[] ShiftTransfer function shift: -
XRatio
public float[] XRatioTransfer function y-ratios: -
YRatio
public float[] YRatioTransfer function y-ratios: -
Radius
public float[] RadiusTransfer function radius: -
BoundaryEmphasis
public float[] BoundaryEmphasiscontribution of the boundary emphasis slider and therefor the contribution of the 2nd derivative of the data. -
UseWidget
public float[] UseWidgetturns the widget on/off in the GLSL shader code. -
UseColorMap
public float[] UseColorMapturns the widget color map on/off in the GLSL shader code. -
InvertLUT
public boolean InvertLUT -
Type
public int Type
-
-
Constructor Details
-
ClassificationWidgetState
public ClassificationWidgetState()Default Constructor:
-
-
Method Details
-
Copy
Copies the input ClassificationWidgetState:- Parameters:
kIn- ClassificationWidgetState to copy.
-
dispose
public void dispose()Dispose local memory. -
equals
-