Exemple #1
0
        public IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockPropertiesTableColumnDefinition columnDefinition = (DxfBlockPropertiesTableColumnDefinition)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (columnDefinition == null)
            {
                columnDefinition = new DxfBlockPropertiesTableColumnDefinition();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)columnDefinition);
                columnDefinition.Parameter              = this.Parameter.Clone(cloneContext) as DxfObject;
                columnDefinition.UnknownInt1            = (short)0;
                columnDefinition.UnknownInt2            = (short)-1;
                columnDefinition.UnknownString1         = this.UnknownString1;
                columnDefinition.ConnectionPoint        = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)this.ConnectionPoint);
                columnDefinition.UnknownValue1          = (DxfXRecordValue)cloneContext.Clone((IGraphCloneable)this.UnknownValue1);
                columnDefinition.DefaultDoNotMatchValue = (DxfXRecordValue)cloneContext.Clone((IGraphCloneable)this.DefaultDoNotMatchValue);
                columnDefinition.UnknownFlag1           = this.UnknownFlag1;
                columnDefinition.UnknownFlag2           = this.UnknownFlag2;
                columnDefinition.UnknownFlag3           = this.UnknownFlag3;
                columnDefinition.UnknownFlag4           = this.UnknownFlag4;
                columnDefinition.UnknownFlag5           = this.UnknownFlag5;
                columnDefinition.UnknownString2         = this.UnknownString2;
                columnDefinition.UnknownObject1         = this.UnknownObject1.Clone(cloneContext) as DxfObject;
            }
            return((IGraphCloneable)columnDefinition);
        }
Exemple #2
0
        public void CopyFrom(CloneContext cloneContext, DxfTableCell from)
        {
            this.tableCellStateFlags_0 = from.tableCellStateFlags_0;
            this.string_0 = from.string_0;
            foreach (DxfTableCustomData dxfTableCustomData in (List <DxfTableCustomData>)from.dxfTableCustomDataCollection_0)
            {
                this.dxfTableCustomDataCollection_0.Add(dxfTableCustomData.Clone(cloneContext));
            }
            this.int_0 = from.int_0;
            this.int_1 = from.int_1;
            this.dxfTableCellLinkedData_0 = from.dxfTableCellLinkedData_0 != null?from.dxfTableCellLinkedData_0.Clone(cloneContext) : (DxfTableCellLinkedData)null;

            foreach (DxfTableCellContent tableCellContent in (List <DxfTableCellContent>)from.dxfTableCellContentCollection_0)
            {
                this.dxfTableCellContentCollection_0.Add(tableCellContent.Clone(cloneContext));
            }
            this.dxfTableCellStyle_0 = (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_0);
            this.dxfTableCellStyle_1 = cloneContext.SourceModel != cloneContext.TargetModel ? (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_1) : from.dxfTableCellStyle_1;
            this.class550_0          = from.class550_0 != null?from.class550_0.Clone() : (Class550)null;

            this.int_2    = from.int_2;
            this.int_3    = from.int_3;
            this.int_4    = from.int_4;
            this.double_0 = from.double_0;
            this.double_1 = from.double_1;
            if (cloneContext.SourceModel == cloneContext.TargetModel)
            {
                this.UnknownObject = from.UnknownObject;
            }
            else
            {
                this.UnknownObject = (DxfHandledObject)cloneContext.Clone((IGraphCloneable)from.UnknownObject);
            }
        }
Exemple #3
0
 protected virtual void CopyFrom(CloneContext cloneContext, DxfEvalGraph.GraphNode from)
 {
     this.graphNodeId_0 = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)from.graphNodeId_0);
     this.Expression    = (DxfObject)cloneContext.Clone((IGraphCloneable)from.Expression);
     this.int_0         = from.int_0;
     this.int_1         = from.int_1;
     this.int_2         = from.int_2;
     this.int_3         = from.int_3;
 }
Exemple #4
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockGrip dxfBlockGrip = (DxfBlockGrip)from;

            this.Position        = dxfBlockGrip.Position;
            this.GripExpression1 = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)dxfBlockGrip.GripExpression1);
            this.GripExpression2 = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)dxfBlockGrip.GripExpression2);
            this.CyclingFlag     = dxfBlockGrip.CyclingFlag;
            this.CyclingWeight   = dxfBlockGrip.CyclingWeight;
        }
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfEvalGraphExpression evalGraphExpression = (DxfEvalGraphExpression)from;

            this.DataValue    = (DxfXRecordValue)cloneContext.Clone((IGraphCloneable)evalGraphExpression.DataValue);
            this.VersionMajor = evalGraphExpression.VersionMajor;
            this.NodeId       = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)evalGraphExpression.NodeId);
            this.VersionMinor = evalGraphExpression.VersionMinor;
            this.UnknownField = evalGraphExpression.UnknownField;
        }
