Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
        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);
        }
Ejemplo n.º 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);
        }