SoVolumeDataLoadRegions Method (SbBox3i32, SoState, SoTransferFunction) |
Note: This API is now obsolete.
This function will load all bricks into system memory that are wholly or partially contained within each of the specified regions.
Namespace: OIV.VolumeViz.Nodes
[ObsoleteAttribute("See documentation for more details")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public void LoadRegions( SbBox3i32[] region, SoState state, SoTransferFunction transFunc )
This can be used to pre-load volume data that will be needed for rendering later.
In addition, if state is not NULL, it will create the corresponding textures and load them in texture memory. Likewise this can be used to pre-load textures that will be needed for rendering later. In this case it must only be called when a valid OpenGL context has been made current (generally a context is current if there is an Open Inventor window and at least one render has been done). State is normally obtained by querying the current SoGLRenderAction, for example: SoState state = pViewer.GetGLRenderAction().GetState();
Normally, VolumeViz will only load bricks that are currently needed for rendering some volume geometry, e.g., a slice or a subvolume. This method allows the application to force other bricks to be loaded, which may be useful to reduce the delay when a new brick is needed to render some volume geometry. Obsoletesince Open Inventor 9000 No longer supported.