<!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">
&nbsp;What kind of a 3D rendering do you want? MPR, MIP, MINIP, SSD, VRT? <br>
For example for SSD rendering you can try this:<br>
<br>
&nbsp;&nbsp;&nbsp; vtkMarchingContourFilter *contour=vtkMarchingContourFilter::New();<br>
&nbsp;&nbsp;&nbsp; contour-&gt;SetInput(reader-&gt;GetOutput());<br>
&nbsp;&nbsp;&nbsp; contour-&gt;SetValue(0,-500);<br>
&nbsp;&nbsp;&nbsp; contour-&gt;Update();<br>
<br>
&nbsp;&nbsp;&nbsp; vtkStripper *stripper=vtkStripper::New();<br>
&nbsp;&nbsp;&nbsp; stripper-&gt;SetInput(contour-&gt;GetOutput());<br>
<br>
&nbsp;&nbsp;&nbsp; vtkPolyDataMapper *polyDataMapper=vtkPolyDataMapper::New();<br>
&nbsp;&nbsp;&nbsp; polyDataMapper-&gt;SetInput(stripper-&gt;GetOutput());<br>
&nbsp;&nbsp;&nbsp; polyDataMapper-&gt;ScalarVisibilityOff();<br>
<br>
&nbsp;&nbsp;&nbsp; vtkProperty *prop=vtkProperty::New();<br>
&nbsp;&nbsp;&nbsp; prop-&gt;SetColor(1,1,0.940);<br>
&nbsp;&nbsp;&nbsp; prop-&gt;ShadingOn();<br>
&nbsp;&nbsp;&nbsp; prop-&gt;BackfaceCullingOff();<br>
<br>
&nbsp;&nbsp;&nbsp; vtkActor *actor=vtkActor::New();<br>
&nbsp;&nbsp;&nbsp; actor-&gt;SetMapper(polyDataMapper);<br>
&nbsp;&nbsp;&nbsp; actor-&gt;SetProperty(prop);<br>
&nbsp;&nbsp;&nbsp; actor-&gt;RotateX(90.0);<br>
&nbsp;&nbsp;&nbsp; actor-&gt;VisibilityOn();<br>
<br>
&nbsp;&nbsp;&nbsp; qvtk-&gt;GetRenderer()-&gt;AddActor(actor);<br>
&nbsp;&nbsp;&nbsp; qvtk-&gt;GetRenderer()-&gt;ResetCameraClippingRange();<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; contour-&gt;Delete();<br>
&nbsp;&nbsp;&nbsp; stripper-&gt;Delete();<br>
&nbsp;&nbsp;&nbsp; polyDataMapper-&gt;Delete();<br>
&nbsp;&nbsp;&nbsp; prop-&gt;Delete();<br>
<br>
26.03.2010 15:38, Drysdale, Jeremy yazm&#305;&#351;:
<blockquote
 cite="mid:335785C447107A4891CDE7923B4A44DF40ABC5B622@NLCLUEXM10.connect1.local"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Hello VTK
World,<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">I&#8217;m
attempting to use vtkDICOMImageReader to read a directory of DICOM
images and display them to a qt QVTKWidget in 3D.&nbsp; I&#8217;m able to display
a 2D image (that&#8217;s not scrollable), but not render in 3D. &nbsp;Does anyone
have any example code out there for rendering this sort of thing in 3D?<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Thanks,</span><o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Jeremy
Drysdale<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Distinguished
Research
Engineer<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">eScience
Support<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Philips
Research North America<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">345
Scarborough Road</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Briarcliff
Manor, NY, 10510, USA</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Tel: (914)
945-6612</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">E-mail: <a
 moz-do-not-send="true" href="mailto:jeremy.drysdale@philips.com"><span
 style="color: blue;">jeremy.drysdale@philips.com</span></a></span><o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: green;">Please&nbsp;consider
the
environment before printing this email.</span><o:p></o:p></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  </div>
  <br>
  <hr> <font size="1" color="Gray" face="Arial">The information
contained in
this message may be confidential and legally protected under applicable
law. The message is intended solely for the addressee(s). If you are
not the intended recipient, you are hereby notified that any use,
forwarding, dissemination, or reproduction of this message is strictly
prohibited and may be unlawful. If you are not the intended recipient,
please contact the sender by return e-mail and destroy all copies of
the original message.<br>
  </font>
  <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true"
 class="moz-txt-link-freetext"
 href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
<br>
</body>
</html>