Canvas/DrawTools/ArcCircle3PointTool.cs
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Xml;
namespace Canvas.DrawTools
{
class NodePointArc3PointPoint : INodePoint
{
protected Arc3Point m_owner;
protected Arc3Point m_clone;
protected UnitPoint[] m_originalPoints = new UnitPoint[3];
protected UnitPoint[] m_endPoints = new UnitPoint[3];
protected Arc3Point.eCurrentPoint m_curPoint;
public NodePointArc3PointPoint(Arc3Point owner, Arc3Point.eCurrentPoint curpoint)
{
m_owner = owner;
m_clone = m_owner.Clone() as Arc3Point;
m_owner.Selected = false;
m_clone.Selected = true;
m_originalPoints[0] = m_owner.P1;
m_originalPoints[1] = m_owner.P2;
m_originalPoints[2] = m_owner.P3;
m_curPoint = curpoint;
}
#region INodePoint Members
public IDrawObject GetClone()
{
return m_clone;
}
public IDrawObject GetOriginal()
{
return m_owner;
}
public virtual void SetPosition(UnitPoint pos)
{
SetPoint(m_clone, pos);
}
/*
UnitPoint GetPoint()
{
if (m_curPoint == Arc3Point.eCurrentPoint.p1)
return m_clone.P1;
if (m_curPoint == Arc3Point.eCurrentPoint.p2)
return m_clone.P2;
if (m_curPoint == Arc3Point.eCurrentPoint.p3)
return m_clone.P3;
if (m_curPoint == Arc3Point.eCurrentPoint.startangle)
return m_clone.P1;
if (m_curPoint == Arc3Point.eCurrentPoint.endangle)
return m_clone.P3;
if (m_curPoint == Arc3Point.eCurrentPoint.radius)
return m_clone.P2;
return UnitPoint.Empty;
}
* */
void SetPoint(Arc3Point arc, UnitPoint pos)
{
后面还有 676 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。