public IDrawObject Clone() { try { BezierTool Bezier = new BezierTool(this.Type); Bezier.Copy(this); return(Bezier); } catch (Exception ex) { throw ex; } }
public void Finish() { try { m_endPoint = GetPoint(m_pointId); m_owner.P1 = m_clone.P1; m_owner.P2 = m_clone.P2; m_owner.P3 = m_clone.P3; m_owner.P4 = m_clone.P4; m_clone = null; } catch (Exception ex) { throw ex; } }
public virtual void Copy(BezierTool acopy) { try { base.Copy(acopy); m_p1 = acopy.m_p1; m_p2 = acopy.m_p2; m_p3 = acopy.m_p3; m_p4 = acopy.m_p4; Selected = acopy.Selected; } catch (Exception ex) { throw ex; } }
public BezierTool(BezierTool owner, eCurrentPoint id) { try { m_owner = owner; m_clone = m_owner.Clone() as BezierTool; m_pointId = id; Type = owner.Type; m_originalPoint = GetPoint(m_pointId); UseRoute = false; } catch (Exception ex) { throw ex; } }
protected void SetPoint(eCurrentPoint pointid, UnitPoint point, BezierTool Bezier) { try { if (pointid == eCurrentPoint.p1) { Bezier.P1 = point; } if (pointid == eCurrentPoint.p2) { Bezier.P2 = point; } if (pointid == eCurrentPoint.p3) { Bezier.P3 = point; } if (pointid == eCurrentPoint.p4) { Bezier.P4 = point; } } catch (Exception ex) { throw ex; } }