[vtkusers] using GetWindow, GetLevel methods of vtkImagePlaneWidget with Tcl
Dean Inglis
dean.inglis at sympatico.ca
Thu Jul 10 17:20:02 EDT 2008
Hi David,
This worked for me.
planeWidget AddObserver WindowLevelEvent wlobserve
vtkTextActor textActor
ren AddActor2D textActor
vtkRenderWindowInteractor iren
proc wlobserve { } {
set str [ planeWidget GetWindow ]
textActor SetInput $str
textActor Modified
iren Render
}
Dean
>The GetWindow and GetLevel methods of the vtkImagePlaneWidget class
>don't seem to work in my Tcl script. Any idea why this might be the
>case, and how I can get around it?
-D.G
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Inglis, PhD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~ Center for Appendicular ~~~~~
Magnetic Resonance Imaging Studies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
610 - 25 Charlton Ave. E.
Hamilton, Ontario, L8N 1Y2
tel: (905) 527-0028
fax: (905) 521-1297
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Assistant Professor (Adjunct)
Department of Civil Engineering
McMaster University
Hamilton, Ontario
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080710/485e2719/attachment.htm>
More information about the vtkusers
mailing list