コード例 #1
0
#pragma warning restore CA1051 // Sichtbare Instanzfelder nicht deklarieren
        public ShapeSelector(Renderer.SceneBasedRenderer sbr)
        {
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            App.MakeMeDarkModal(this);
            this.sbr = sbr;
            InitializeComponent();
        }
コード例 #2
0
        //Label lbshapesContainer => lbshapesContainerContainer.Content as Label;
        //ListBox Lbshapes => lbshapesContainer.Content as ListBox;
        //List<Renderable> RenderObjects=new List<Renderable>();

        public SceneBuilder(Renderer.SceneBasedRenderer renderer, Action <IRenderPage> moveToRenderer)
        {
            InitializeComponent();
            Shapes       = new ObservableCollection <Renderable>();
            sbr          = renderer;
            RenderAction = moveToRenderer;
            Lbshapes.SelectionChanged    += Lbshapes_SelectionChanged;
            Lbshapes.ItemsSource          = Shapes;
            Lbshapes.ItemTemplateSelector = new ShapeTemplateSelector(FindResource("ShapeTemplateDefault") as DataTemplate, FindResource("ShapeTemplateGroup") as DataTemplate);
            RenderLoop();
            VisHelper            = new UIHelpers.VisualizationHelper(this, sbr);
            VisHelper.OnChanges += AlertChanges;
        }
コード例 #3
0
 public CameraSelector(Renderer.SceneBasedRenderer sbr) : base(sbr) => Title = "CameraSelector";