Add value diagram windows and view models
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
|
||||
namespace StructureHelperLogics.NdmCalculations.Analyses.ValueDiagrams
|
||||
{
|
||||
public class ValueDiagram : IValueDiagram
|
||||
{
|
||||
public Guid Id { get; }
|
||||
public int StepNumber { get; set; } = 50;
|
||||
public IPoint2DRange Point2DRange { get; } = new Point2DRange(Guid.NewGuid());
|
||||
|
||||
|
||||
public ValueDiagram(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
ValueDiagram newItem = new(Guid.NewGuid());
|
||||
var updateStrategy = new ValueDiagramUpdateStrategy();
|
||||
updateStrategy.Update(newItem, this);
|
||||
return newItem;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user