[vtkusers] problem in add line in vtkImageViewer2

Jothy jothybasu at gmail.com
Wed Oct 20 05:09:43 EDT 2010


Try p0 = {0.0, 0.0, 100.0},p1 = {0.0, 100.0, 100.0} or -100 make sure your z
corodinate of the line is always greater such that the line is always above
the image actor.


Jothy

2010/10/20 myaqua1982 <myaqua1982 at 163.com>

>  Hi,
>
> I have shown Dicom images in vtkImageViewer2. And now I want to add lines
> in the viewer . Such as , I click left button to select two point ,and then
> show the line defined by these two points. The problem is that the line can
> not show above the image. When I set p0 = {0.0, 0.0, 0.0},p1 = {0.0, 100.0,
> 0.0},the line can be shown in the leftmost of the image (it looks like Y
> axes). But when I change p1 = {20.0, 100.0, 0.0}, the line can not show.
> What is the problem?  Please give me some help. Thank you very much!
>
> 2010-10-20
> ------------------------------
> myaqua1982
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101020/249f3346/attachment.htm>


More information about the vtkusers mailing list