示例#1
0
    public static MultiGridData ParseBinHeader(BinaryReader br, string filename, MultiGridData multigrid)
    {
        // Read header
        PatchDataIO.SkipBinVersion(br);
        PatchDataIO.ReadBinBoundsHeader(br, filename, multigrid);

        return(multigrid);
    }
示例#2
0
    private static GraphData ParseBinHeader(BinaryReader br, GraphData graph)
    {
        // Read header
        PatchDataIO.ReadBinBoundsHeader(br, graph);

        // Read cell sizes
        graph.cellSizeX = br.ReadDouble();
        graph.cellSizeY = br.ReadDouble();

        return(graph);
    }
示例#3
0
    private static GraphData ParseBinHeader(BinaryReader br, string filename, GraphData graph)
    {
        // Read header
        PatchDataIO.SkipBinVersion(br);
        PatchDataIO.ReadBinBoundsHeader(br, filename, graph);

        // Read cell sizes
        graph.cellSizeX = br.ReadDouble();
        graph.cellSizeY = br.ReadDouble();

        return(graph);
    }
示例#4
0
    private static GridData ParseBinHeader(BinaryReader br, GridData grid)
    {
        // Read header
        PatchDataIO.ReadBinBoundsHeader(br, grid);

        // Read categories count
        int count = br.ReadInt32();

        if (count > 0)
        {
            grid.categories = new Category[count];
        }

        return(grid);
    }
示例#5
0
    public static GridData ParseBinHeader(BinaryReader br, string filename, GridData grid)
    {
        // Read header
        PatchDataIO.SkipBinVersion(br);
        PatchDataIO.ReadBinBoundsHeader(br, filename, grid);

        // Read categories count
        int count = br.ReadInt32();

        if (count > 0)
        {
            grid.categories = new IntCategory[count];
        }

        return(grid);
    }
示例#6
0
    public static PointData ParseBinHeader(BinaryReader br, string filename, PointData pointData)
    {
        // Read header
        PatchDataIO.SkipBinVersion(br);
        PatchDataIO.ReadBinBoundsHeader(br, filename, pointData);

        // Read categories count
        int count = br.ReadInt32();

        if (count > 0)
        {
            pointData.categories = new IntCategory[count];
        }

        return(pointData);
    }