Function bounds done, add other decorators
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using LiveCharts;
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Models;
|
||||
using StructureHelperCommon.Models.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Media;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -26,6 +28,8 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
public Guid Id => throw new NotImplementedException();
|
||||
|
||||
public IShiftTraceLogger? TraceLogger { get; set; }
|
||||
public Color Color { get; set; }
|
||||
|
||||
public FunctionDecorator(IOneVariableFunction function)
|
||||
{
|
||||
this.function = function;
|
||||
@@ -42,5 +46,9 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
return function.GetByX(xValue);
|
||||
}
|
||||
public virtual SeriesCollection GetSeriesCollection()
|
||||
{
|
||||
return function.GetSeriesCollection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using LiveCharts;
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Models.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -7,6 +8,7 @@ using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
@@ -22,8 +24,10 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user