<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (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]--><!--[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="WordSection1">
<p class="MsoPlainText">Thank you very much. You are right!<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">So I turned SliceFacesCamera Off and it SetSlicePlane with a vtkPlane object. Now, though the corresponding slice has been extracted, there are two issues that I face, that I would appreciate your advice on, immensely.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">- The image is getting visualized as a plane slanted in 3D space which I had to move with Shift + LeftMousePressed to align - How do I slap it onto the screen so it is straight?<o:p></o:p></p>
<p class="MsoPlainText">- I was updating the normal in a Timer and incrementing it to test whether I can do this dynamically and it took effect only the first time<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Perhaps it's due to my lack of experience in 3D slicing but these are the updates that I have tried calling:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> TimerEvent()<o:p></o:p></p>
<p class="MsoPlainText"> {<o:p></o:p></p>
<p class="MsoPlainText"> vtkSmartPointer<vtkPlane> slicePlane = vtkSmartPointer<vtkPlane>::New();<o:p></o:p></p>
<p class="MsoPlainText"> slicePlane = resliceMapper->GetSlicePlane();<o:p></o:p></p>
<p class="MsoPlainText"> slicePlane->Print(std::cout);<o:p></o:p></p>
<p class="MsoPlainText"> x+=0.01; y +=0.01; z+=0.01;<o:p></o:p></p>
<p class="MsoPlainText"> slicePlane->SetNormal(x, y, z);<o:p></o:p></p>
<p class="MsoPlainText"> slicePlane->SetOrigin(103.5, 111.5, 175.5);<o:p></o:p></p>
<p class="MsoPlainText"> resliceMapper->SetSlicePlane(slicePlane);<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> resliceMapper->Modified();<o:p></o:p></p>
<p class="MsoPlainText"> imageSlice->Render(renderer);<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> renderer->ResetCamera();<o:p></o:p></p>
<p class="MsoPlainText"> interactor->Modified();<o:p></o:p></p>
<p class="MsoPlainText"> interactor->Render();<o:p></o:p></p>
<p class="MsoPlainText"> }<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Basically, I have tried all the possible updates that I could :| But in vain. Could you please advise which update needs to be called?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thank you!<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> David Gobbi [via VTK] [mailto:ml-node+<a href="/user/SendEmail.jtp?type=node&node=5716653&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> Friday, October 12, 2012 5:23 PM<br>
<b>To:</b> Ghosh, Debjit<br>
<b>Subject:</b> Re: SetCutPlane not working in vtkImageResliceMapper<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Debjit, <br>
<br>
You probably have SliceFacesCamera turned on for the mapper. This <br>
will override any plane that you set manually. <br>
<br>
If you are using SliceFacesCamera and SliceAtFocalPoint, then the way <br>
to change the slice is by changing the camera's position and focal <br>
point. <br>
<br>
- David <br>
<br>
<br>
On Fri, Oct 12, 2012 at 6:01 PM, Debjit Ghosh <<a href="/user/SendEmail.jtp?type=node&node=5716628&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<br>
> I have been facing an issue where I called the SetSlicePlane(vtkPlane*) with <br>
> a normal and/or an origin but the visualization didn't change. I had called <br>
> the interactor->Render(), called the Modified() on the ImageResliceMapper <br>
> but neither made the difference. <br>
> <br>
> It would be great if someone could tell me what I am missing here. <br>
_______________________________________________ <br>
Powered by <a href="http://www.kitware.com" target="_top" rel="nofollow" link="external">www.kitware.com</a> <br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_top" rel="nofollow" link="external">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_top" rel="nofollow" link="external">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe: <br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_top" rel="nofollow" link="external">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#CCCCCC" align="center">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444">If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444"><a href="http://vtk.1045678.n5.nabble.com/SetCutPlane-not-working-in-vtkImageResliceMapper-tp5716627p5716628.html" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/SetCutPlane-not-working-in-vtkImageResliceMapper-tp5716627p5716628.html</a>
<o:p></o:p></span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:"Tahoma","sans-serif";color:#666666">To unsubscribe from SetCutPlane not working in vtkImageResliceMapper,
<a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt;font-family:"Times New Roman","serif"">NAML</span></a>
<o:p></o:p></span></p>
</div>
</div>
<P><br/>---------------------------------------------------------------------<br/>CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, <br/>is for the sole use of the intended recipient(s) and may contain confidential<br/>or legally privileged information. Any unauthorized review, use, disclosure<br/>or distribution is prohibited. If you are not the intended recipient, please<br/>contact the sender by reply e-mail and destroy all copies of this original message. <br/><br/>---------------------------------------------------------------------<br/>
</P>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/SetCutPlane-not-working-in-vtkImageResliceMapper-tp5716627p5716653.html">RE: SetCutPlane not working in vtkImageResliceMapper</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>