private void method_8() { Class284 class2 = this.class274_0.method_15(); class2.method_10().Clear(); int num = 0; foreach (Class276 class3 in this.class1063_0) { int num3; class3.method_16().method_11().method_5((class2.method_10().Count + 1) * 0x400); class3.method_11(); for (int i = (class3.method_12().method_8() - class3.method_16().method_11().method_4()) + 1; i > 0; i -= num3) { num3 = Math.Min(i, 0x400); class2.method_10().Add(new Class1151(class3.method_12().method_4(), num3)); } num += class3.method_12().method_6(); class2.method_9(class2.method_8() + 1); } class2.method_7(num); class2.method_5(((class2.method_10().Count + 1) * 0x400) + 2); }
protected override void vmethod_2() { foreach (DxfLayout layout in this.Layouts) { Class284 class284 = this.method_5(layout.Handle) as Class284; if (class284 != null && !class284.HasViewportHandles) { DxfBlock ownerBlock = layout.OwnerBlock; if (ownerBlock != null) { Class318 class318 = this.method_5(ownerBlock.Handle) as Class318; if (class318 != null && class318.OrderedViewports.Count > 0) { layout.Viewports.AddRange((IEnumerable <DxfViewport>)class318.OrderedViewports); } } } } DxfLayout dxfLayout = this.Model.method_15(); if (dxfLayout != null) { foreach (Class259 entityHeaderBuilder in this.ViewportEntityHeaderBuilders) { DxfViewport viewport = ((DxfViewportEntityHeader)entityHeaderBuilder.HandledObject).Viewport; if (viewport != null && !dxfLayout.Viewports.Contains(viewport)) { dxfLayout.Viewports.Add(viewport); } } } foreach (Class308 viewportBuilder in this.ViewportBuilders) { DxfViewport handledObject = (DxfViewport)viewportBuilder.HandledObject; if (viewportBuilder.EntityMode == (byte)0) { if (viewportBuilder.ParentEntityRefHandle != 0UL) { DxfBlock dxfBlock = this.method_4 <DxfBlock>(viewportBuilder.ParentEntityRefHandle); handledObject.vmethod_2((IDxfHandledObject)dxfBlock); if (dxfBlock.Layout != null && !dxfBlock.Layout.Viewports.Contains(handledObject)) { dxfBlock.Layout.Viewports.Add(handledObject); } } } else if (viewportBuilder.EntityMode == (byte)1) { if (this.PaperSpaceBlockRecordHandle != 0UL) { DxfBlock dxfBlock = this.method_4 <DxfBlock>(this.PaperSpaceBlockRecordHandle); if (dxfBlock != null && dxfBlock.Layout != null && !dxfBlock.Layout.Viewports.Contains(handledObject)) { dxfBlock.Layout.Viewports.Add(handledObject); } } } else if (viewportBuilder.EntityMode == (byte)2 && this.ModelSpaceBlockRecordHandle != 0UL) { DxfBlock dxfBlock = this.method_4 <DxfBlock>(this.ModelSpaceBlockRecordHandle); if (dxfBlock != null && dxfBlock.Layout != null && !dxfBlock.Layout.Viewports.Contains(handledObject)) { dxfBlock.Layout.Viewports.Add(handledObject); } } } }
public abstract void Visit(Class284 c);
public override void Visit(Class284 c) { }