Demonstrates how to extract and use a line of data out of a
SoVolumeData by using
SoLDMDataAccess class API.
DESCRIPTION:
This program displays data extracted along a line (second viewer) from a given volume, which is rendered in the first viewer. To update the second viewer, move the dragger's plane in the main viewer. Line is automatically updated in the second viewer. 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/examples/getLDMData/getDataLine.cxx
SEE ALSO
SoVolumeData, SoLDMDataAccess
SCREENSHOT: