/// <summary> /// creates one part polyline /// </summary> /// <param name="oPoints"></param> /// <param name="oStyle"></param> public PolylineFeature(List<DPoint> oPoints, Style oStyle) { m_oParts = new List<Part>(); Part oPart = new Part(); m_oParts.Add(oPart); m_oStyle = oStyle; oPart.Points.AddRange(oPoints); }
public void partDeleted(int featrueIdx, int partIdx, Part part) { Debug.Assert(part != null); operationType = UndoElementType.DeletePolylinePart; this.featureIndex = featrueIdx; this.partIndex = partIdx; this.part = part; }
public PolylineFeature(PolylineFeature feature) { m_oStyle = feature.m_oStyle; m_oParts = new List<Part>(); foreach (Part part in feature.m_oParts) { Part newPart = new Part(); m_oParts.Add(newPart); foreach (DPoint point in part.Points) { newPart.Points.Add(new DPoint(point)); } } }