Class SoSliceDetail
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.details.SoDetail
com.openinventor.volumeviz.details.SoSliceDetail
- Direct Known Subclasses:
SoObliqueSliceDetail
,SoOrthoSliceDetail
Base class for detail information about picking in a data volume.
A successful pick operation returns an
SoPickedPoint
object. If the picked geometry is an SoOrthoSliceDetail
or SoObliqueSliceDetail
, use the getDetail method and cast the result to the appropriate class (SoOrthoSliceDetail
or SoObliqueSliceDetail
) to get extra information about the location of the pick.
SoSliceDetail
contains detail information about a picked voxel on an ortho or oblique slice. The information includes the position of the picked voxel in object coordinate space (X, Y, Z) and data coordinate space (I, J, K), as well as the value of the picked voxel.
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:
-
Nested Class Summary
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 -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns an instance that is a copy of this instance.long
getValue()
double
void
setDetails
(SbPlane p, SbLine line, SoVolumeData vd) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoSliceDetail
public SoSliceDetail()Constructor.
-
-
Method Details
-
getValueDataPos
- Returns:
- the position of the picked voxel in data coordinate space (I, J, K).
-
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. -
getValueObjectPos
- Returns:
- the position of the picked voxel in object coordinate space (X, Y, Z).
-
setDetails
-
getValueD
public double getValueD()- Returns:
- the value of the picked voxel as a floating point value.
-
getValue
public long getValue()- Returns:
- the value of the picked voxel as an integer.
-