Exemple #1
0
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            surface1.Source     = null;
            surface1.MeshSizeU  = _viewModel.MeshSizeU;
            surface1.MeshSizeV  = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;

            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
Exemple #2
0
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            // make sure the surface does not update yet
            surface1.DisableUpdates();
            surface1.Source     = null;
            surface1.MeshSizeU  = _viewModel.MeshSizeU;
            surface1.MeshSizeV  = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;
            //GradientBrushes.Hue;
            surface1.EnableUpdates();
            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
Exemple #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisWindow = ((SurfaceDemo.Window1)(target));
                return;

            case 2:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 15 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 17 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ViewSource = ((System.Windows.Controls.MenuItem)(target));

            #line 20 "..\..\Window1.xaml"
                this.ViewSource.Click += new System.Windows.RoutedEventHandler(this.ViewSource_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 21 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCamera_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Fullscreen = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\Window1.xaml"
                this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.FullScreen_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 24 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 25 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 26 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 29 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHue_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 30 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHueStripes_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 31 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbow_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 32 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbowStripes_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 33 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushPattern_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 34 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushImage_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.surfacesMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.SourcePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 19:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 20:
                this.slider2 = ((System.Windows.Controls.Slider)(target));
                return;

            case 21:
                this.slider3 = ((System.Windows.Controls.Slider)(target));
                return;

            case 22:
                this.slider4 = ((System.Windows.Controls.Slider)(target));
                return;

            case 23:
                this.errorList = ((System.Windows.Controls.ListView)(target));
                return;

            case 24:
                this.source1 = ((System.Windows.Controls.TextBox)(target));

            #line 81 "..\..\Window1.xaml"
                this.source1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.source1_TextChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.view1 = ((HelixToolkit.HelixView3D)(target));
                return;

            case 26:
                this.surface1 = ((SurfaceDemo.DynamicCodeSurface3D)(target));
                return;

            case 27:
                this.view2 = ((HelixToolkit.StereoView3D)(target));
                return;

            case 28:
                this.view3 = ((HelixToolkit.AnaglyphView3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            surface1.Source = null;
            surface1.MeshSizeU = _viewModel.MeshSizeU;
            surface1.MeshSizeV = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;

            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.thisWindow = ((SurfaceDemo.Window1)(target));
     return;
     case 2:
     this.mainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     
     #line 15 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 17 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ViewSource = ((System.Windows.Controls.MenuItem)(target));
     
     #line 20 "..\..\Window1.xaml"
     this.ViewSource.Click += new System.Windows.RoutedEventHandler(this.ViewSource_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 21 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCamera_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Fullscreen = ((System.Windows.Controls.MenuItem)(target));
     
     #line 22 "..\..\Window1.xaml"
     this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.FullScreen_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 24 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 25 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 26 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 29 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHue_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 30 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHueStripes_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 31 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbow_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 32 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbowStripes_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 33 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushPattern_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 34 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushImage_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.surfacesMenu = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 18:
     this.SourcePanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 19:
     this.slider1 = ((System.Windows.Controls.Slider)(target));
     return;
     case 20:
     this.slider2 = ((System.Windows.Controls.Slider)(target));
     return;
     case 21:
     this.slider3 = ((System.Windows.Controls.Slider)(target));
     return;
     case 22:
     this.slider4 = ((System.Windows.Controls.Slider)(target));
     return;
     case 23:
     this.errorList = ((System.Windows.Controls.ListView)(target));
     return;
     case 24:
     this.source1 = ((System.Windows.Controls.TextBox)(target));
     
     #line 81 "..\..\Window1.xaml"
     this.source1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.source1_TextChanged);
     
     #line default
     #line hidden
     return;
     case 25:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     case 26:
     this.surface1 = ((SurfaceDemo.DynamicCodeSurface3D)(target));
     return;
     case 27:
     this.view2 = ((HelixToolkit.StereoView3D)(target));
     return;
     case 28:
     this.view3 = ((HelixToolkit.AnaglyphView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);
        
        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            // make sure the surface does not update yet
            surface1.DisableUpdates();
            surface1.Source = null;
            surface1.MeshSizeU = _viewModel.MeshSizeU;
            surface1.MeshSizeV = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;
            //GradientBrushes.Hue;
            surface1.EnableUpdates();
            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }