[vtkusers] Qt Events and vtkObserver

Ale notinmyhead at gmail.com
Thu Jun 7 09:20:11 EDT 2012


You're right. I'd like to "re-program" the whole behavior to adapt it to different styles... I tried the vtkObserver added to the Render Window but it seems not to be fired... Instead, i found out how to stop the propagation using  AbortFlagOn but it seems to working in a "delayed" mode. If, as instance, I set a new slice, the display update the image only (resetting the camera) but no annotation is changed. 

Il giorno 07/giu/2012, alle ore 14.53, David Doria ha scritto:

> On Thu, Jun 7, 2012 at 5:11 AM, Ale <notinmyhead at gmail.com> wrote:
>> Hello,
>> 
>> I had a look at Qt Event event example but I did not understand if there is a way to add observer instead of adding connection to slots since I don't know how to suppress the original event behavior. I did also tried to attach a vtkObserver but it seems not to work. Should I instantiate a InteractorStyle? Where did I have to attach it?
>> 
>> Thanks,
>> Ale
> 
> You'll have to be a little more specific.
> 
> I just added this example on how to connect a VTK event to a Qt slot.
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/EventQtSlotConnect
> 
> Is this what you're trying to do? If not, please say what is producing
> the event, and where you want to handle/observe the event.
> 
> David




More information about the vtkusers mailing list