SoVolumeDetailGetFirstNonTransparentValue Method (Int64, SbVec3i32, SbVec3f, Boolean) |
Retrieves the value and position of the first non-transparent voxel along the pick ray (if any).
Namespace: OIV.VolumeViz.Details
public virtual bool GetFirstNonTransparentValue( out long value, out SbVec3i32 pos, out SbVec3f objPos, bool realValue )
the integer value of the first non-transparent voxel along the pick ray.
the position of the picked voxel in data space (IJK voxel coordinates)
the position of the picked voxel in object space (XYZ world coordinates).
if true, the integer value is fetched from the full resolution data. If false, it returns the voxel value from the (possibly subsampled) data currently in GPU memory, thus the voxel value that is displayed in the render area. The displayed voxel is not necessarily in full resolution.
false if all voxels along the ray pick are fully transparent, thus all out parameters are meaningless
Depending on the argument realValue, the voxel value is either fetched from the real value in full resolution data or fetched from the displayed data tile on the GPU which is not necessarily in full resolution. Fetching the data in full resolution may require a read from the disk if the full-resolution data is not currently in memory.
Caution |
---|
To use GPU picking, you must specify realValue = false. |