uk.me.parabola.imgfmt.app.trergn
Class RGNFile

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.ImgFile
      extended by 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 MapObjects 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

Constructor Summary
RGNFile(ImgChannel chan)
           
 
Method Summary
 void addMapObject(MapObject item)
           
 int getExtTypeAreasSize()
           
 int getExtTypeLinesSize()
           
 int getExtTypePointsSize()
           
 ImgFileWriter getWriter()
           
 boolean haveExtendedTypes()
           
 void setIndPointPtr()
           
 void setPolygonPtr()
           
 void setPolylinePtr()
           
 void startDivision(Subdivision sd)
           
 void write()
           
 
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
 

Constructor Detail

RGNFile

public RGNFile(ImgChannel chan)
Method Detail

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()