Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public Shapes(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 4
0
 public Materials(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 5
0
 public ToneMappingOperators(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 6
0
 public Lights(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 7
0
 public Camera(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 8
0
 public Materials(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 9
0
 public Camera(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 10
0
 public Shapes(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 11
0
 public Lights(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 12
0
 public Options(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 13
0
 public ToneMappingOperators(Renmas renmas)
 {
     this.renmas = renmas;
 }
Ejemplo n.º 14
0
 public Options(Renmas renmas)
 {
     this.renmas = renmas;
 }