[vtkusers] How can I know which RenderWindowControl I clicked

David Cole DLRdave at aol.com
Fri Jul 15 10:20:14 EDT 2016


this?

Isn't it a method of the class?

Or the sender param?


> On Jul 15, 2016, at 8:39 AM, chenjianyyzz <chenjianyyzz at 163.com> wrote:
> 
> Hi,
> 
> I have a array of RenderWindowControl, and each of them have a
> LeftButtonPressEvt:
> 
> mRenderWindowControls[i].RenderWindow.GetInteractor().LeftButtonPressEvt +=
> new vtkObject.vtkObjectEventHandler(myClickEvt);
> 
> now my question is, inside myClickEvt, how can I know the click happends
> from which RenderWindowControl?
> 
> public void myClickEvt(vtkObject sender, vtkObjectEventArgs e)
> {
>   //How can I know which RenderWindowControl I clicked inside the function
> myClickEvt?
> }
> 
> 
> 
> 
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-can-I-know-which-RenderWindowControl-I-clicked-tp5739265.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list