org.osm2world.console
public class ImageExporter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageExporter.GDWriter
Implementation of an ImageWriter to write the (rare) gd file format
|
class |
ImageExporter.ImageExporterGLEventListener |
static interface |
ImageExporter.ImageWriter
interface ImageWriter is used to abstract the underlaying image
format.
|
static class |
ImageExporter.PNGWriter
Implementation of an ImageWriter to write png files
|
static class |
ImageExporter.PPMWriter
Implementation of an ImageWriter to write raw ppm files
|
Constructor and Description |
---|
ImageExporter(Configuration config,
ConversionFacade.Results results,
CLIArgumentsGroup expectedGroup)
Creates an
ImageExporter for later use. |
Modifier and Type | Method and Description |
---|---|
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
|
public ImageExporter(Configuration config, ConversionFacade.Results results, CLIArgumentsGroup expectedGroup)
ImageExporter
for later use.
Also performs calculations that only need to be done once for a group
of files, based on a CLIArgumentsGroup
.expectedGroup
- group that should contain at least the arguments
for the files that will later be requested.
Basis for optimization preparations.protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void freeResources()
writeImageFile(File, CLIArgumentsUtil.OutputMode, int, int, Camera, Projection)
afterwards.public void writeImageFile(File outputFile, CLIArgumentsUtil.OutputMode outputMode, int x, int y, Camera camera, Projection projection) throws IOException
outputMode
- one of the image output modesx
- horizontal resolutiony
- vertical resolutionIOException