コード例 #1
0
ファイル: DxfBlockFlipAction.cs プロジェクト: 15831944/WW
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipAction dxfBlockFlipAction = (DxfBlockFlipAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, dxfBlockFlipAction.ActionConnections);
        }
コード例 #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockPolarStretchAction polarStretchAction = (DxfBlockPolarStretchAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, polarStretchAction.ActionConnections);
            if (polarStretchAction.Frame == null)
            {
                this.Frame = (WW.Math.Point2D[])null;
            }
            else
            {
                this.Frame = new WW.Math.Point2D[polarStretchAction.Frame.Length];
                for (int index = 0; index < polarStretchAction.Frame.Length; ++index)
                {
                    this.Frame[index] = polarStretchAction.Frame[index];
                }
            }
            if (polarStretchAction.RotateSelection == null)
            {
                this.RotateSelection = (DxfHandledObjectCollection <DxfHandledObject>)null;
            }
            else
            {
                int count = polarStretchAction.RotateSelection.Count;
                this.RotateSelection = new DxfHandledObjectCollection <DxfHandledObject>(count);
                for (int index = 0; index < count; ++index)
                {
                    this.RotateSelection.Add(cloneContext.SourceModel == cloneContext.TargetModel ? polarStretchAction.RotateSelection[index] : polarStretchAction.RotateSelection[index].Clone(cloneContext) as DxfHandledObject);
                }
            }
            this.StretchEntities = DxfBlockPolarStretchAction.StretchEntity.Clone(polarStretchAction.StretchEntities, cloneContext);
            this.StretchNodes    = DxfBlockPolarStretchAction.StretchNode.Clone(cloneContext, polarStretchAction.StretchNodes);
        }
コード例 #3
0
ファイル: DxfBlockScaleAction.cs プロジェクト: 15831944/WW
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockScaleAction blockScaleAction = (DxfBlockScaleAction)from;

            this.ScaleType         = blockScaleAction.ScaleType;
            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockScaleAction.ActionConnections);
        }
コード例 #4
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockArrayAction blockArrayAction = (DxfBlockArrayAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockArrayAction.ActionConnections);
            this.ColumnOffset      = blockArrayAction.ColumnOffset;
            this.RowOffset         = blockArrayAction.RowOffset;
        }
コード例 #5
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockBasePointAction blockBasePointAction = (DxfBlockBasePointAction)from;

            this.BasePoint       = blockBasePointAction.BasePoint;
            this.Offset          = blockBasePointAction.Offset;
            this.IndependentFlag = blockBasePointAction.IndependentFlag;
            this.Connections     = DxfConnectionPoint.Clone(cloneContext, blockBasePointAction.Connections);
        }
コード例 #6
0
ファイル: DxfBlockStretchAction.cs プロジェクト: 15831944/WW
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockStretchAction blockStretchAction = (DxfBlockStretchAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockStretchAction.ActionConnections);
            this.Frame             = new WW.Math.Point2D[blockStretchAction.Frame.Length];
            for (int index = 0; index < blockStretchAction.Frame.Length; ++index)
            {
                this.Frame[index] = blockStretchAction.Frame[index];
            }
            this.StretchEntities = DxfBlockPolarStretchAction.StretchEntity.Clone(blockStretchAction.StretchEntities, cloneContext);
            this.StretchNodes    = DxfBlockPolarStretchAction.StretchNode.Clone(cloneContext, blockStretchAction.StretchNodes);
        }