Added reviewing of results in graphic mode
This commit is contained in:
23
Services/ResultViewers/ResultFuncFactory.cs
Normal file
23
Services/ResultViewers/ResultFuncFactory.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using LoaderCalculator.Logics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelper.Services.ResultViewers
|
||||
{
|
||||
public static class ResultFuncFactory
|
||||
{
|
||||
public static IEnumerable<IResultFunc> GetResultFuncs()
|
||||
{
|
||||
List<IResultFunc> resultFuncs = new List<IResultFunc>();
|
||||
IStressLogic stressLogic = new StressLogic();
|
||||
resultFuncs.Add(new ResultFunc() { Name = "Total Strain", ResultFunction = stressLogic.GetTotalStrain });
|
||||
resultFuncs.Add(new ResultFunc() { Name = "Elastic Srtain", ResultFunction = stressLogic.GetElasticStrain });
|
||||
resultFuncs.Add(new ResultFunc() { Name = "Plastic Strain", ResultFunction = stressLogic.GetPlasticStrain });
|
||||
resultFuncs.Add(new ResultFunc() { Name = "Stress", ResultFunction = stressLogic.GetStress });
|
||||
return resultFuncs;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user