[vtkusers] vtkButtonSource、vtkRectangularButtonSource 、vtkEllipticalButtonSource

louiskoo 419655660 at qq.com
Thu Jul 4 09:28:47 EDT 2013


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.



More information about the vtkusers mailing list