Demonstrates how to extract and use a plane of data out of a
SoVolumeData by using
SoLDMDataAccess class API.
DESCRIPTION:
This program displays a plane (in the second viewer) build with data extracted from the given volume (first viewer). To update the second viewer, move the dragger in the main viewer, the plane will be automatically be generated in the second viewer. Specifically, a SoTexture2 using the data extracted from the volume is applied to a plane. Changing data access mode (Direct, Direct and prefecth, Cache) will change the amount of memory allowed to LDM. As a result, the main volume will show different resolution. This has been done to show that, even with low memory settings, data access can reach full resoution in Direct and Direct and prefetch mode.
FILES:
-
VolumeViz/getLDMData/getDataPlane.cxx
SEE ALSO
SoVolumeData, SoLDMDataAccess
SCREENSHOT: