예제 #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPolyline3DSpline polyline3Dspline = (DxfPolyline3DSpline)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (polyline3Dspline == null)
            {
                polyline3Dspline = new DxfPolyline3DSpline();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)polyline3Dspline);
                polyline3Dspline.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)polyline3Dspline);
        }
예제 #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPolyline3DSpline polyline3Dspline = (DxfPolyline3DSpline)from;

            foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfVertex3D>)polyline3Dspline.dxfVertex3DCollection_0)
            {
                this.dxfVertex3DCollection_0.Add((DxfVertex3D)dxfHandledObject.Clone(cloneContext));
            }
            foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfVertex3D>)polyline3Dspline.dxfVertex3DCollection_1)
            {
                this.dxfVertex3DCollection_1.Add((DxfVertex3D)dxfHandledObject.Clone(cloneContext));
            }
            this.splineType_0 = polyline3Dspline.splineType_0;
        }
예제 #3
0
 public virtual void Visit(DxfPolyline3DSpline polyline)
 {
 }
예제 #4
0
 public virtual void Visit(DxfPolyline3DSpline polyline)
 {
     this.VisitEntity((DxfEntity)polyline);
 }