[vtkusers] How to use vtkLineSource with vtkImagePlaneWidget

Uril Yakubov uyakubov at rotman-baycrest.on.ca
Mon Nov 17 15:43:20 EST 2008


Hi vtk users,

I would like to create a line that goes through the image.But when I
tried this I can only see the lines on the sides, it doesn't go through
the image. Could you please help me with this issue. 

set Line [vtkLineSource New]
    $Line SetPoint1 -50 100 28
    $Line SetPoint2 250 100 28
set LineMapper [vtkPolyDataMapper New] 
    $LineMapper SetInput [$Line GetOutput]

set LineActor [vtkActor New]
    $LineActor SetMapper $LineMapper
    [$LineActor GetProperty] SetColor 1.0 0.0 0.0


ren1 AddActor $LineActor

Thank in advance.

Uril.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 55543 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081117/b196d0a9/attachment.png>


More information about the vtkusers mailing list