public static enum SoVolumeRender.NumSlicesControls extends java.lang.Enum<SoVolumeRender.NumSlicesControls> implements IntegerValuedEnum
numSlicesControl
field.Enum Constant and Description |
---|
ALL
Use all samples
The number of samples depends on the viewing direction. |
AUTOMATIC
(Recommended) Use a number of samples computed as follows:
If numSlices is greater than zero, then n = complexity * 2 * numSlices where complexity comes from the #value field of the SoComplexity node and
numSlices comes from the numSlices field. |
MAIN_AXIS
Use a number of samples computed as follows:
n = complexity * 2 * volumeDataDimension[mainVisibleAxis] where complexity comes from the #value field of the SoComplexity node. |
MANUAL
Use the number of samples specified by the
numSlices field. |
Modifier and Type | Method and Description |
---|---|
static SoVolumeRender.NumSlicesControls |
fromValue(int val)
Deprecated.
Use
valueOf(int) instead. |
int |
getValue()
Returns the integer value of the enum constant.
|
static SoVolumeRender.NumSlicesControls |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoVolumeRender.NumSlicesControls |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoVolumeRender.NumSlicesControls[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoVolumeRender.NumSlicesControls ALL
public static final SoVolumeRender.NumSlicesControls MANUAL
numSlices
field.
The number of samples does not depend on the viewing direction.public static final SoVolumeRender.NumSlicesControls AUTOMATIC
SoComplexity
node and
numSlices comes from the numSlices
field.
The number of samples does not depend on the viewing direction.
If
numSlices is any value less than or equal to 0, the dimension of the volume data is used instead of numSlices, so
n =
complexity * 2 *
volumeDimension
The number of samples depends on the viewing direction.
The factor 2 is used because by default complexity is equal to 0.5. So, by default, the behavior for numSlices greater than zero is the same as MANUAL and the default behavior for numSlices less than or equal to zero is the same as ALL.
You can increase the complexity up to 1.0, which would double the number of samples used. You can decrease the complexity to reduce the number of samples used. The global alpha is corrected so that the brightness looks the same.
public static final SoVolumeRender.NumSlicesControls MAIN_AXIS
SoComplexity
node.
The number of samples depends on the viewing direction. public static SoVolumeRender.NumSlicesControls[] values()
for (SoVolumeRender.NumSlicesControls c : SoVolumeRender.NumSlicesControls.values()) System.out.println(c);
public static SoVolumeRender.NumSlicesControls valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static SoVolumeRender.NumSlicesControls fromValue(int val)
valueOf(int)
instead.public static SoVolumeRender.NumSlicesControls valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com