Exemple #6
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfEvalGraph dxfEvalGraph = (DxfEvalGraph)from;

            this.LastNodeId = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)dxfEvalGraph.LastNodeId);
            if (dxfEvalGraph.Nodes == null)
            {
                this.Nodes = (DxfEvalGraph.GraphNode[])null;
            }
            else
            {
                this.Nodes = new DxfEvalGraph.GraphNode[dxfEvalGraph.Nodes.Length];
                for (int index = 0; index < this.Nodes.Length; ++index)
                {
                    this.Nodes[index] = (DxfEvalGraph.GraphNode)dxfEvalGraph.Nodes[index].Clone(cloneContext);
                    this.Nodes[index].Expression.vmethod_2((IDxfHandledObject)this);
                }
            }
            if (dxfEvalGraph.Edges == null)
            {
                this.Edges = (DxfEvalGraph.GraphEdge[])null;
            }
            else
            {
                this.Edges = dxfEvalGraph.Edges;
                for (int index = 0; index < this.Edges.Length; ++index)
                {
                    this.Edges[index] = (DxfEvalGraph.GraphEdge)dxfEvalGraph.Edges[index].Clone(cloneContext);
                }
            }
        }
Exemple #7
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockRotateAction blockRotateAction = (DxfBlockRotateAction)from;

            this.ActionConnection = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockRotateAction.ActionConnection);
        }
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockConstraintParameter constraintParameter = (DxfBlockConstraintParameter)from;

            this.Dependency = (DxfHandledObject)cloneContext.Clone((IGraphCloneable)constraintParameter.Dependency);
        }
Exemple #9
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipGrip dxfBlockFlipGrip = (DxfBlockFlipGrip)from;

            this.Orientation    = dxfBlockFlipGrip.Orientation;
            this.FlipExpression = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)dxfBlockFlipGrip.FlipExpression);
        }
Exemple #10
0
 public IGraphCloneable Clone(CloneContext cloneContext)
 {
     DxfBlockPolarStretchAction.StretchNode stretchNode = new DxfBlockPolarStretchAction.StretchNode();
     stretchNode.Node         = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)this.Node);
     stretchNode.PointIndexes = new int[this.PointIndexes.Length];
     this.PointIndexes.CopyTo((Array)stretchNode.PointIndexes, 0);
     return((IGraphCloneable)stretchNode);
 }
Exemple #11
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockLookUpParameter blockLookUpParameter = (DxfBlockLookUpParameter)from;

            this.LabelText   = blockLookUpParameter.LabelText;
            this.Description = blockLookUpParameter.Description;
            this.ActionId    = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)blockLookUpParameter.ActionId);
        }
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockLinearConstraintParameter constraintParameter = (DxfBlockLinearConstraintParameter)from;

            this.ValueSet    = (DxfBlockParametersValueSet)cloneContext.Clone((IGraphCloneable)constraintParameter.ValueSet);
            this.Value       = constraintParameter.Value;
            this.Description = constraintParameter.Description;
        }
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockSinglePointParameter singlePointParameter = (DxfBlockSinglePointParameter)from;

            this.BasePoint      = singlePointParameter.BasePoint;
            this.GripId         = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)singlePointParameter.GripId);
            this.FirstProperty  = (DxfBlockParameterPropertyInfo)singlePointParameter.FirstProperty.Clone(cloneContext);
            this.SecondProperty = (DxfBlockParameterPropertyInfo)singlePointParameter.SecondProperty.Clone(cloneContext);
        }
Exemple #14
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockUserParameter blockUserParameter = (DxfBlockUserParameter)from;

            this.UnknownInt16  = blockUserParameter.UnknownInt16;
            this.Variable      = cloneContext.SourceModel == cloneContext.TargetModel ? blockUserParameter.Variable : (DxfHandledObject)cloneContext.Clone((IGraphCloneable)blockUserParameter.Variable);
            this.UnknownString = blockUserParameter.UnknownString;
            this.Unknown       = (DxfXRecordValue)cloneContext.Clone((IGraphCloneable)blockUserParameter.Unknown);
            this.ValueType     = blockUserParameter.ValueType;
        }
