Class SoSliceDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.volumeviz.details.SoSliceDetail
-
- Direct Known Subclasses:
SoObliqueSliceDetail
,SoOrthoSliceDetail
public class SoSliceDetail extends SoDetail
Base class for detail information about picking in a data volume. A successful pick operation returns anSoPickedPoint
object. If the picked geometry is anSoOrthoSliceDetail
orSoObliqueSliceDetail
, use the getDetail method and cast the result to the appropriate class (SoOrthoSliceDetail
orSoObliqueSliceDetail
) 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:
SoDetail
,SoOrthoSliceDetail
,SoObliqueSliceDetail
,SoObliqueSlice
,SoOrthoSlice
-
-
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 Constructor Description SoSliceDetail()
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.long
getValue()
double
getValueD()
SbVec3i32
getValueDataPos()
SbVec3f
getValueObjectPos()
void
setDetails(SbPlane p, SbLine line, SoVolumeData vd)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getValueDataPos
public SbVec3i32 getValueDataPos()
- Returns:
- the position of the picked voxel in data coordinate space (I, J, K).
-
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.
-
getValueObjectPos
public SbVec3f getValueObjectPos()
- Returns:
- the position of the picked voxel in object coordinate space (X, Y, Z).
-
setDetails
public void setDetails(SbPlane p, SbLine line, SoVolumeData vd)
-
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.
-
-