Exemplo n.º 1
0
            public void EndEntity()
            {
                if (!this.bool_0)
                {
                    return;
                }
                List <WpfWireframeGraphics3D.Class451> class451List;

                if (!this.dictionary_0.TryGetValue(this.class451_0.Entity, out class451List))
                {
                    class451List = new List <WpfWireframeGraphics3D.Class451>();
                    this.dictionary_0.Add(this.class451_0.Entity, class451List);
                }
                if (this.class451_0 != this.class451_1)
                {
                    class451List.Add(this.class451_0);
                }
                this.class451_0.EntityDrawable.Drawables = this.linkedListNodeRef_0.LinkedList;
                this.linkedListNodeRef_0.Initialize(this.class451_0.EntityDrawableNode.List, this.class451_0.EntityDrawableNode);
                this.stack_0.Pop();
                if (this.stack_0.Count > 0)
                {
                    this.class451_0 = this.stack_0.Peek();
                }
                else
                {
                    this.class451_0 = (WpfWireframeGraphics3D.Class451)null;
                }
            }
Exemplo n.º 2
0
 public void method_0(WpfWireframeGraphics3D.Class451 child)
 {
     if (this.list_0 == null)
     {
         this.list_0 = new List <WpfWireframeGraphics3D.Class451>();
     }
     this.list_0.Add(child);
     child.class451_0 = this;
 }
Exemplo n.º 3
0
        private void method_1(
            WpfWireframeGraphics3D.Class451 entityDrawablesInfo)
        {
            List <WpfWireframeGraphics3D.Class451> class451List;

            if (!this.dictionary_0.TryGetValue(entityDrawablesInfo.Entity, out class451List))
            {
                return;
            }
            class451List.Remove(entityDrawablesInfo);
            if (class451List.Count != 0)
            {
                return;
            }
            this.dictionary_0.Remove(entityDrawablesInfo.Entity);
        }
Exemplo n.º 4
0
 private void method_0(
     WpfWireframeGraphics3D.Class451 entityDrawablesInfo)
 {
     if (entityDrawablesInfo == null)
     {
         return;
     }
     this.method_1(entityDrawablesInfo);
     if (entityDrawablesInfo.Children == null)
     {
         return;
     }
     foreach (WpfWireframeGraphics3D.Class451 child in entityDrawablesInfo.Children)
     {
         this.method_0(child);
     }
 }
Exemplo n.º 5
0
 private void RemoveDrawables(
     WpfWireframeGraphics3D.Class451 entityDrawablesInfo,
     bool eraseOnly)
 {
     if (entityDrawablesInfo.Children != null)
     {
         foreach (WpfWireframeGraphics3D.Class451 child in entityDrawablesInfo.Children)
         {
             this.method_0(child);
         }
     }
     entityDrawablesInfo.EraseDrawables();
     if (eraseOnly)
     {
         return;
     }
     this.method_1(entityDrawablesInfo);
 }
Exemplo n.º 6
0
 public void BeginEntity(DxfEntity entity, DrawContext.Wireframe drawContext)
 {
     if (!this.bool_0)
     {
         return;
     }
     WpfWireframeGraphics3D.Class451 class4510 = this.class451_0;
     if (this.class451_1 != null && this.class451_1.Entity == entity)
     {
         this.class451_0 = this.class451_1;
     }
     else
     {
         this.class451_0 = new WpfWireframeGraphics3D.Class451(entity, drawContext);
         this.class451_0.EntityDrawable = new Class620();
         class4510?.method_0(this.class451_0);
         this.class451_0.EntityDrawableNode = this.linkedListNodeRef_0.Insert((Interface37)this.class451_0.EntityDrawable);
     }
     this.linkedListNodeRef_0.Initialize(this.class451_0.EntityDrawable.Drawables);
     this.stack_0.Push(this.class451_0);
 }