Hi,<br> I am getting some problem with vtkImageTracerWidget.<br> I can show any slice from vtkImage volume and draw a freehand line with vtkImageTracerWidget over background image in viewer Window. The image is on XY plane.<br>
For some slices, the vtkImageTracerWidget draws in front of the background image and it is visible. I checked the Z values of the points on tracer path and they had the same value as my current viewing slice's Z value.<br>
However for some slices, the image tracer was drawn but it was behind the background image and could not be seen. I checked the position values of the points on tracer path and they were different from current viewing slice's Z values. e.g., Current slice's Z value = 93 and the tracer's Z values = 92.99999 and therefore it was behind the slice image.<br>
<br> How can I place the imageTracerWidget in front of the viewing slice all the time? Here is a piece of codes that I used to initialize my ImageTracerWidget.<br><br><br> interactor = m_viewer2D->getRenderWindowInteractor();<br>
<br> m_imageTracer->GetLineProperty()->SetLineWidth(3);<br> m_imageTracer->SetInteractor(interactor);<br> m_imageTracer->AutoCloseOn();<br> m_imageTracer->SetCaptureRadius(10);<br> m_imageTracer->SetViewProp( m_viewer2D->getImageActor() );<br>
m_imageTracer->On();<br><br><br>thanks and regards,<br>Thiha<br><br><br>