[vtkusers] altering a widgets response to mouse clicks

Totte Karlsson totte at dunescientific.com
Wed Aug 12 15:51:16 EDT 2015


On 8/10/2015 7:39 PM, Cory Quammen wrote:
>
> In that case, perhaps you need to subclass vtkBoxWidget and override 
> the same member functions. It is likely processing the mouse button 
> clicks and not passing the event on to your custom interactor. Sorry 
> for sending you down that path.
>
That did the trick perfectly!
For anyone needing to do the same, just re implement the On*Button 
functions, in a derived widget class, like this

void MyDerivedWidget::OnLeftButtonDown()
{
     BoxWidget::OnRightButtonDown();
}

Thanks!
-tk




More information about the vtkusers mailing list