Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SINF"/> class.
        /// </summary>
        /// <param name="from">The <see cref="BaseChunk" /> to use for creating this Chunk. The given data will be interpreted respectively.</param>
        public SINF(BaseChunk from) : base(from) {
            while (!EndOfData) {
                BaseChunk nextChunk = ReadChunk();

                switch (nextChunk.ChunkName) {
                    case "NAME":
                        Name = nextChunk.ReadString(nextChunk.Data.Length);
                        break;
                    case "FRAM":
                        FrameInformation = new FRAM(nextChunk);
                        break;
                    case "BBOX":
                        BoundingBox = new BBOX(nextChunk);
                        break;
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GEOM"/> class.
        /// </summary>
        /// <param name="from">The <see cref="BaseChunk" /> to use for creating this Chunk. The given data will be interpreted respectively.</param>
        public GEOM(BaseChunk from) : base(from)
        {
            while (!EndOfData)
            {
                BaseChunk nextChunk = ReadChunk();

                switch (nextChunk.ChunkName)
                {
                case "BBOX":
                    BoundingBox = new BBOX(nextChunk);
                    break;

                case "SEGM":
                    SEGM segm = new SEGM(nextChunk);
                    Segments.Add(segm);
                    break;
                }
            }
        }