[vtkusers] who 'observes' event?
A J
lost_bits1110 at hotmail.com
Wed Jun 2 10:20:44 EDT 2004
Thanks Amy for your response,
However when I change it to KeyPressEvent it still doesnt detect
anything...? Nor will it detect any mouse events..
It only detects when a Modified() event occurs (which occurs quite
frequently in my code)
And I've followed the examples exactly.. so i dont know what i'm doing
wrong..
=S
Really appreciate it,
Thanks again
AJ
>The Enter event is not for detecting when the Enter key on the keyboard is
>pressed. The Enter event is invoked when the mouse pointer enters the
>render window. (There is also a Leave event.) To detect when Enter is
>pressed, you probably need to watch vtkCommand::KeyPressEvent and add code
>yourself for checking whether the key that was pressed is the Enter key.
>
>- Amy
>
>>Hi,
>>
>>regarding the problem of my last post - maybe the problem is I haven't
>>added an observer to the correct object
>>
>>I tried it with
>>
>> RenWin->AddObserver( vtkCommand::EnterEvent, cbc );
>>and Ren-> "
>>and Iren-> "
>>
>>(note that I am calling Iren->Render() to render my scene)
>>
>>but none of them seem to detect when I press the Enter key on my
>>keyboard..
>>
>>If I change it to detecting Ren->AddObserver( vtkCommand::ModifiedEvent,
>>cbc)
>>Then this works fine
>>
>>But thats the only one that I can get to work
>>Really I would like it to detect when I press Enter!
>>
>>So if anyone has any insight.. then please englighten me..! =S
>>Thank you in advance once again =)
>>
>>AJ
>>
>>_________________________________________________________________
>>Looking to buy a house? Get informed with the Home Buying Guide from MSN
>>House & Home. http://coldwellbanker.msn.com/
>>
>>_______________________________________________
>>This is the private VTK discussion list. Please keep messages on-topic.
>>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the vtkusers
mailing list