+ // Clear all, since we are loading the main image
+ if( this->m_Objects.size( ) > 0 )
+ {
+ this->m_UI->MPR->ClearAll( );
+ this->m_Objects.clear( );
+
+ } // fi
+
+ // Read and show image, if possible
+ TPlugins::TImage::Pointer image;
+ if( this->m_Plugins->ReadImage( image, true ) )
+ {
+ vtkImageData* vimage = image->GetVTK< vtkImageData >( );
+ if( vimage == NULL )
+ QMessageBox::critical(
+ this,
+ QMessageBox::tr( "Error showing image." ),
+ QMessageBox::tr(
+ "Image was read, but no valid VTK conversion was found."
+ )
+ );
+ else
+ this->m_UI->MPR->ShowImage( vimage, image->GetName( ) );
+
+ // Keep a track on a local data tree
+ this->m_Objects[ image->GetName( ) ] =
+ TTreeNode( "", image.GetPointer( ) );
+
+ } // fi
+}
+
+// -------------------------------------------------------------------------
+void ImageMPR::
+_aOpenDICOMSeries( )
+{
+ // Clear all, since we are loading the main image
+ if( this->m_Objects.size( ) > 0 )
+ {