Add ForceCombinationPropertyUserControl
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Infrastructures.Enums;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class ForceCombinationByFactorV1_0DTO : IForceFactoredList
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("Name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("LimitState")]
|
||||
public LimitStates LimitState { get; set; } = LimitStates.SLS;
|
||||
[JsonProperty("CalcTerm")]
|
||||
public CalcTerms CalcTerm { get; set; } = CalcTerms.ShortTerm;
|
||||
[JsonProperty("FullSLSForces")]
|
||||
public IForceTuple ForceTuple { get; set; } = new ForceTupleDTO();
|
||||
[JsonProperty("ULSFactor")]
|
||||
public double ULSFactor { get; set; }
|
||||
[JsonProperty("LongTermFactor")]
|
||||
public double LongTermFactor { get; set; }
|
||||
[JsonProperty("SetInGravityCenter")]
|
||||
public bool SetInGravityCenter { get; set; }
|
||||
[JsonProperty("ForcePoint")]
|
||||
public IPoint2D ForcePoint { get; set; } = new Point2DDTO();
|
||||
[JsonIgnore]
|
||||
public IFactoredCombinationProperty CombinationProperty => new FactoredCombinationProperty()
|
||||
{
|
||||
CalcTerm = CalcTerm,
|
||||
LimitState = LimitState,
|
||||
LongTermFactor = LongTermFactor,
|
||||
ULSFactor = ULSFactor,
|
||||
};
|
||||
[JsonIgnore]
|
||||
public List<IForceTuple> ForceTuples => new() { ForceTuple};
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IForceCombinationList GetCombination()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<IForceCombinationList> GetCombinations()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user