Window function material done
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Enums
|
||||
{
|
||||
public enum FunctionPurpose
|
||||
{
|
||||
StressStrain,
|
||||
FireProtection
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
public bool IsUser { get; set; }
|
||||
public string Group { get; set; }
|
||||
public FunctionType Type { get; set; }
|
||||
public FunctionPurpose FunctionPurpose { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public List<GraphPoint> Table { get; set; }
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
public bool IsUser { get; set; }
|
||||
public string Group { get; set; }
|
||||
public FunctionType Type { get; set; }
|
||||
public FunctionPurpose FunctionPurpose { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public double MinArg { get; set; }
|
||||
@@ -27,6 +28,7 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
public Color Color { get; set; }
|
||||
public string Trace { get; set; }
|
||||
public ObservableCollection<IOneVariableFunction> Functions { get; set; }
|
||||
|
||||
public bool Check();
|
||||
public double GetByX(double xValue);
|
||||
public GraphSettings GetGraphSettings();
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperCommon.Models.Codes;
|
||||
using StructureHelperCommon.Models.Codes.Factories;
|
||||
using StructureHelperCommon.Models.Functions;
|
||||
using StructureHelperCommon.Models.Materials;
|
||||
using StructureHelperCommon.Models.Materials.Libraries;
|
||||
using StructureHelperCommon.Models.Projects;
|
||||
@@ -41,7 +42,8 @@ namespace StructureHelperCommon.Infrastructures.Settings
|
||||
public static LimitStatesList LimitStatesList => new LimitStatesList();
|
||||
public static CalcTermList CalcTermList => new CalcTermList();
|
||||
public static List<ICodeEntity> CodesList
|
||||
{ get
|
||||
{
|
||||
get
|
||||
{
|
||||
codesList ??= CodeFactory
|
||||
.GetCodeEntities()
|
||||
@@ -92,6 +94,33 @@ namespace StructureHelperCommon.Infrastructures.Settings
|
||||
SubVersionNumber = 0
|
||||
};
|
||||
}
|
||||
public static ObservableCollection<IOneVariableFunction> Functions { get; set; }
|
||||
public static ObservableCollection<IOneVariableFunction> Functions { get; set; } = new ObservableCollection<IOneVariableFunction>
|
||||
{
|
||||
new TableFunction()
|
||||
{
|
||||
Name = "Табличная системная функция",
|
||||
Table = new List<GraphPoint>()
|
||||
{
|
||||
new GraphPoint(1, 1),
|
||||
new GraphPoint(2, 2),
|
||||
new GraphPoint(3, 3),
|
||||
new GraphPoint(4, 4),
|
||||
new GraphPoint(5, 5),
|
||||
new GraphPoint(6, 6),
|
||||
},
|
||||
IsUser = false,
|
||||
Description = "Пример описания",
|
||||
},
|
||||
new FormulaFunction()
|
||||
{
|
||||
Name = "Формульная системная функция",
|
||||
Formula = "x^2",
|
||||
Step = 100,
|
||||
MinArg = 1,
|
||||
MaxArg = 1000,
|
||||
IsUser = false,
|
||||
Description = "Пример описания",
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user