Class SoFenceSliceDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.volumeviz.details.SoVolumeDetail
-
- com.openinventor.volumeviz.details.SoFenceSliceDetail
-
public class SoFenceSliceDetail extends SoVolumeDetail
Stores detail information about a picked voxel or pick ray in a data volume. A successful pick operation returns anSoPickedPoint
object. If the picked geometry is anSoFenceSlice
node, use the getDetail method and cast the result to this class to get extra information about the pick.SoFenceSliceDetail
returns information about the first (closest) non-transparent voxel along the pick ray and/or information about all the voxels intersected by the pick ray (called a profile).For the first non-transparent voxel (if any) on the pick ray, it returns the XYZ position in 3D space, IJK location in voxels and the data value. See method
getFirstNonTransparentValue()
.For the profile defined by all the intersected voxels, it returns:
- Profile position in object space (two XYZ points).
See methodgetProfileObjectPos()
. - Profile location in the data volume (two IJK indices).
See methodgetProfileDataPos()
. - Number of values along the profile.
See methodgetProfileDataPos()
. - For each value along the profile: the voxel value and its corresponding IJK location.
See methodgetProfileValue()
.
Notes:
- To get information about all voxels intersected by the ray, the application
must set the pickAll flag of the
SoRayPickAction
to true. (This is different than the behavior ofSoVolumeRenderDetail
.
Limitations:
- If multiple volumes are being combined under an
SoMultiDataSeparator
, the detail class only returns values for the first volume in the scene graph.
- See Also:
SoDetail
,SoVolumeDetail
,SoFenceSlice
- Profile position in object space (two XYZ points).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.volumeviz.details.SoVolumeDetail
SoVolumeDetail.ProfileValue, SoVolumeDetail.ProfileValueD, SoVolumeDetail.TransparentDoubleValue, SoVolumeDetail.TransparentLongValue
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoFenceSliceDetail()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDetail
copy()
Returns an instance that is a copy of this instance.-
Methods inherited from class com.openinventor.volumeviz.details.SoVolumeDetail
getFirstNonTransparentDoubleValue, getFirstNonTransparentDoubleValue, getFirstNonTransparentValue, getFirstNonTransparentValue, getProfileDataPos, getProfileNumValues, getProfileObjectPos, getProfileValue, getProfileValue, getProfileValueD, getProfileValueD, setDetails
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
copy
public SoDetail copy()
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.- Overrides:
copy
in classSoVolumeDetail
-
-