Package com.openinventor.volumeviz.nodes
Enum Class SoVolumeRender.SamplingAlignments
java.lang.Object
java.lang.Enum<SoVolumeRender.SamplingAlignments>
com.openinventor.volumeviz.nodes.SoVolumeRender.SamplingAlignments
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoVolumeRender.SamplingAlignments>
,Constable
- Enclosing class:
SoVolumeRender
public static enum SoVolumeRender.SamplingAlignments
extends Enum<SoVolumeRender.SamplingAlignments>
implements IntegerValuedEnum
Sampling alignment.
Used with the
samplingAlignment
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 ConstantDescriptionSamples are located on shells aligned with the volume's internal "boundary".Samples are located on planes perpendicular to one axis of the volume.Similar to BOUNDARY_ALIGNED but uses a cubic interpolation to compute the boundary, giving smoother results when usingSoVolumeRenderingQuality.deferredLighting
.Samples are located on planes perpendicular to the view direction. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.valueOf
(int val) Returns the enum constant of this type with the specified integer valueReturns the enum constant of this class with the specified name.static SoVolumeRender.SamplingAlignments[]
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
-
VIEW_ALIGNED
Samples are located on planes perpendicular to the view direction. -
DATA_ALIGNED
Samples are located on planes perpendicular to one axis of the volume. -
BOUNDARY_ALIGNED
Samples are located on shells aligned with the volume's internal "boundary". Each ray begins sampling at the first intersected voxel that has an alpha value >opacityThreshold
. -
SMOOTH_BOUNDARY_ALIGNED
Similar to BOUNDARY_ALIGNED but uses a cubic interpolation to compute the boundary, giving smoother results when usingSoVolumeRenderingQuality.deferredLighting
. When using linear interpolation and deferred lighting, BOUNDARY_ALIGNED can generate "flat shading" due to linear interpolation between voxels. SMOOTH_BOUNDARY_ALIGNED will generate a smooth shading using a cubic interpolation to find the volume's boundary and use a linear interpolation for the rest of volume. This is a good compromise between result and performances of a full tricubic interpolation. Please refer toSoVolumeRenderingQuality.deferredLighting
andSoVolumeShape.interpolation
for details. LIMITATIONS SMOOTH_BOUNDARY_ALIGNED is not supported in the following case:- With isosurface rendering
- When using gradients computed from the voxel values (
SoVolumeRenderingQuality.lighting
for instance). - When using
SoUniformGridClipping
nodes. In one of the above case, BOUNDARY_ALIGNED is used.Warning Possibly heavy GPU usage
-
-
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.
-