[vtkusers] altering a widgets response to mouse clicks

Cory Quammen cory.quammen at kitware.com
Wed Aug 12 16:02:40 EDT 2015


Great, I'm glad its working for you.

On Wed, Aug 12, 2015 at 3:51 PM, Totte Karlsson <totte at dunescientific.com>
wrote:

>
> 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
>
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150812/f1b79ee3/attachment.html>


More information about the vtkusers mailing list