Package com.openinventor.volumeviz.nodes
Enum Class SoVolumeRender.RenderModes
java.lang.Object
java.lang.Enum<SoVolumeRender.RenderModes>
com.openinventor.volumeviz.nodes.SoVolumeRender.RenderModes
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoVolumeRender.RenderModes>
,Constable
- Enclosing class:
SoVolumeRender
public static enum SoVolumeRender.RenderModes
extends Enum<SoVolumeRender.RenderModes>
implements IntegerValuedEnum
Composition mode.
Used with the
renderMode
field.
- Since:
- Open Inventor 9.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAverage Intensity projection (AIP).Gradient Difference Accumulation.Intensity Difference Accumulation.Maximum Gradient Difference Accumulation.Maximum Intensity Difference Accumulation (MIDA).Maximum intensity projection (MIP).Minimum intensity projection (MinIP).Ray sum intensity projection (RSP).Alpha compositing (Default). -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.static SoVolumeRender.RenderModes
valueOf
(int val) Returns the enum constant of this type with the specified integer valuestatic SoVolumeRender.RenderModes
Returns the enum constant of this class with the specified name.static SoVolumeRender.RenderModes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VOLUME_RENDERING
Alpha compositing (Default). Also called Direct Volume Rendering (DVR) it blends the R, G, and B components for each data value along the sampling ray based on the alpha value (alpha blending). -
MIN_INTENSITY_PROJECTION
Minimum intensity projection (MinIP). The minimum value found along each ray is used to determine color. -
MAX_INTENSITY_PROJECTION
Maximum intensity projection (MIP). The maximum value found along each ray is used to determine color. -
SUM_INTENSITY_PROJECTION
Ray sum intensity projection (RSP). The values found along each ray are accumulated. Then the total value is normalized by the nominal number of samples for every ray (seenumSlices
), which is the same for all rays. The values seen in shader functions, e.g. VVizComputeFragmentColor are still in the range 0..1, but the range of values that represents is quite different from the voxel data range. -
AVERAGE_INTENSITY_PROJECTION
Average Intensity projection (AIP). The values found along each ray are accumulated. The total value is divided by the actual number of samples along the current ray. The actual number of samples may be different for each ray. The resulting data range will be similar to the voxel data range but not necessarily the same. If there are many low, e.g. 0, valued voxels, the average may be very small. -
MAX_INTENSITY_DIFFERENCE_ACCUMULATION
Maximum Intensity Difference Accumulation (MIDA). Assuming the important features of the volumetric datasets are of high scalar values, this mode changes the compositing behavior by decreasing the accumulated color and opacity when the incoming sample's scalar intensity is higher than any of those before it along the viewing ray. In this way, the high scalar value features in the volumetric datasets won't be occluded as much as in a standard compositing (i.e. VOLUME_RENDERING).See Instant volume visualization using maximum intensity difference accumulation. Stefan Bruckner and M. Eduard Groller. 2009. In Proceedings of the 11th Eurographics / IEEE - VGTC conference on Visualization (EuroVis'09) for details.
-
INTENSITY_DIFFERENCE_ACCUMULATION
Intensity Difference Accumulation. This mode acts as MIDA but only the opacity of the accumulated color is affected and the modulation is based on the intensity difference of two consecutive samples. This mode should emphase the difference between two different structures with different scalar intensities.See Fast Volumetric Data Exploration with Importance-Based Accumulated Transparency Modulation. Wan Yong and Hansen Chuck, 2010, IEEE/ EG Symposium on Volume Graphics for details.
-
MAX_GRADIENT_DIFFERENCE_ACCUMULATION
Maximum Gradient Difference Accumulation. This mode acts as INTENSITY_DIFFERENCE_ACCUMULATION but the composition is affected when the incoming sample's gradient is higher than any of those before it along the viewing ray. It aims at revealing important features (i.e. higher gradient transitions) all along the ray direction. -
GRADIENT_DIFFERENCE_ACCUMULATION
Gradient Difference Accumulation. This mode acts as MAX_GRADIENT_DIFFERENCE_ACCUMULATION but the opacity modulation is based on the gradient difference of two consecutive samples. It leads to a more transparent result, as more samples along the viewing ray contribute to the final result.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-