[vtkusers] vtkCallbackCommand !!

A J lost_bits1110 at hotmail.com
Tue Jun 1 13:04:33 EDT 2004


Thanks John, Alizier, and Vidyadhar for their help!

It was 'static' that did the trick

However, does anyone know why it will only work if I observe for 'AnyEvent', 
but it won't work for anything else.. really I want my callback to be called 
when I press enter, so I put 'EnterEvent', but it doesnt work
Nor will it work for others like 'MouseMoveEvent' or "KeyPressEvent' etc

So heres a snippet:

CallbackCommand->SetCallback( ScreenDisplay::DoStuff);
RenWin->AddObserver( vtkCommand::AnyEvent, CallbackCommand );  //won't work 
for EnterEvent?

while(1)
{
  RenWin->Render();
}

_________________________________________________________________
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win 
$1 million! http://local.msn.com/special/giveaway.asp




More information about the vtkusers mailing list