public void method_0(WireframeGraphicsCache.Class958 child) { if (this.list_0 == null) { this.list_0 = new List <WireframeGraphicsCache.Class958>(); } this.list_0.Add(child); child.class958_0 = this; }
public void EndEntity() { if (this.wireframeGraphicsCache_0.bool_1) { this.stack_0.Pop(); this.class958_0 = this.stack_0.Count > 0 ? this.stack_0.Peek() : (WireframeGraphicsCache.Class958)null; } if (this.stack_1.Count > 0) { this.linkedListNodeRef_0 = this.stack_1.Pop(); } else { this.linkedListNodeRef_0 = (LinkedListNodeRef <IWireframeDrawable>)null; } }
private void method_2( WireframeGraphicsCache.Class958 entityDrawablesInfo) { List <WireframeGraphicsCache.Class958> class958List; if (!this.dictionary_0.TryGetValue(entityDrawablesInfo.Entity, out class958List)) { return; } class958List.Remove(entityDrawablesInfo); if (class958List.Count != 0) { return; } this.dictionary_0.Remove(entityDrawablesInfo.Entity); }
private void method_1( WireframeGraphicsCache.Class958 entityDrawablesInfo) { if (entityDrawablesInfo == null) { return; } this.method_2(entityDrawablesInfo); if (entityDrawablesInfo.Children == null) { return; } foreach (WireframeGraphicsCache.Class958 child in entityDrawablesInfo.Children) { this.method_1(child); } }
private void RemoveDrawables( WireframeGraphicsCache.Class958 entityDrawablesInfo, bool eraseOnly) { if (entityDrawablesInfo.Children != null) { foreach (WireframeGraphicsCache.Class958 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) { WireframeGraphicsCache.Class959 class959; LinkedListNode <IWireframeDrawable> currentNode; if (this.class958_1 != null && this.class958_1.Entity == entity) { class959 = this.class958_1.EntityDrawable; currentNode = this.class958_1.EntityGeometryNode; } else { class959 = new WireframeGraphicsCache.Class959(entity, drawContext); currentNode = this.linkedListNodeRef_0.Insert((IWireframeDrawable)class959); } this.stack_1.Push(new LinkedListNodeRef <IWireframeDrawable>(this.linkedListNodeRef_0.LinkedList, currentNode)); if (this.wireframeGraphicsCache_0.bool_1) { WireframeGraphicsCache.Class958 class9580 = this.class958_0; if (this.class958_1 != null && this.class958_1.Entity == entity) { this.class958_0 = this.class958_1; } else { this.class958_0 = new WireframeGraphicsCache.Class958(entity, drawContext); this.class958_0.EntityGeometryNode = currentNode; this.class958_0.EntityDrawable = class959; class9580?.method_0(this.class958_0); List <WireframeGraphicsCache.Class958> class958List; if (!this.wireframeGraphicsCache_0.dictionary_0.TryGetValue(entity, out class958List)) { class958List = new List <WireframeGraphicsCache.Class958>(); this.wireframeGraphicsCache_0.dictionary_0.Add(entity, class958List); } class958List.Add(this.class958_0); } this.stack_0.Push(this.class958_0); } this.linkedListNodeRef_0.Initialize(class959.Drawables, class959.Drawables.Last); }