<div dir="ltr">Have you tried looking at vtkBoxWidget:<br><br>&nbsp;&nbsp;&nbsp; <a href="http://www.vtk.org/doc/nightly/html/classvtkBoxWidget.html">http://www.vtk.org/doc/nightly/html/classvtkBoxWidget.html</a><br><br>Mark<br><br><div class="gmail_quote">
On Wed, Sep 3, 2008 at 8:54 AM,  <span dir="ltr">&lt;<a href="mailto:wassim_belhadj@topnet.tn">wassim_belhadj@topnet.tn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Thank you for your help<br>
it&#39;s ok for using vtkVolumeMapper::SetCroppingRegionPlanes method &nbsp;but how<br>
to allw user to select the Cropping region ?<br>
<div class="Ih2E3d">I would like to allow user to set a croping region on the volume rendered<br>
(for example when he presses a button a frame that can be<br>
</div>manipulated in width and height is added to the 3d scene)<br>
Waitting for help and thank you very very very much<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Wed, 3 Sep 2008 11:24:49 +0200, &quot;Lasso, Andras (GE Healthcare)&quot;<br>
&lt;<a href="mailto:Andras.Lasso@med.ge.com">Andras.Lasso@med.ge.com</a>&gt; wrote:<br>
&gt; 1 -&gt; You can use the vtkVolumeMapper::SetCroppingRegionPlanes method to<br>
&gt; render a partial volume, or vtkImageClip to crop the actual image data.<br>
&gt; 2 -&gt; The change is effective immediately (changing the clipping triggers<br>
&gt; an update in the rendering pipeline)<br>
&gt; 3 -&gt; Just search for SetCroppingRegionPlanes and vtkImageClip in the<br>
&gt; full text of the VTK source<br>
&gt;<br>
&gt; Andras<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On<br>
&gt; Behalf Of <a href="mailto:wassim_belhadj@topnet.tn">wassim_belhadj@topnet.tn</a><br>
&gt; Sent: Wednesday, September 03, 2008 8:34 AM<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Cc: <a href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</a><br>
&gt; Subject: [vtkusers] Need Help but No nobody gave me advice or answer :<br>
&gt; croping region on the volume rendered<br>
&gt; Importance: High<br>
&gt;<br>
&gt;<br>
&gt; Hi<br>
&gt;<br>
&gt; I&#39;m starting with VTK and &nbsp;I need the help that I have not found.<br>
&gt; I posted the message three times but not always answers or advice.<br>
&gt; is there experts who respond to messages that hanging time?<br>
&gt; I hope that this time my problem will be solved.<br>
&gt; I&#39;am usiing VTK 5.0.2 for volume rendering from a CT Data sets. All<br>
&gt; works good and i have a nice volume rendered.<br>
&gt; I would like to allow user to set a croping region on the volume<br>
&gt; rendered (for example when he presses a button a frame that can be<br>
&gt; manipulated in width and height is added to the scene)<br>
&gt;<br>
&gt; My questions are so :<br>
&gt;<br>
&gt; 1) How to set a croping region on the volume rendered?<br>
&gt;<br>
&gt; 2)How to apply change to the volume rendered ? ( render the &nbsp;volume<br>
&gt; selected).<br>
&gt;<br>
&gt; 3) Are there examples of this genre?<br>
&gt;<br>
&gt;<br>
&gt; I hope &nbsp;that you bring me help and I thank you in advance.<br>
&gt;<br>
&gt; I&#39;m stuck on this part then your advice will also be welcome<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> Follow this link to<br>
&gt; subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>