Exemple #15
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockPropertiesTable blockPropertiesTable = (DxfBlockPropertiesTable)from;

            this.NodeId            = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)blockPropertiesTable.NodeId);
            this.TableName         = blockPropertiesTable.TableName;
            this.DescriptionString = blockPropertiesTable.DescriptionString;
            this.Unknown1          = blockPropertiesTable.Unknown1;
            this.PropertiesCanBeModifiedIndividually = blockPropertiesTable.PropertiesCanBeModifiedIndividually;
            this.UnknownFlag2 = blockPropertiesTable.UnknownFlag2;
            this.UnknownFlag3 = blockPropertiesTable.UnknownFlag3;
            if (blockPropertiesTable.Data == null)
            {
                this.Data = (DxfXRecordValue[][])null;
            }
            else
            {
                this.Data = new DxfXRecordValue[blockPropertiesTable.Data.Length][];
                for (int index1 = 0; index1 < blockPropertiesTable.Data.Length; ++index1)
                {
                    int length = blockPropertiesTable.Data[index1] == null ? 0 : blockPropertiesTable.Data[index1].Length;
                    this.Data[index1] = new DxfXRecordValue[length];
                    for (int index2 = 0; index2 < length; ++index2)
                    {
                        this.Data[index1][index2] = (DxfXRecordValue)blockPropertiesTable.Data[index1][index2].Clone(cloneContext);
                    }
                }
            }
            if (blockPropertiesTable.DataNodeId == null)
            {
                this.DataNodeId = (int[])null;
            }
            else
            {
                this.DataNodeId = new int[blockPropertiesTable.DataNodeId.Length];
                for (int index = 0; index < blockPropertiesTable.DataNodeId.Length; ++index)
                {
                    this.DataNodeId[index] = blockPropertiesTable.DataNodeId[index];
                }
            }
            if (blockPropertiesTable.ColumnInformation == null)
            {
                this.ColumnInformation = (DxfBlockPropertiesTableColumnDefinition[])null;
            }
            else
            {
                this.ColumnInformation = new DxfBlockPropertiesTableColumnDefinition[blockPropertiesTable.ColumnInformation.Length];
                for (int index = 0; index < blockPropertiesTable.ColumnInformation.Length; ++index)
                {
                    this.ColumnInformation[index] = blockPropertiesTable.ColumnInformation[index].Clone(cloneContext) as DxfBlockPropertiesTableColumnDefinition;
                }
            }
        }
Exemple #16
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfFormattedTableData formattedTableData = (DxfFormattedTableData)from;

            this.dxfTableCellStyle_0 = (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)formattedTableData.dxfTableCellStyle_0);
            foreach (DxfTableCellRange dxfTableCellRange in (List <DxfTableCellRange>)formattedTableData.dxfTableCellRangeCollection_0)
            {
                this.dxfTableCellRangeCollection_0.Add(dxfTableCellRange.Clone());
            }
        }
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockAngularConstraintParameter constraintParameter = (DxfBlockAngularConstraintParameter)from;

            this.BasePointAngular = constraintParameter.BasePointAngular;
            this.TextPosition     = constraintParameter.TextPosition;
            this.ValueSet         = (DxfBlockParametersValueSet)cloneContext.Clone((IGraphCloneable)constraintParameter.ValueSet);
            this.Value            = constraintParameter.Value;
            this.Description      = constraintParameter.Description;
            this.Unknown1         = constraintParameter.Unknown1;
        }
Exemple #18
0
 public void CopyFrom(DxfTableColumn from, CloneContext cloneContext)
 {
     this.string_0 = from.string_0;
     this.int_0    = from.int_0;
     foreach (DxfTableCustomData dxfTableCustomData in (List <DxfTableCustomData>)from.dxfTableCustomDataCollection_0)
     {
         this.dxfTableCustomDataCollection_0.Add(dxfTableCustomData.Clone(cloneContext));
     }
     this.dxfTableCellStyle_0 = (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_0);
     this.dxfTableCellStyle_1 = cloneContext.SourceModel != cloneContext.TargetModel ? (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)from.dxfTableCellStyle_1) : from.dxfTableCellStyle_1;
     this.double_0            = from.double_0;
 }
Exemple #19
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipParameter blockFlipParameter = (DxfBlockFlipParameter)from;

            this.LabelPosition   = blockFlipParameter.LabelPosition;
            this.LabelText       = blockFlipParameter.LabelText;
            this.Description     = blockFlipParameter.Description;
            this.NotFlippedState = blockFlipParameter.NotFlippedState;
            this.FlippedState    = blockFlipParameter.FlippedState;
            this.Connection      = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockFlipParameter.Connection);
        }
Exemple #20
0
        public DxfTableCellContent Clone(CloneContext cloneContext)
        {
            DxfTableCellContent tableCellContent = new DxfTableCellContent();

            tableCellContent.tableCellContentType_0 = this.tableCellContentType_0;
            tableCellContent.dxfValue_0             = this.dxfValue_0 != null?this.dxfValue_0.Clone(cloneContext) : (DxfValue)null;

            tableCellContent.ValueObject        = (DxfHandledObject)cloneContext.Clone((IGraphCloneable)this.ValueObject);
            tableCellContent.dxfContentFormat_0 = (DxfContentFormat)this.dxfContentFormat_0.Clone(cloneContext);
            foreach (DxfTableAttribute dxfTableAttribute in (List <DxfTableAttribute>) this.dxfTableAttributeCollection_0)
            {
                tableCellContent.dxfTableAttributeCollection_0.Add(dxfTableAttribute.Clone(cloneContext));
            }
            return(tableCellContent);
        }
