Class 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 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:
  • Constructor Details

    • SoSliceDetail

      public SoSliceDetail()
      Constructor.
  • Method Details

    • 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.
      Overrides:
      copy in class SoDetail
    • 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.