uk.me.parabola.imgfmt.app.trergn
Class RGNFile
java.lang.Object
uk.me.parabola.imgfmt.app.ImgFile
uk.me.parabola.imgfmt.app.trergn.RGNFile
- All Implemented Interfaces:
- java.io.Closeable
public class RGNFile
- extends ImgFile
The region file. Holds actual details of points and lines etc.
The data is rather complicated and is packed to save space. This class does
not really handle that format however as it is written by the
MapObject
s themselves.
Each subdivision takes space in this file. The I am expecting this to be the
biggest file, although it seems that TRE may be in some circumstances.
- Author:
- Steve Ratcliffe
Methods inherited from class uk.me.parabola.imgfmt.app.ImgFile |
close, getHeader, getReader, getSize, isWritable, position, position, setHeader, setReader, setWriter, sync |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RGNFile
public RGNFile(ImgChannel chan)
write
public void write()
startDivision
public void startDivision(Subdivision sd)
addMapObject
public void addMapObject(MapObject item)
setIndPointPtr
public void setIndPointPtr()
setPolylinePtr
public void setPolylinePtr()
setPolygonPtr
public void setPolygonPtr()
getWriter
public ImgFileWriter getWriter()
- Overrides:
getWriter
in class ImgFile
getExtTypePointsSize
public int getExtTypePointsSize()
getExtTypeLinesSize
public int getExtTypeLinesSize()
getExtTypeAreasSize
public int getExtTypeAreasSize()
haveExtendedTypes
public boolean haveExtendedTypes()