[vtkusers] vtk AddObserver question

hp.shen hp.shen at ansys.com.cn
Wed May 10 02:23:25 EDT 2006


Hi,all
 
If we create codes without GUI, vtk can reponse to user defined events
such as:
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin
iren AddObserver LeftButtonPressEvent userLBtnPressed
.
proc userLBtnPressed {} {
.
}
 
While, if building a tcl GUI, we can't use
iren SetRenderWindow renWin
anymore. So now how can we define our own events?
 
Thanks in advance.
 
peace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060510/25acfcdb/attachment.htm>


More information about the vtkusers mailing list