示例#1
0
 public static void PutTo( Graphics.IView view )
 {
     if ( !view.SceneGraph.CameraScenes.Any( scene => scene is CompassScene ) ) {
     var scene = new CompassScene { View = view };
     view.SceneGraph.CameraScenes.Add( scene );
     scene.FixPos();
       }
 }
示例#2
0
 public static void PutTo(Graphics.IView view)
 {
     if (!view.SceneGraph.CameraScenes.Any(scene => scene is CompassScene))
     {
         var scene = new CompassScene {
             View = view
         };
         view.SceneGraph.CameraScenes.Add(scene);
         scene.FixPos();
     }
 }
示例#3
0
        protected void AddView(Graphics.IView view)
        {
            var setting = ViewSetting.Get(_docviews);

            if (setting.ShowCompass)
            {
                CompassScene.PutTo(view);                     // コンパス
            }
            if (setting.ShowRuler)
            {
                RulerScene.PutTo(view);                       // ルーラー
            }
            _docviews.AddView(view, this.ViewSetting.CreateViewOperation(() => _contextMenuFactory()));
        }