<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I've just read latest message I sent and it may be I am still sleeping
but my English gets worst and worst... :-(<br>
however, don't be ashamed: here only a few are English native speakers
but we all need it (to try at least) to communicate being an
international ML :-)<br>
here my sources to search all the files in a directory.<br>
it works with Borland C++ Builder only but if you use APIs, in windows
you can use findfirst/findnext from dir.h or FindFirstFile from
winbase.h, it is exactly the same. don't know in *nix ;-)<br>
<br>
  TSearchRec sr;<br>
  int iAttributes = 0;<br>
<br>
  AnsiString folder;<br>
  folder = dicom_folder;<br>
  folder = folder + "\\*";<br>
<br>
  dicom_reader->RemoveAllFileName();<br>
  dicom_reader->AllowLookupTableOff();<br>
<br>
  if (FindFirst(folder, iAttributes, sr) == 0)<br>
  {<br>
    do {<br>
      char newFileDcm[MAX_PATH];<br>
      strcpy( newFileDcm, dicom_folder );<br>
      strcat( newFileDcm, "\\" );<br>
      strcat( newFileDcm, sr.Name.c_str() );<br>
      dicom_reader->AddFileName( newFileDcm );<br>
    } while (FindNext(sr) == 0);<br>
    FindClose(sr);<br>
  }<br>
  else<br>
    return;<br>
<br>
Please note that here I do not order files in any way. I did order via
the std::map class due of it's code writing speed but it's wrong. Look
for recent emails from JP. He is doing the right job!!<br>
<br>
hope to be helpful,<br>
Luca<br>
<br>
<br>
<br>
Olivier Stern wrote:
<blockquote
 cite="mid200507162100.j6GL04Zn032592@outmx017.isp.belgacom.be"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  </o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Hello,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">I ve seen
that you made a piece of code
that takes all the files in a directory. I’ll have to do it in a few
moment and for the moment I have no idea how to do it. (My knowledges
of c++
are basic). Could you copy me the few lines to search all the files in
a
directory ? <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thx a lot,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">           
Olivier<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">De :</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;"> Luca
Picello [<a class="moz-txt-link-freetext" href="mailto:luca.picello@libero.it">mailto:luca.picello@libero.it</a>] <br>
  <b><span style="font-weight: bold;">Envoyé :</span></b> samedi 16
juillet
2005 20:48<br>
  <b><span style="font-weight: bold;">À :</span></b> <st1:PersonName
 productid="Olivier Stern" w:st="on">Olivier Stern</st1:PersonName><br>
  <b><span style="font-weight: bold;">Cc :</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:dcmlib@creatis.insa-lyon.fr">dcmlib@creatis.insa-lyon.fr</a><br>
  <b><span style="font-weight: bold;">Objet :</span></b> Re: [Dcmlib]
2D ->
3D</span></font><font color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">hello Oliver,<br>
due to what I can understand (I am Italian ;-) ) could you translate to
English
for better mine and others understanding please?<br>
I am very interested to this subject<br>
  <br>
thank you,<br>
Luca<br>
  <br>
  <br>
  <st1:PersonName productid="Olivier Stern" w:st="on">Olivier Stern</st1:PersonName>
wrote: <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Bonjour,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p> </u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Je me demandais si il y
avait une classe qui
transformait une série de slices en un volume 3D (si c’est réalisable)

tout du moins comment faire… Cette question a certainement du être
posée,
mais en survolant les archives je n’ai pas trouvé de messages
correspondants.
Dans un même ordre d’idée, comment affiche-t-on un volume ? Avec
vtk ? Je n’arrive pas à comprendre comment on peut voir
l’intérieur du volume.<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p> </u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">Merci,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><u1:p> </u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">           
Olivier<u1:p></u1:p></span></font><o:p></o:p></p>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">

<hr align="center" size="4" width="90%">

</span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Dcmlib mailing list<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a href="mailto:Dcmlib@creatis.insa-lyon.fr">Dcmlib@creatis.insa-lyon.fr</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib">http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib</a><o:p></o:p></span></font></pre>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  </div>
</blockquote>
<br>
</body>
</html>