It seems that if ctkDICOMDatabase is in CTKCore, then it doesn&#39;t need thumbnails.<div>Maybe ctkDICOMDatabase could be overloaded in CTKWidget and handles thumbnails there.</div><div>Julien.<br><br><div class="gmail_quote">

On Thu, Jun 9, 2011 at 1:44 PM, Steve Pieper <span dir="ltr">&lt;<a href="mailto:pieper@ibility.net">pieper@ibility.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Julien -<br>
<br>
The idea here is that the ctkDICOMDatabase should be able to<br>
automatically make the thumbnail images (png) on the fly as dicom<br>
files are added.  ctkDICOMImage uses the QImage class to do this,<br>
which is in QtGui even though it seems to me to be a purely data<br>
formatting class, not a display class.  Even though it&#39;s still being<br>
debugged, I&#39;m planning to make use of the thumbnail feature in<br>
slicer4&#39;s use of ctkDICOM.<br>
<br>
Can you think of a way we can encapsulate the thumbnail calculation in<br>
ctkDICOMCore?  Perhaps we should make an abstract thumbnail generator<br>
class in ctkDICOMCore and then have a QImage-based implementation in<br>
ctkDICOMWidgets that is registered with ctkDICOMDatabase at run time.<br>
Alternatively perhaps ctkDICOMDatabase could link directly to the png<br>
library and make the thumbnails with that.<br>
<font color="#888888"><br>
-Steve<br>
</font><div><div></div><div class="h5"><br>
<br>
On Thu, Jun 9, 2011 at 1:16 PM, Julien Finet &lt;<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>&gt; wrote:<br>
&gt; Hi Marco/Steve,<br>
&gt; ctkDICOMDatabase is in Libs/DICOM/Core which means it shouldn&#39;t depend on<br>
&gt; QtGUI, however, it internally uses ctkDICOMImage which is QtGUI depend (and<br>
&gt; needs to be moved in Libs/DICOM/Widgets).<br>
&gt; Is ctkDICOMImage necessary in ctkDICOMDatabase? Right now, it seems to be<br>
&gt; just a test. Are you ok if I remove it ?<br>
&gt; Thanks,<br>
&gt; Julien.<br>
</div></div></blockquote></div><br></div>