Added reviewing of results in graphic mode

This commit is contained in:
Evgeny Redikultsev
2022-09-10 20:16:05 +05:00
parent c12e9f70f9
commit 78ec7bdc6f
26 changed files with 389 additions and 85 deletions

View File

@@ -7,6 +7,9 @@ using System.Windows.Media;
namespace FieldVisualizer.Entities.ColorMaps.Factories
{
/// <summary>
/// Factory for creating of different color maps
/// </summary>
public static class ColorMapFactory
{
public static IColorMap GetColorMap(ColorMapsTypes mapsTypes)

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FieldVisualizer.Entities.Values.Primitives
{
public class CirclePrimitive : ICirclePrimitive
{
public double Diameter { get; set; }
public double Value { get; set; }
public double CenterX { get; set; }
public double CenterY { get; set; }
public double Area => Math.PI * Math.Pow(Diameter, 2) / 4;
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FieldVisualizer.Entities.Values.Primitives
{
/// <summary>
/// Represent circle primitive
/// </summary>
public interface ICirclePrimitive : IValuePrimitive
{
double Diameter { get; set; }
}
}

View File

@@ -11,5 +11,6 @@ namespace FieldVisualizer.Entities.Values.Primitives
double Value { get; }
double CenterX { get; }
double CenterY { get; }
double Area { get; }
}
}

View File

@@ -13,5 +13,6 @@ namespace FieldVisualizer.Entities.Values.Primitives
public double Value { get; set; }
public double CenterX { get; set; }
public double CenterY { get; set; }
public double Area => Height * Width;
}
}