Add graph application
This commit is contained in:
37
StructureHelperLogics/Models/Editors/GraphEditorAnalysis.cs
Normal file
37
StructureHelperLogics/Models/Editors/GraphEditorAnalysis.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using StructureHelperCommon.Models.Analyses;
|
||||
using StructureHelperLogic.Models.Analyses;
|
||||
using StructureHelperLogics.Models.Analyses;
|
||||
using StructureHelperLogics.Models.CrossSections;
|
||||
using StructureHelperLogics.Models.Graphs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperLogics.Models.Editors
|
||||
{
|
||||
public class GraphEditorAnalysis : IAnalysis
|
||||
{
|
||||
public Guid Id { get; private set; }
|
||||
public string Name { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public IVersionProcessor VersionProcessor { get; private set; }
|
||||
public GraphEditorAnalysis(Guid Id, IVersionProcessor versionProcessor)
|
||||
{
|
||||
this.Id = Id;
|
||||
VersionProcessor = versionProcessor;
|
||||
}
|
||||
public GraphEditorAnalysis() : this(Guid.NewGuid(), new VersionProcessor())
|
||||
{
|
||||
Graph graph = new Graph();
|
||||
VersionProcessor.AddVersion(graph);
|
||||
}
|
||||
public object Clone()
|
||||
{
|
||||
GraphEditorAnalysis newAnalysis = new();
|
||||
//updateStrategy.Update(newAnalysis, this);
|
||||
return newAnalysis;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
StructureHelperLogics/Models/Graphs/Graph.cs
Normal file
22
StructureHelperLogics/Models/Graphs/Graph.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using StructureHelperLogics.Models.CrossSections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperLogics.Models.Graphs
|
||||
{
|
||||
internal class Graph : IGraph
|
||||
{
|
||||
public Guid Id { get; private set; }
|
||||
public Graph()
|
||||
{
|
||||
|
||||
}
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
14
StructureHelperLogics/Models/Graphs/IGraph.cs
Normal file
14
StructureHelperLogics/Models/Graphs/IGraph.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperLogics.Models.CrossSections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperLogics.Models.Graphs
|
||||
{
|
||||
public interface IGraph : ISaveable, ICloneable
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user