<div><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:04 PM, superzz <span dir="ltr"><<a href="mailto:jxdw_zlf@yahoo.com.cn">jxdw_zlf@yahoo.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hello<br>
How to set plane of vtkImagePlaneWidget manually? I tried<br>
vtkImagePlaneWidget->GetPlane(), then update plane center and normal to<br>
specified values. But the plane on screen kept unchanged.<br>
<br>
Thanks<br>
<br>
superZZ<br><br></blockquote><div><br></div><div>You can change the origin like this:</div><div> </div><a href="http://www.cmake.org/Wiki/VTK/Examples/Widgets/ImagePlaneWidget">http://www.cmake.org/Wiki/VTK/Examples/Widgets/ImagePlaneWidget</a><div>
<br></div><div>But VTK never has a "SetNormal" function for this type of this (which has always annoyed me). There are SetPoint1 and SetPoint2 functions to set two of the other corners of the planar patch. I believe this is because they want to allow non-rectangular patches - but it seems to me that there should definitely be a way to convert from an origin+normal (surely the form everyone thinks in) to an origin+p1+p2.</div>
<div><br></div><div>Hope this helps.</div><div><br></div><div>David</div></div></div>