Beispiel #1
0
            public void EndEntity()
            {
                if (!this.bool_1)
                {
                    return;
                }
                List <GDIGraphics3D.Class941> class941List;

                if (!this.dictionary_0.TryGetValue(this.class941_0.Entity, out class941List))
                {
                    class941List = new List <GDIGraphics3D.Class941>();
                    this.dictionary_0.Add(this.class941_0.Entity, class941List);
                }
                if (this.class941_0 != this.class941_1)
                {
                    class941List.Add(this.class941_0);
                }
                this.class941_0.EntityDrawable.Drawables     = this.linkedListNodeRef_0.LinkedList;
                this.class941_0.TextEntityDrawable.Drawables = this.linkedListNodeRef_1.LinkedList;
                this.linkedListNodeRef_0.Initialize(this.class941_0.EntityDrawableNode.List, this.class941_0.EntityDrawableNode);
                this.linkedListNodeRef_1.Initialize(this.class941_0.TextEntityDrawableNode.List, this.class941_0.TextEntityDrawableNode);
                this.stack_0.Pop();
                if (this.stack_0.Count > 0)
                {
                    this.class941_0 = this.stack_0.Peek();
                }
                else
                {
                    this.class941_0 = (GDIGraphics3D.Class941)null;
                }
            }
Beispiel #2
0
 public void method_0(GDIGraphics3D.Class941 child)
 {
     if (this.list_0 == null)
     {
         this.list_0 = new List <GDIGraphics3D.Class941>();
     }
     this.list_0.Add(child);
     child.class941_0 = this;
 }
Beispiel #3
0
        private void method_3(GDIGraphics3D.Class941 entityDrawablesInfo)
        {
            List <GDIGraphics3D.Class941> class941List;

            if (!this.dictionary_0.TryGetValue(entityDrawablesInfo.Entity, out class941List))
            {
                return;
            }
            class941List.Remove(entityDrawablesInfo);
            if (class941List.Count != 0)
            {
                return;
            }
            this.dictionary_0.Remove(entityDrawablesInfo.Entity);
        }
Beispiel #4
0
 private void method_2(GDIGraphics3D.Class941 entityDrawablesInfo)
 {
     if (entityDrawablesInfo == null)
     {
         return;
     }
     this.method_3(entityDrawablesInfo);
     if (entityDrawablesInfo.Children == null)
     {
         return;
     }
     foreach (GDIGraphics3D.Class941 child in entityDrawablesInfo.Children)
     {
         this.method_2(child);
     }
 }
Beispiel #5
0
 private void RemoveDrawables(GDIGraphics3D.Class941 entityDrawablesInfo, bool eraseOnly)
 {
     if (entityDrawablesInfo.Children != null)
     {
         foreach (GDIGraphics3D.Class941 child in entityDrawablesInfo.Children)
         {
             this.method_2(child);
         }
     }
     entityDrawablesInfo.EraseDrawables();
     if (eraseOnly)
     {
         return;
     }
     this.method_3(entityDrawablesInfo);
 }
Beispiel #6
0
 public void BeginEntity(DxfEntity entity, DrawContext.Wireframe drawContext)
 {
     if (!this.bool_1)
     {
         return;
     }
     GDIGraphics3D.Class941 class9410 = this.class941_0;
     if (this.class941_1 != null && this.class941_1.Entity == entity)
     {
         this.class941_0 = this.class941_1;
     }
     else
     {
         this.class941_0 = new GDIGraphics3D.Class941(entity, drawContext);
         this.class941_0.EntityDrawable     = new Class664();
         this.class941_0.TextEntityDrawable = new Class664();
         class9410?.method_0(this.class941_0);
         this.class941_0.EntityDrawableNode     = this.linkedListNodeRef_0.Insert((Interface12)this.class941_0.EntityDrawable);
         this.class941_0.TextEntityDrawableNode = this.linkedListNodeRef_1.Insert((Interface12)this.class941_0.TextEntityDrawable);
     }
     this.linkedListNodeRef_0.Initialize(this.class941_0.EntityDrawable.Drawables);
     this.linkedListNodeRef_1.Initialize(this.class941_0.TextEntityDrawable.Drawables);
     this.stack_0.Push(this.class941_0);
 }