Add GraphSettings

This commit is contained in:
Иван Ивашкин
2024-10-31 13:46:50 +05:00
parent 94387d0d0b
commit 96b0fbd6a3
12 changed files with 138 additions and 72 deletions

View File

@@ -9,6 +9,7 @@ using System.Windows.Media;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StructureHelperCommon.Services;
namespace StructureHelperCommon.Infrastructures.Interfaces
{
@@ -46,9 +47,9 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
{
return function.GetByX(xValue);
}
public virtual SeriesCollection GetSeriesCollection()
public virtual GraphSettings GetGraphSettings()
{
return function.GetSeriesCollection();
return function.GetGraphSettings();
}
}
}

View File

@@ -1,6 +1,7 @@
using LiveCharts;
using StructureHelperCommon.Infrastructures.Enums;
using StructureHelperCommon.Models.Functions;
using StructureHelperCommon.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@@ -21,13 +22,12 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
public FunctionType Type { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public List<GraphPoint> Table { get; set; }
public double MinArg { get; set; }
public double MaxArg { get; set; }
public Color Color { get; set; }
public ObservableCollection<IOneVariableFunction> Functions { get; set; }
public bool Check();
public double GetByX(double xValue);
public SeriesCollection GetSeriesCollection();
public GraphSettings GetGraphSettings();
}
}