Added reviewing of results in graphic mode
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -11,5 +11,6 @@ namespace FieldVisualizer.Entities.Values.Primitives
|
||||
double Value { get; }
|
||||
double CenterX { get; }
|
||||
double CenterY { get; }
|
||||
double Area { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user