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.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description float[]
BoundaryEmphasis
contribution of the boundary emphasis slider and therefor the contribution of the 2nd derivative of the data.float[]
Center
Widget Center:static int
Circle
Current three types of widget:float[]
Color
Default color for the color transfer function is white:boolean
InvertLUT
float[]
LeftLine
Transfer function left line:static int
m_iTextureID
float[]
MidLine
Transfer function mid-line:float[]
Radius
Transfer function radius:float[]
RightLine
Transfer function right line:private static long
serialVersionUID
float[]
Shift
Transfer function shift:static int
Square
static int
Triangle
int
Type
float[]
UseColorMap
turns the widget color map on/off in the GLSL shader code.float[]
UseWidget
turns the widget on/off in the GLSL shader code.float[]
XRatio
Transfer function y-ratios:float[]
YRatio
Transfer function y-ratios:static ClassificationWidgetState
ZERO_STATE
Default, unused state.
-
Constructor Summary
Constructors Constructor Description ClassificationWidgetState()
Default Constructor:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Copy(ClassificationWidgetState kIn)
Copies the input ClassificationWidgetState:void
dispose()
Dispose local memory.boolean
equals(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)
-
-