Canguro.Controller.TrackingController.Reset C# (CSharp) Method

Reset() public method

public Reset ( Canguro activeView ) : void
activeView Canguro
return void
        public void Reset(Canguro.View.GraphicView activeView)
        {
            if (trackingService != null)
                trackingService.Reset(activeView);
            snapController.Reset(activeView);
            hoverController.Reset(activeView);
        }

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Method to dispatch active view change events. This occurs when another view
 /// is selected, the view gets resized, the layout changes, etc.
 /// It resets the Selection Command.
 /// </summary>
 /// <param name="sender">The GraphicViewManager</param>
 /// <param name="e">Empty argument</param>
 void spinteraction_ActiveViewChange(object sender, GraphicViewManager.ActiveViewChangedEventArgs e)
 {
     if (viewCmd == SelectionCommand)
     {
         SelectionCommand.Reset();
         GraphicViewManager.Instance.UpdateView();
         TrackingController.Reset(e.NewView);
         mainFrm.ScenePanel.Cursor = viewCmd.Cursor;
     }
 }