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(); } }
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(); } }
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())); }