/* * Copyright (C) 2006 Steve Ratcliffe * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * * Author: Steve Ratcliffe * Create date: 03-Dec-2006 */ package uk.me.parabola.imgfmt.app.trergn; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import uk.me.parabola.imgfmt.app.Area; import uk.me.parabola.imgfmt.app.BufferedImgFileWriter; import uk.me.parabola.imgfmt.app.ImgFile; import uk.me.parabola.imgfmt.app.ImgFileWriter; import uk.me.parabola.imgfmt.app.Label; import uk.me.parabola.imgfmt.app.labelenc.EncodedText; import uk.me.parabola.imgfmt.fs.ImgChannel; import uk.me.parabola.log.Logger; import uk.me.parabola.util.Configurable; import uk.me.parabola.util.EnhancedProperties; /** * This is the file that contains the overview of the map. There * can be different zoom levels and each level of zoom has an * associated set of subdivided areas. Each of these areas then points * into the RGN file. * * This is quite a complex file as there are quite a few miscellaneous pieces * of information stored. * * @author Steve Ratcliffe */ public class TREFile extends ImgFile implements Configurable { private static final Logger log = Logger.getLogger(TREFile.class); // Zoom levels for map private final Zoom[] mapLevels = new Zoom[16]; private final List