[vtkusers] Blocking 'Q' and 'E' keys

Nick Gnedin gnedin at fnal.gov
Sat Feb 21 16:30:52 EST 2009


Here is a snippet from vtkRenderWindowInteractor.cpp. I think if you
have an empty observer for vtkCommand::ExitEvent, the application
would not terminate.


void vtkRenderWindowInteractor::ExitCallback()
{
  if (this->HasObserver(vtkCommand::ExitEvent))
    {
    this->InvokeEvent(vtkCommand::ExitEvent,NULL);
    }
  else
    {
    this->TerminateApp();
    }
}



More information about the vtkusers mailing list