public static enum SoVolumeRender.SamplingAlignments extends java.lang.Enum<SoVolumeRender.SamplingAlignments> implements IntegerValuedEnum
samplingAlignment
field.
Enum Constant and 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 using
SoVolumeRenderingQuality.deferredLighting . |
VIEW_ALIGNED
Samples are located on planes perpendicular to the view direction.
|
Modifier and Type | Method and Description |
---|---|
static SoVolumeRender.SamplingAlignments |
fromValue(int val)
Deprecated.
Use
valueOf(int) instead. |
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 value
|
static 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.
|
public static final SoVolumeRender.SamplingAlignments VIEW_ALIGNED
public static final SoVolumeRender.SamplingAlignments DATA_ALIGNED
public static final SoVolumeRender.SamplingAlignments BOUNDARY_ALIGNED
opacityThreshold
.public static final SoVolumeRender.SamplingAlignments SMOOTH_BOUNDARY_ALIGNED
SoVolumeRenderingQuality.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 to SoVolumeRenderingQuality.deferredLighting
and SoVolumeShape.interpolation
for details. LIMITATIONS SMOOTH_BOUNDARY_ALIGNED is not supported in the following case:
SoVolumeRenderingQuality.lighting
for instance).
SoUniformGridClipping
nodes. In one of the above case, BOUNDARY_ALIGNED is used.
Warning Possibly heavy GPU usage
public static SoVolumeRender.SamplingAlignments[] values()
for (SoVolumeRender.SamplingAlignments c : SoVolumeRender.SamplingAlignments.values()) System.out.println(c);
public static SoVolumeRender.SamplingAlignments 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.SamplingAlignments fromValue(int val)
valueOf(int)
instead.public static SoVolumeRender.SamplingAlignments 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