Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     this.DataContext  = this;
     this.ColorScheme  = BrushHelper.CreateRainbowBrush(false);
     this.Categories   = new[] { "Asia", "Africa", "North America", "South America", "Antarctica", "Europe", "Australia" };
     this.ColorScheme2 = BrushHelper.CreateSteppedGradientBrush(new[] { Colors.Yellow, Colors.Brown, Colors.Red, Colors.Green, Colors.White, Colors.Orange, Colors.Blue }, false);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SlopeTexture"/> class.
 /// </summary>
 /// <param name="gradientSteps">
 /// The gradient steps.
 /// </param>
 public SlopeTexture(int gradientSteps)
 {
     if (gradientSteps > 0)
     {
         this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.BlueWhiteRed, gradientSteps);
     }
     else
     {
         this.Brush = GradientBrushes.BlueWhiteRed;
     }
 }
Beispiel #3
0
 public SlopeTexture(LinearGradientBrush gradient, int gradientSteps)
 {
     if (gradientSteps > 0)
     {
         Brush = BrushHelper.CreateSteppedGradientBrush(gradient, gradientSteps);
     }
     else
     {
         Brush = gradient;
     }
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SlopeDirectionTexture"/> class.
 /// </summary>
 /// <param name="gradientSteps">
 /// The gradient steps.
 /// </param>
 public SlopeDirectionTexture(int gradientSteps)
 {
     if (gradientSteps > 0)
     {
         this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.Hue, gradientSteps);
     }
     else
     {
         this.Brush = GradientBrushes.Hue;
     }
 }
Beispiel #5
0
 public ElevationTexture(int gradientSteps)
 {
     if (gradientSteps > 0)
     {
         this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.Rainbow, gradientSteps);
     }
     else
     {
         this.Brush = GradientBrushes.Rainbow;
     }
 }