Demonstrates how to extract and use a subvolume of data out of a
SoVolumeData by using
SoLDMDataAccess class API in multi threaded application.
DESCRIPTION:
This program displays, in the second viewer, a volume built with data extracted from volume shown in first viewer. The volume in the second viewer is built by several threads, each one performing a Data Access operation on a smaller sub-volume. To update the second viewer, enter picking mode and press U. The volume taken in account to generate the box is defined by the ROI in the main 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/getLDMData/getDataBox_multiThread.cxx
SEE ALSO
SbThread, SoVolumeData, SoLDMDataAccess
SCREENSHOT:
Data Access API is thread safe. It can be called in different threads to extract several subvolumes at the same time.