[vtkusers] AddObserver with C#
mirko heuegger
mheuegger at gmail.com
Tue Feb 9 06:55:20 EST 2010
Hello!
2010/2/9 Андрей Глухов <realandron at gmail.com>:
> Hello.
> Could you show an example for Addobserver in C #?
> -cut-
IMHO it depends on you vtk to .net implementation.
If you are using ActiViz.NET (from Kitware) then you can handle events
by adding you methods to the corresponding vtk-event-objects
(e.g. aVtkObject.aEventName += new vtkObject.vtkObjectEventHandler(youMethod) ).
There are also examples for this, e.g
...\Examples\Streamline\CS\StreamlinesWithLineWidget.cs
hth
mirko
--
Real programmers don't document; if it was
hard to write, it should be hard to understand.
More information about the vtkusers
mailing list