Package com.openinventor.volumeviz.nodes
Enum SoVolumeRender.SamplingAlignments
- java.lang.Object
-
- java.lang.Enum<SoVolumeRender.SamplingAlignments>
-
- com.openinventor.volumeviz.nodes.SoVolumeRender.SamplingAlignments
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoVolumeRender.SamplingAlignments>
- Enclosing class:
- SoVolumeRender
public static enum SoVolumeRender.SamplingAlignments extends java.lang.Enum<SoVolumeRender.SamplingAlignments> implements IntegerValuedEnum
Sampling alignment. Used with thesamplingAlignment
field.- Since:
- Open Inventor 9.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOUNDARY_ALIGNED
Samples are located on shells aligned with the volume's internal "boundary".DATA_ALIGNED
Samples are located on planes perpendicular to one axis of the volume.SMOOTH_BOUNDARY_ALIGNED
Similar to BOUNDARY_ALIGNED but uses a cubic interpolation to compute the boundary, giving smoother results when usingSoVolumeRenderingQuality.deferredLighting
.VIEW_ALIGNED
Samples are located on planes perpendicular to the view direction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoVolumeRender.SamplingAlignments
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoVolumeRender.SamplingAlignments
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoVolumeRender.SamplingAlignments[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEW_ALIGNED
public static final SoVolumeRender.SamplingAlignments VIEW_ALIGNED
Samples are located on planes perpendicular to the view direction.
-
DATA_ALIGNED
public static final SoVolumeRender.SamplingAlignments DATA_ALIGNED
Samples are located on planes perpendicular to one axis of the volume.
-
BOUNDARY_ALIGNED
public static final SoVolumeRender.SamplingAlignments 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
public static final SoVolumeRender.SamplingAlignments 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 Detail
-
values
public static SoVolumeRender.SamplingAlignments[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoVolumeRender.SamplingAlignments c : SoVolumeRender.SamplingAlignments.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoVolumeRender.SamplingAlignments valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoVolumeRender.SamplingAlignments valueOf(int val)
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.
-
-