Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            renmas        = new Renmas(this.output_image);
            cam_editor    = new Camera_editor(renmas.camera);
            op_editor     = new Options_editor(renmas.options);
            lights_editor = new LightsEditor(renmas.lights);
            shapes_editor = new Shapes_editor(renmas.shapes);
            tm_editor     = new ToneMappingEditor(renmas.tone_mapping_operators);
            mat_editor    = new MaterialEditor(renmas.materials);

            //this.main_grid.Children.Add(cam_editor);
            //this.output_image.SetValue(Grid.ColumnProperty, 1);

            // Expander --
            StackPanel sp = new StackPanel();

            Grid.SetColumn(sp, 1);
            Grid.SetRow(sp, 1);
            sp.Children.Add(cam_editor);
            sp.Children.Add(op_editor);
            sp.Children.Add(lights_editor);
            sp.Children.Add(shapes_editor);
            sp.Children.Add(mat_editor);
            sp.Children.Add(tm_editor);

            this.main_grid.Children.Add(sp);

            SolidColorBrush mySolidColorBrush = new SolidColorBrush();

            mySolidColorBrush.Color = Color.FromArgb(255, 47, 47, 47);
            this.Background         = mySolidColorBrush;
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            renmas = new Renmas(this.output_image);
            cam_editor = new Camera_editor(renmas.camera);
            op_editor = new Options_editor(renmas.options);
            lights_editor = new LightsEditor(renmas.lights);
            shapes_editor = new Shapes_editor(renmas.shapes);
            tm_editor = new ToneMappingEditor(renmas.tone_mapping_operators);
            mat_editor = new MaterialEditor(renmas.materials);

            //this.main_grid.Children.Add(cam_editor);
            //this.output_image.SetValue(Grid.ColumnProperty, 1);

            // Expander --
            StackPanel sp = new StackPanel();

            Grid.SetColumn(sp, 1);
            Grid.SetRow(sp, 1);
            sp.Children.Add(cam_editor);
            sp.Children.Add(op_editor);
            sp.Children.Add(lights_editor);
            sp.Children.Add(shapes_editor);
            sp.Children.Add(mat_editor);
            sp.Children.Add(tm_editor);

            this.main_grid.Children.Add(sp);

            SolidColorBrush mySolidColorBrush = new SolidColorBrush();
            mySolidColorBrush.Color = Color.FromArgb(255, 47, 47, 47);
            this.Background = mySolidColorBrush;
        }