Exemple #21
0
 public static DxfEvalGraph.GraphNodeId[] Clone(
     CloneContext cloneContext,
     DxfEvalGraph.GraphNodeId[] cloneFrom)
 {
     if (cloneFrom == null)
     {
         return((DxfEvalGraph.GraphNodeId[])null);
     }
     DxfEvalGraph.GraphNodeId[] graphNodeIdArray = new DxfEvalGraph.GraphNodeId[cloneFrom.Length];
     for (int index = 0; index < cloneFrom.Length; ++index)
     {
         graphNodeIdArray[index] = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)cloneFrom[index]);
     }
     return(graphNodeIdArray);
 }
Exemple #22
0
 public static DxfConnectionPoint[] Clone(
     CloneContext cloneContext,
     DxfConnectionPoint[] cloneFrom)
 {
     if (cloneFrom == null)
     {
         return((DxfConnectionPoint[])null);
     }
     DxfConnectionPoint[] dxfConnectionPointArray = new DxfConnectionPoint[cloneFrom.Length];
     for (int index = 0; index < cloneFrom.Length; ++index)
     {
         dxfConnectionPointArray[index] = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)cloneFrom[index]);
     }
     return(dxfConnectionPointArray);
 }
Exemple #23
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);
        }
Exemple #24
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfIdBuffer dxfIdBuffer = (DxfIdBuffer)from;

            this.byte_0 = dxfIdBuffer.byte_0;
            this.dxfHandledObjectCollection_1.Clear();
            if (cloneContext.SourceModel == cloneContext.TargetModel)
            {
                this.dxfHandledObjectCollection_1 = dxfIdBuffer.dxfHandledObjectCollection_1;
            }
            else
            {
                foreach (DxfHandledObject dxfHandledObject in dxfIdBuffer.dxfHandledObjectCollection_1)
                {
                    this.dxfHandledObjectCollection_1.Add((DxfHandledObject)cloneContext.Clone((IGraphCloneable)dxfHandledObject));
                }
            }
        }
Exemple #25
0
 public void CopyFrom(CloneContext cloneContext, Class475 from)
 {
     this.int_0    = from.int_0;
     this.double_0 = from.double_0;
     this.double_1 = from.double_1;
     this.Obj      = cloneContext.SourceModel != cloneContext.TargetModel ? (DxfHandledObject)cloneContext.Clone((IGraphCloneable)from.Obj) : from.Obj;
     foreach (Class550 class550 in from.list_0)
     {
         this.list_0.Add(class550.Clone());
     }
 }
Exemple #26
0
 protected override void OnCloned(RuntimeObject sourceObj, bool isTransfer, CloneContext context)
 {
     base.OnCloned(sourceObj, isTransfer, context);
     this.Buffer = (ArrayBuffer)context.Clone(this.Buffer);
 }
Exemple #27
0
 public void CopyFrom(CloneContext cloneContext, DxfEntitySortWrapper from)
 {
     this.Entity  = cloneContext.SourceModel != cloneContext.TargetModel ? (DxfEntity)cloneContext.Clone((IGraphCloneable)from.Entity) : from.Entity;
     this.ulong_0 = from.ulong_0;
 }
Exemple #28
0
 public static DxfBlockPolarStretchAction.StretchEntity Clone(
     DxfBlockPolarStretchAction.StretchEntity cloneFrom,
     CloneContext cloneContext)
 {
     DxfBlockPolarStretchAction.StretchEntity stretchEntity = new DxfBlockPolarStretchAction.StretchEntity();
     stretchEntity.Entity = cloneContext.SourceModel == cloneContext.TargetModel ? cloneFrom.Entity : (DxfHandledObject)cloneContext.Clone((IGraphCloneable)cloneFrom.Entity);
     if (cloneFrom.PointIndexes == null)
     {
         stretchEntity.PointIndexes = (int[])null;
     }
     else
     {
         stretchEntity.PointIndexes = new int[cloneFrom.PointIndexes.Length];
         cloneFrom.PointIndexes.CopyTo((Array)stretchEntity.PointIndexes, 0);
     }
     return(stretchEntity);
 }
Exemple #29
0
 protected virtual void CopyFrom(CloneContext cloneContext, DxfConnectionPoint from)
 {
     this.graphNodeId_0 = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)from.graphNodeId_0);
     this.string_0      = from.string_0;
 }