Exemple #1
0
 /// <summary>
 /// Automatically called by the core when this editing mode is engaged.
 /// </summary>
 public override void OnEngage()
 {
     // Clear display overlay
     renderer.StartOverlay(true);
     renderer.Finish();
     base.OnEngage();
 }
Exemple #2
0
        /// <summary>
        /// Automatically called by the core when this editing mode is engaged.
        /// </summary>
        public override void OnEngage()
        {
            //mxd. Clear display overlay
            if (renderer.StartOverlay(true))
            {
                //mxd. Center 2d view on camera position in 3d view
                if (General.Settings.GZSynchCameras && !General.Interface.CtrlState &&
                    General.Editing.PreviousMode != null && General.Editing.PreviousMode.IsSubclassOf(typeof(VisualMode)))
                {
                    Vector2D campos = new Vector2D(General.Map.VisualCamera.Position.x, General.Map.VisualCamera.Position.y);
                    renderer2d.PositionView(campos.x, campos.y);
                }

                renderer.Finish();
            }

            //mxd. We want map center drawn by default
            renderer.DrawMapCenter = true;

            base.OnEngage();
        }