示例#1
0
 public void removeFeature(int featrueIdx)
 {
     Feature feature = featuresContainer.getFeature(featrueIdx);
     UndoElementPrimitive elem = new UndoElementPrimitive();
     elem.featureDeleted(featrueIdx, feature);
     undoPrimitives.Add(elem);
     featuresContainer.removeFeature(featrueIdx);
 }
示例#2
0
 public void removePart(int featrueIdx, int partIdx)
 {
     PolylineFeature feature = (PolylineFeature)featuresContainer.getFeature(featrueIdx);
     Part part = feature.m_oParts[partIdx];
     UndoElementPrimitive elem = new UndoElementPrimitive();
     elem.partDeleted(featrueIdx, partIdx, part);
     undoPrimitives.Add(elem);
     feature.m_oParts.RemoveAt(partIdx);
 }
示例#3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="actualPointMoved">points to actual point in contianer (attached)</param>
 /// <param name="originalPointLocation">clone of point (detached)</param>
 public void movePoint(DPoint actualPointMoved, DPoint originalPointLocation)
 {
     UndoElementPrimitive elem = new UndoElementPrimitive();
     elem.pointMoved(actualPointMoved, originalPointLocation);
     undoPrimitives.Add(elem);
 }
示例#4
0
 public void moveSymbol(SymbolFeature actualFeatureMoved, SymbolFeature originalFeatureLocation)
 {
     UndoElementPrimitive elem = new UndoElementPrimitive();
     elem.featureMoved(actualFeatureMoved, originalFeatureLocation);
     undoPrimitives.Add(elem);
 }
示例#5
0
 public void addFeature(PolylineFeature feature)
 {
     UndoElementPrimitive elem = new UndoElementPrimitive();
     elem.featureAdded(feature);
     undoPrimitives.Add(elem);
 }