Add calculators saving
This commit is contained in:
53
DataAccess/DTOs/DTOEntities/PointNdmPrimitiveDTO.cs
Normal file
53
DataAccess/DTOs/DTOEntities/PointNdmPrimitiveDTO.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using LoaderCalculator.Data.Ndms;
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using StructureHelperLogics.Models.CrossSections;
|
||||
using StructureHelperLogics.NdmCalculations.Primitives;
|
||||
using StructureHelperLogics.NdmCalculations.Triangulations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class PointNdmPrimitiveDTO : IPointNdmPrimitive
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("Name")]
|
||||
public string? Name { get; set; }
|
||||
[JsonProperty("NdmElement")]
|
||||
public INdmElement NdmElement { get; set; } = new NdmElementDTO();
|
||||
[JsonProperty("VisualProperty")]
|
||||
public IVisualProperty VisualProperty { get; set; } = new VisualPropertyDTO();
|
||||
[JsonProperty("Center")]
|
||||
public IPoint2D Center { get; set; } = new Point2DDTO();
|
||||
[JsonProperty("RotationAngle")]
|
||||
public double RotationAngle { get; set; } = 0d;
|
||||
[JsonProperty("Area")]
|
||||
public double Area { get; set; } = 0d;
|
||||
|
||||
[JsonIgnore]
|
||||
public ICrossSection? CrossSection { get; set; }
|
||||
[JsonIgnore]
|
||||
public IShape Shape { get; set; }
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<INdm> GetNdms(ITriangulationOptions triangulationOptions)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<INamedAreaPoint> GetValuePoints()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user