org.osm2world.console
Class ImageExporter

Object
  extended by ImageExporter

public class ImageExporter
extends Object


Constructor Summary
ImageExporter(Configuration config, ConversionFacade.Results results, CLIArgumentsGroup expectedGroup)
          Creates an ImageExporter for later use.
 
Method Summary
protected  void finalize()
           
 void freeResources()
          manually frees resources that would otherwise remain used until the finalize call.
 void writeImageFile(File outputFile, CLIArgumentsUtil.OutputMode outputMode, int x, int y, Camera camera, Projection projection)
          renders this ImageExporter's content to a file
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageExporter

public ImageExporter(Configuration config,
                     ConversionFacade.Results results,
                     CLIArgumentsGroup expectedGroup)
Creates an ImageExporter for later use. Also performs calculations that only need to be done once for a group of files, based on a CLIArgumentsGroup.

Parameters:
expectedGroup - group that should contain at least the arguments for the files that will later be requested. Basis for optimization preparations.
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

freeResources

public void freeResources()
manually frees resources that would otherwise remain used until the finalize call. It is no longer possible to use writeImageFile(File, CLIArgumentsUtil.OutputMode, int, int, Camera, Projection) afterwards.


writeImageFile

public void writeImageFile(File outputFile,
                           CLIArgumentsUtil.OutputMode outputMode,
                           int x,
                           int y,
                           Camera camera,
                           Projection projection)
                    throws IOException
renders this ImageExporter's content to a file

Parameters:
outputMode - one of the image output modes
x - horizontal resolution
y - vertical resolution
Throws:
IOException