bool Observer::handleEvent( EventICommand& command ) { switch( command.getEventType( )) { case Event::OBSERVER_MOTION: return setHeadMatrix( command.get< Matrix4f >( )); } return false; }
bool View::handleEvent(EventICommand& command) { switch (command.getEventType()) { case EVENT_VIEW_SCREENSHOT: return _handleScreenshot(command); } return false; }