[vtkusers] vtkButtonSource、vtkRectangularButtonSource 、vtkEllipticalButtonSource

mirko heuegger mheuegger at gmail.com
Thu Jul 4 10:19:07 EDT 2013


Hello!

If I extend my mentioned example ('Form1.cs') by:
this.buttonWidget = vtkButtonWidget.New();
iren.LeftButtonPressEvt += new vtkObject.vtkObjectEventHandler(dummyEvnt);
this.buttonWidget.SetInteractor(this.RendWinInteractor);
this.buttonWidget.On();
and the event will fired, so I guess your snippet is working and the error
is located elsewhere.


regards

mirko



On Thu, Jul 4, 2013 at 3:28 PM, louiskoo <419655660 at qq.com> wrote:

> Yes,I have taken your suggstion.
>
>   vtkButtonWidget buttonWidget = vtkButtonWidget.New();
>             vtkRenderWindowInteractor renderInteractor =
> renderWindowControl1.RenderWindow.GetInteractor();
>             renderInteractor.LeftButtonPressEvt += new
> vtkObject.vtkObjectEventHandler(renderInteractor_LeftButtonPressEvt);
>             buttonWidget.SetInteractor(renderInteractor);
>             buttonWidget.SetRepresentation(rep);
>             //buttonWidget.LeftButtonPressEvt += new
> vtkObject.vtkObjectEventHandler(buttonWidget_LeftButtonPressEvt);
>             buttonWidget.On();
>
> But the result is that the buttonWidget has no effect when I click the
> buttonWidget .
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721767.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130704/96c5275b/attachment.htm>


More information about the vtkusers mailing list