+ <LI><TT>
+ void Document::AddForceLoadElement(uint16_t group, uint16_t elem);
+ </TT><br>
+ allows user to tell <TT>gdcm::Document</TT> Loader he wants
+ to force the loading of a given set of <TT>DocEntries</TT>,
+ even if their length exceeds the current
+ <TT>MAX_SIZE_LOAD_ELEMENT_VALUE</TT>.
+ <br><br>
+ <LI>
+ Many users expect from <TT>vtkGdcmReader</TT> it 'orders' the images
+ (that's the job of <TT>gdcm::SerieHelper</TT> ...)<br>
+ When user <b>knows</b> the files with same Serie UID
+ have same sizes, same 'pixel' type, same color convention, ...
+ the right way to proceed is as follow :
+ <pre>
+ gdcm::SerieHelper *sh= new gdcm::SerieHelper();
+ // if user wants *not* to load some parts of the file headers
+ sh->SetLoadMode(loadMode);
+
+ // if user wants *not* to load some files
+ sh->AddRestriction(group, element, value, operator);
+ sh->AddRestriction( ...
+ sh->SetDirectory(directoryWithImages);
+
+ // if user wants to sort reverse order
+ sh->SetSortOrderToReverse();
+ // or
+ // if user *knows* how to order his files
+ sh->SetUserLessThanFunction(userSuppliedComparisonFunction);
+
+ // here, we suppose only the first Coherent File List is of interest
+ gdcm::FileList *l = sh->GetFirstCoherentFileList();
+
+ // if user is doesn't trust too much the files with same Serie UID
+ if ( !sh->IsCoherent(l) )
+ return; // not same sizes, or not same 'pixel type' -> stop
+
+ sh->OrderFileList(l); // sort the list
+
+ vtkGdcmReader *reader = vtkGdcmReader::New();
+ // if user wants to modify pixel order (Mirror, TopDown, ...)
+ // he has to supply the function that does the job
+ // (a *very* simple example is given in vtkgdcmSerieViewer.cxx)
+ reader->SetUserFunction (userSuppliedFunction);
+
+ // to pass a 'Coherent File List' as produced by gdcm::SerieHelper
+ reader->SetCoherentFileList(l);
+ reader->Update();
+ </pre>
+ You can see a full example in <TT>vtk/vtkgdcmSerieViewer.cxx</TT><br>
+ e.g.<br>
+
+ <TT>vtkgdcmSerieViewer dirname=Dentist mirror</TT><br>
+ <TT>vtkgdcmSerieViewer dirname=Dentist reverse</TT><br>
+ <TT>vtkgdcmSerieViewer dirname=Dentist reverse topdown</TT><br>
+ </pre>
+ <br>
+
+ <LI> <TT>vtkGdcmReader::SetUserFunction (userSuppliedFunction)</TT><br>
+ with :<br>
+ <TT>void userSuppliedFunction(uint8_t *imageData, File *f);</TT><br>
+ allows user to reorganize the pixels of each image just after reading
+ it (to mirror, or topdown the image, for instance)<br>
+ Note : <TT>uint8_t *</TT> doesn't mean it works only on 8 Bits images.
+ <br> It's for prototyping. Feel free to cast it.
+ <br><br>
+ <LI> <TT>
+ SerieHelper::SetUserLessThanFunction(userSuppliedComparisonFunction)
+ </TT><br> with : <br>
+ <TT>bool userSuppliedComparisonFunction(File *, File *);</TT><br>
+ allows user -when he knows more about his files than gdcm does-
+ to give his own comparison function.
+ <LI> <TT>SerieHelper::SetSortOrderToReverse</TT> allows user to ask
+ to sort the Files reverse order.
+ <LI> <TT>SerieHelper::AddRestriction</TT> has now a new constructor<br>
+ <TT>AddRestriction(group, element, value, operator);</TT><br>
+ allows user to exclude some files from the sorting, according to
+ any comparison operator <br>
+ (<TT>GDCM_EQUAL</TT>, <TT>GDCM_DIFFERENT</TT>,
+ <TT>GDCM_GREATER</TT>, <TT>GDCM_GREATEROREQUAL</TT>,
+ <TT>GDCM_LESS</TT>, <TT>GDCM_LESSOREQUAL</TT>), not only on the
+ equality.
+ <br><br>