Exemplo n.º 1
0
        public IList <DxfEntity> GetEntitiesInDrawingOrder(bool useSortEntsTable)
        {
            IList <DxfEntity> entities = (IList <DxfEntity>) this.Entities;

            if (useSortEntsTable)
            {
                DxfSortEntsTable sortEntsTable = this.SortEntsTable;
                if (sortEntsTable != null)
                {
                    entities = sortEntsTable.GetSortedEntities(entities);
                }
            }
            return(entities);
        }
Exemplo n.º 2
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfSortEntsTable handledObject = (DxfSortEntsTable)this.HandledObject;

            if (this.ulong_2 != 0UL)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(this.ulong_2);
                DxfBlock         dxfBlock         = dxfHandledObject as DxfBlock;
                if (dxfBlock != null)
                {
                    handledObject.OwnerBlock = dxfBlock;
                }
                else if (dxfHandledObject != null)
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.WrongType, Severity.Warning, "ExpectedType", (object)typeof(DxfBlock))
                    {
                        Parameters =
                        {
                            {
                                "ObjectType",
                                (object)dxfHandledObject.GetType()
                            },
                            {
                                "Object",
                                (object)dxfHandledObject
                            }
                        }
                    });
                }
                else
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning, "Handle", (object)this.ulong_2));
                }
            }
            foreach (Pair <ulong> pair in this.list_1)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(pair.First);
                DxfEntity        entity           = dxfHandledObject as DxfEntity;
                if (entity != null)
                {
                    handledObject.method_9(entity, pair.Second);
                }
                else if (dxfHandledObject != null)
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.WrongType, Severity.Warning, "ExpectedType", (object)typeof(DxfEntity))
                    {
                        Parameters =
                        {
                            {
                                "ObjectType",
                                (object)dxfHandledObject.GetType()
                            },
                            {
                                "Object",
                                (object)dxfHandledObject
                            }
                        }
                    });
                }
                else
                {
                    this.dxfMessageCollection_0.Add(new DxfMessage(DxfStatus.UnresolvedReference, Severity.Warning, "Handle", (object)this.ulong_2));
                }
            }
        }
Exemplo n.º 3
0
 public Class279(DxfSortEntsTable obj, DxfMessageCollection messages)
     : base((DxfObject)obj)
 {
     this.dxfMessageCollection_0 = messages;
 }
Exemplo n.º 4
0
 public void Visit(DxfSortEntsTable sortEntsTable)
 {
 }
Exemplo n.º 5
0
 public void Visit(DxfSortEntsTable sortEntsTable)
 {
     this.bool_0 = true;
 }