+
+
+std::cout << "--------------------------------" << std::endl;
+std::cout << "Vector size " << output->size() << std::endl;
+std::cout << "--------------------------------" << std::endl;
+
+// Print the first one (why not?)
+//(*output)[0]->PrintSelf(std::cout, vtkIndent(2));
+
+ for(it=output->begin(); it!=output->end(); ++it) {
+ //std::cout << "========================================" << std::endl;
+ //(*it)->PrintSelf(std::cout, vtkIndent(2));
+ }
+ //delete spl;
+}
+
+
+for(int i=0; i<3; i++)
+ std::cout << "---------------------------------------------" << std::endl;
+
+
+
+// ========================================
+// Split on Tag 0008|0032 (Aquisition Time)
+// Sort on Position (IPP)
+//
+// Should give a vector of 'true 3D' vtkImageData*
+// ========================================
+
+ if (1) {
+
+ std::cout << "Try with : Split on Tag 0008|0032 (Aquisition Time) / Sort on Position (IPP)" << std::endl;
+
+ vtkGdcm4DSplitter *spl = new vtkGdcm4DSplitter();
+ spl->setFlipY(false);
+ spl->setDirName(strDirName);
+ spl->setRecursive(true);
+
+ // Time triger : 0018|1060
+ //grSort=0x0018;
+ //elSort=0x1060;
+
+ // Aquisition Time : 0008|0032
+spl->setSplitOnTag(0x0008, 0x0032);
+
+spl->setSortOnPosition();
+
+ std::cout << "Everything set" << std::endl;
+ bool res=spl->Go();
+
+ std::cout << "GO() done, status " << res << std::endl;
+ if(!res)
+ {
+ std::cout << "plantage!" << std::endl;
+ }
+
+ output = spl->GetImageDataVector();
+