[vtkusers] add centered Line on top of the Image
Uril Yakubov
uyakubov at rotman-baycrest.on.ca
Tue Nov 11 11:49:43 EST 2008
Hi,
Does anyone now how to add centered line on top of the image? For
example I am using vtkImageViewer2 to show my image. My problem is that
image cover the line and I need opposite affect. Here my code:
#add centered line
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
# rw instance of vtkKWRenderWidget
[$rw GetRenderer] AddActor $LineActor
Thank you for your help.
Uril.
More information about the vtkusers
mailing list