Beispiel #1
0
//---------------------------------------------------------------------------------------
Interactor* Injector::inject_Interactor(LibraryScope& libraryScope,
                                        WpDocument wpDoc, View* pView,
                                        DocCommandExecuter* pExec)
{
    //factory method

    return LOMSE_NEW Interactor(libraryScope, wpDoc, pView, pExec);
}
Beispiel #2
0
void QuenchFrame::RefreshViz()
{
	_pSceneWindow->GetRenderWindow()->SetSwapBuffers (true);
	_pSceneWindow->Refresh();

	// Need this -- otherwise the near and far clipping planes may be
	// incorrect.
	Interactor()->Renderer()->ResetCameraClippingRange();

	// Update() causes an immediate redraw:
	// If I don't do this on Windows, the screen never gets redrawn during ROI
	// dragging.
	// If I do this on Linux/X11, the event handler gets behind processing mouse
	// drag events, and there is horrible latency.
	// Yield is supposed to let other events execute, but seems to do nothing.
	// What happens on Mac/Carbon?
	// What happens on GTK/Linux?

#ifdef __WXMSW__
	_pSceneWindow->Update();
#endif
	//this->_app->Yield();
}