Files
2026-05-29 10:07:05 +08:00

59 lines
1.1 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace KinematicsBase
{
#region Link
[Serializable]
public class LinkElem
{
public LinkElem()
{
}
public LinkElem(string id, string name)
{
this.Id = id;
this.Name = name;
}
public string Id { get; set; }
public string Name { get; set; }
}
[Serializable]
public class Link
{
public Link()
{
this.GraphPosition = new System.Drawing.Point(0, 0);
}
public Link(string id, string name, bool isFixed = false)
{
this.Id = id;
this.Name = name;
this.IsFixed = isFixed;
}
public System.Drawing.Point GraphPosition { set; get; }
public string Id { get; set; }
public string ModelId { get; set; }
public bool IsFixed { get; set; }
public string Name { get; set; }
public List<LinkElem> LinkElements { get; set; } = new List<LinkElem>();
}
#endregion
}