コード例 #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockVisibilityParameter visibilityParameter = (DxfBlockVisibilityParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (visibilityParameter == null)
            {
                visibilityParameter = new DxfBlockVisibilityParameter();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)visibilityParameter);
                visibilityParameter.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)visibilityParameter);
        }
コード例 #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfTextObjectContextData objectContextData = (DxfTextObjectContextData)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (objectContextData == null)
            {
                objectContextData = new DxfTextObjectContextData();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)objectContextData);
                objectContextData.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)objectContextData);
        }
コード例 #3
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfMLineStyle dxfMlineStyle = (DxfMLineStyle)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfMlineStyle == null)
            {
                dxfMlineStyle = new DxfMLineStyle();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfMlineStyle);
                dxfMlineStyle.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfMlineStyle);
        }
コード例 #4
0
ファイル: DxfView.cs プロジェクト: 15831944/WW
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfView dxfView = (DxfView)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfView == null)
            {
                dxfView = new DxfView();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfView);
                dxfView.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfView);
        }
コード例 #5
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockLookupGrip dxfBlockLookupGrip = (DxfBlockLookupGrip)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfBlockLookupGrip == null)
            {
                dxfBlockLookupGrip = new DxfBlockLookupGrip();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfBlockLookupGrip);
                dxfBlockLookupGrip.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfBlockLookupGrip);
        }
コード例 #6
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockAlignmentParameter alignmentParameter = (DxfBlockAlignmentParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (alignmentParameter == null)
            {
                alignmentParameter = new DxfBlockAlignmentParameter();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)alignmentParameter);
                alignmentParameter.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)alignmentParameter);
        }
コード例 #7
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockArrayAction blockArrayAction = (DxfBlockArrayAction)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (blockArrayAction == null)
            {
                blockArrayAction = new DxfBlockArrayAction();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockArrayAction);
                blockArrayAction.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)blockArrayAction);
        }
コード例 #8
0
ファイル: DxfPolygonSplineMesh.cs プロジェクト: 15831944/WW
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPolygonSplineMesh polygonSplineMesh = (DxfPolygonSplineMesh)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (polygonSplineMesh == null)
            {
                polygonSplineMesh = new DxfPolygonSplineMesh();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)polygonSplineMesh);
                polygonSplineMesh.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)polygonSplineMesh);
        }
コード例 #9
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockPropertiesTable blockPropertiesTable = (DxfBlockPropertiesTable)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (blockPropertiesTable == null)
            {
                blockPropertiesTable = new DxfBlockPropertiesTable();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockPropertiesTable);
                blockPropertiesTable.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)blockPropertiesTable);
        }
コード例 #10
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfDictionary dictionary = (DxfDictionary)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dictionary == null)
            {
                dictionary = new DxfDictionary(false);
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dictionary);
                dictionary.CopyFrom((DxfHandledObject)this, cloneContext);
                cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfDictionary.Class753(dictionary));
            }
            return((IGraphCloneable)dictionary);
        }
コード例 #11
0
ファイル: DxfImageDef.cs プロジェクト: 15831944/WW
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfImageDef dxfImageDef = (DxfImageDef)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfImageDef == null)
            {
                dxfImageDef = new DxfImageDef(cloneContext.TargetModel);
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfImageDef);
                dxfImageDef.CopyFrom((DxfHandledObject)this, cloneContext);
                cloneContext.TargetModel.Images.Add(dxfImageDef);
            }
            return((IGraphCloneable)dxfImageDef);
        }
コード例 #12
0
ファイル: DxfDimensionStyle.cs プロジェクト: 15831944/WW
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfDimensionStyle to = (DxfDimensionStyle)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (to == null)
            {
                to = new DxfDimensionStyle(cloneContext.TargetModel);
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)to);
                to.CopyFrom((DxfHandledObject)this, cloneContext);
                cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfDimensionStyle.Class400(this, to));
            }
            return((IGraphCloneable)to);
        }
コード例 #13
0
        public IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfLookupActionInformation actionInformation = (DxfLookupActionInformation)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (actionInformation == null)
            {
                actionInformation = new DxfLookupActionInformation();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)actionInformation);
                actionInformation.Id             = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)this.Id);
                actionInformation.ResourceType   = this.ResourceType;
                actionInformation.Type           = this.Type;
                actionInformation.PropertyType   = this.PropertyType;
                actionInformation.Unmatched      = this.Unmatched;
                actionInformation.ConnectionText = this.ConnectionText;
                actionInformation.AllowEditing   = this.AllowEditing;
            }
            return((IGraphCloneable)actionInformation);
        }