Click or drag to resize
SoVolumeRenderSetAbortCallback Method (SoVolumeRenderRenderAbortCB)

Note: This API is now obsolete.

Use AbortCallback property instead.

Namespace: OIV.VolumeViz.Nodes
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
[ObsoleteAttribute("Use AbortCallback property instead.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public void SetAbortCallback(
	SoVolumeRenderRenderAbortCB cb
)

Parameters

cb
Type: OIV.VolumeViz.NodesSoVolumeRenderRenderAbortCB
Remarks
Sets delegate to call during texture map rendering to test for an abort condition. It will not be called if a VolumePro board is used for rendering (see SoVolumeData::StorageHint). When 2D or 3D texture maps are used for rendering, it will be called for each element that is rendered.

In the case of LDM, an element is a tile, totalElems is the number of tiles that will be drawn, and thisElem is the number (counting from one) of the next tile to be drawn. The quotient thisElem / totalElems represents the progress of the volume rendering process.

In the non-LDM case, an element is a slice, totalElems is the number of slices that will be drawn, and thisElem is the number (counting from one) of the next slice to be drawn. The quotient thisElem / totalElems represents the progress of the volume rendering process.

This allows applications to terminate rendering of this node prematurely if some condition occurs. It does not terminate traversal of the scene graph. For that use the SoGLRenderAction abort delegate.) The delegate method should return one of the AbortCode codes to indicate whether rendering should continue.

See Also