Exemplo n.º 1
0
        private VASS.Streams.StreamArray _build_sidsrc_stream(ShapeIDPairs shapeidpairs, SectionQueryCache cache)
        {
            int numcells = cache.CountCells();
            var sidsrcs  = _sidsrcs_for_shapes(shapeidpairs, cache);
            var stream   = VASS.Streams.StreamArray.FromSidSrc(numcells, sidsrcs);

            return(stream);
        }
Exemplo n.º 2
0
        private Streams.StreamArray _build_src_stream(SectionQueryCache cache)
        {
            int dummy_shapeid = -1;
            int shapeindex    = 0;
            int numcells      = cache.CountCells();
            var shapecache    = cache[shapeindex];
            var srcs          = _sidsrcs_for_shape(dummy_shapeid, shapecache).Select(i => i.Src);
            var stream        = Streams.StreamArray.FromSrc(numcells, srcs);

            return(stream);
        }