public void method_0(WireframeGraphics2Cache.Class923 child) { if (this.list_0 == null) { this.list_0 = new List <WireframeGraphics2Cache.Class923>(); } this.list_0.Add(child); child.class923_0 = this; }
private void method_2( WireframeGraphics2Cache.Class923 entityDrawablesInfo) { List <WireframeGraphics2Cache.Class923> class923List; if (!this.dictionary_0.TryGetValue(entityDrawablesInfo.Entity, out class923List)) { return; } class923List.Remove(entityDrawablesInfo); if (class923List.Count != 0) { return; } this.dictionary_0.Remove(entityDrawablesInfo.Entity); }
private void method_1( WireframeGraphics2Cache.Class923 entityDrawablesInfo) { if (entityDrawablesInfo == null) { return; } this.method_2(entityDrawablesInfo); if (entityDrawablesInfo.Children == null) { return; } foreach (WireframeGraphics2Cache.Class923 child in entityDrawablesInfo.Children) { this.method_1(child); } }
public void EndEntity() { if (this.wireframeGraphics2Cache_0.bool_1) { this.stack_0.Pop(); this.class923_0 = this.stack_0.Count > 0 ? this.stack_0.Peek() : (WireframeGraphics2Cache.Class923)null; } if (this.stack_1.Count > 0) { LinkedList <IWireframeDrawable2> linkedList = this.linkedListNodeRef_0.LinkedList; this.linkedListNodeRef_0 = this.stack_1.Pop(); ((WireframeGraphics2Cache.Class924) this.linkedListNodeRef_0.CurrentNode.Value).Drawables = linkedList; } else { this.linkedListNodeRef_0 = (LinkedListNodeRef <IWireframeDrawable2>)null; } }
private void RemoveDrawables( WireframeGraphics2Cache.Class923 entityDrawablesInfo, bool eraseOnly) { if (entityDrawablesInfo.Children != null) { foreach (WireframeGraphics2Cache.Class923 child in entityDrawablesInfo.Children) { this.method_1(child); } } entityDrawablesInfo.EraseDrawables(); if (eraseOnly) { return; } this.method_2(entityDrawablesInfo); }
public void BeginEntity(DxfEntity entity, DrawContext.Wireframe drawContext) { WireframeGraphics2Cache.Class924 class924; LinkedListNode <IWireframeDrawable2> currentNode; if (this.class923_1 != null && this.class923_1.Entity == entity) { class924 = this.class923_1.EntityDrawable; currentNode = this.class923_1.EntityGeometryNode; } else { class924 = new WireframeGraphics2Cache.Class924(entity, drawContext); currentNode = this.linkedListNodeRef_0.Insert((IWireframeDrawable2)class924); } this.stack_1.Push(new LinkedListNodeRef <IWireframeDrawable2>(this.linkedListNodeRef_0.LinkedList, currentNode)); if (this.wireframeGraphics2Cache_0.bool_1) { WireframeGraphics2Cache.Class923 class9230 = this.class923_0; if (this.class923_1 != null && this.class923_1.Entity == entity) { this.class923_0 = this.class923_1; } else { this.class923_0 = new WireframeGraphics2Cache.Class923(entity, drawContext); this.class923_0.EntityGeometryNode = currentNode; this.class923_0.EntityDrawable = class924; class9230?.method_0(this.class923_0); List <WireframeGraphics2Cache.Class923> class923List; if (!this.wireframeGraphics2Cache_0.dictionary_0.TryGetValue(entity, out class923List)) { class923List = new List <WireframeGraphics2Cache.Class923>(); this.wireframeGraphics2Cache_0.dictionary_0.Add(entity, class923List); } class923List.Add(this.class923_0); } this.stack_0.Push(this.class923_0); } this.linkedListNodeRef_0.Initialize(class924.Drawables); }