public Camera() { RendererFactory.GetInstance().PreDrawEvent += new PreDrawCallback(renderer_PreDrawEvent); IMouseFilterMouseCache mousefiltermousecache = MouseFilterMouseCacheFactory.GetInstance(); mousemove = MouseMoveConfigMappings.GetInstance(); config = Config.GetInstance(); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAConfigName, new KeyCommandHandler(CameraModeOverheadTAHandler)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAOrbitConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerOrbit)); /* * KeyFilterComboKeys.GetInstance().RegisterCombo( * new string[]{"cameramode"}, null, new KeyComboHandler( CameraModeZoomHandler ) ); * KeyFilterComboKeys.GetInstance().RegisterCombo( * new string[]{"cameramode","cameraorbit"}, null, new KeyComboHandler( CameraModeOrbitHandler ) ); * KeyFilterComboKeys.GetInstance().RegisterCombo( * new string[]{"cameramode","camerapan"}, null, new KeyComboHandler( CamerModePanHandler ) ); */ KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand("toggleviewpoint", new KeyCommandHandler(ToggleViewpointHandler)); //mousefiltermousecache.MouseDown += new MouseEventHandler( MouseDown ); mousefiltermousecache.MouseMove += new MouseMoveHandler(mousefiltermousecache_MouseMove); //mousefiltermousecache.MouseUp += new MouseEventHandler( MouseUp ); UpdateRoamingCameraRotAndPosFromOverheadOTA(); }
public Camera() { RendererFactory.GetInstance().PreDrawEvent += new PreDrawCallback(renderer_PreDrawEvent); IMouseFilterMouseCache mousefiltermousecache = MouseFilterMouseCacheFactory.GetInstance(); mousemove = MouseMoveConfigMappings.GetInstance(); config = Config.GetInstance(); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTATranslateConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerTranslate)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAOrbitConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerOrbit)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAZoomConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerZoom)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand( "toggleviewpoint", new KeyCommandHandler( ToggleViewpointHandler ) ); mousefiltermousecache.MouseMove += new MouseMoveHandler(mousefiltermousecache_MouseMove); UpdateRoamingCameraRotAndPosFromOverheadOTA(); }
public Camera() { RendererFactory.GetInstance().PreDrawEvent += new PreDrawCallback(renderer_PreDrawEvent); IMouseFilterMouseCache mousefiltermousecache = MouseFilterMouseCacheFactory.GetInstance(); mousemove = MouseMoveConfigMappings.GetInstance(); config = Config.GetInstance(); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTATranslateConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerTranslate)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAOrbitConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerOrbit)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAZoomConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerZoom)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand("toggleviewpoint", new KeyCommandHandler(ToggleViewpointHandler)); mousefiltermousecache.MouseMove += new MouseMoveHandler(mousefiltermousecache_MouseMove); UpdateRoamingCameraRotAndPosFromOverheadOTA(); }
public Camera() { RendererFactory.GetInstance().PreDrawEvent += new PreDrawCallback(renderer_PreDrawEvent); IMouseFilterMouseCache mousefiltermousecache = MouseFilterMouseCacheFactory.GetInstance(); mousemove = MouseMoveConfigMappings.GetInstance(); config = Config.GetInstance(); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAConfigName, new KeyCommandHandler(CameraModeOverheadTAHandler)); KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand(OverheadOTAOrbitConfigName, new KeyCommandHandler(CameraModeOverheadTAHandlerOrbit)); /* KeyFilterComboKeys.GetInstance().RegisterCombo( new string[]{"cameramode"}, null, new KeyComboHandler( CameraModeZoomHandler ) ); KeyFilterComboKeys.GetInstance().RegisterCombo( new string[]{"cameramode","cameraorbit"}, null, new KeyComboHandler( CameraModeOrbitHandler ) ); KeyFilterComboKeys.GetInstance().RegisterCombo( new string[]{"cameramode","camerapan"}, null, new KeyComboHandler( CamerModePanHandler ) ); */ KeyFilterConfigMappingsFactory.GetInstance().RegisterCommand( "toggleviewpoint", new KeyCommandHandler( ToggleViewpointHandler ) ); //mousefiltermousecache.MouseDown += new MouseEventHandler( MouseDown ); mousefiltermousecache.MouseMove += new MouseMoveHandler(mousefiltermousecache_MouseMove); //mousefiltermousecache.MouseUp += new MouseEventHandler( MouseUp ); UpdateRoamingCameraRotAndPosFromOverheadOTA(); }