There are two ways to load Dicom files:
By using a 'list.dcm' file that contains the list of Dicom files you want to load :
SoVolumeData* volData = new SoVolumeData(); volData->fileName.setValue( "list.dcm" ); root->addChild( volData );
SoVolumeData* volData = new SoVolumeData(); // Create a reader to import dicom under the following folder and uncomment following code : SoVRDicomFileReader* DicomReader = new SoVRDicomFileReader(); DicomReader->setFolder( "$OIVHOME/examples/data/Medical/dicomSample/" ); volData->setReader( *DicomReader ); root->addChild( volData );
SoVolumeData, SoTransferFunction, SoDataRange, SoInteractiveComplexity, SoVolumeRenderingQuality, SoVRDicomFileReader, SoVolumeRender