<div dir="ltr">Here is some of my python code which works for me, where self.AxialView is a QVTKWidget. Alos, have a look at<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget</a><br>
<br>self.AxialView.SetInput(self.ImageSet)<br> self.AxialView.SetSlice(0)<br> self.AxialView.SetupInteractor(self.frameA.GetRenderWindow().GetInteractor())<br> self.itw = vtk.vtkImageTracerWidget()<br>
self.itw.SetCaptureRadius(100)<br> self.itw.GetGlyphSource().SetColor(1, 1, 0)<br> self.itw.GetLineProperty().SetColor(0.47058823529411764, 0.0039215686274509803, 0.49411764705882355);<br> self.itw.GetGlyphSource().SetScale(1.5)<br>
self.itw.GetGlyphSource().SetRotationAngle(45.0)<br> self.itw.GetGlyphSource().Modified()<br> self.itw.ProjectToPlaneOn()<br> self.itw.SetProjectionNormalToZAxes()<br> self.itw.SetProjectionPosition(150)<br>
self.itw.SetViewProp(self.AxialView.GetImageActor())<br> self.itw.SetInput(self.ImageSet)<br> self.itw.SetInteractor(self.frameA.GetRenderWindow().GetInteractor())<br> self.itw.PlaceWidget(0,256,0,256,0,256)<br>
self.itw.SnapToImageOff()<br> self.itw.AutoCloseOn()<br> self.itw.InteractionOn()<br> self.itw.On()<br> self.AxialView.Render()<br> self.frameA.show()<br> self.AxialView.GetRenderer().ResetCameraClippingRange()<br>
<br><br>Jothy<br><br><br><br><div class="gmail_quote">On Wed, Nov 23, 2011 at 6:42 AM, Xavius <span dir="ltr"><<a href="mailto:xavierelf@gmail.com">xavierelf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This is the same. Don't you think so? Nevertheless, I have specially checked<br>
it up and it doesn't work, as I also assumed... :(<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Problem-with-vtkContourWidget-and-QVTKWidget-tp5013481p5015686.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-with-vtkContourWidget-and-QVTKWidget-tp5013481p5015686.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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="_blank">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="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>