Add value diagram windows and view models

This commit is contained in:
Evgeny Redikultsev
2025-11-09 17:34:51 +05:00
parent 111b60a08d
commit 466b47f447
58 changed files with 1397 additions and 162 deletions

View File

@@ -0,0 +1,24 @@
using netDxf;
using netDxf.Entities;
using StructureHelperCommon.Infrastructures.Interfaces;
namespace StructureHelperCommon.Models.Shapes.Logics
{
public class CircleToDxfCircleConvertStrategy : IShapeConvertStrategy<Circle, ICircleShape>
{
public double Dx { get; set; } = 0;
public double Dy { get; set; } = 0;
public double Scale { get; set; } = 1;
public Circle Convert(ICircleShape source)
{
Vector3 center = new Vector3() { X = Dx * Scale, Y = Dy * Scale};
Circle circle = new Circle()
{
Radius = source.Diameter / 2 * Scale,
Center = center,
};
return circle;
}
}
}