org.osm2world.core
Class ConversionFacade
Object
ConversionFacade
public class ConversionFacade
- extends Object
provides an easy way to call all steps of the conversion process
in the correct order
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversionFacade
public ConversionFacade()
createRepresentations
public ConversionFacade.Results createRepresentations(File osmFile,
List<WorldModule> worldModules,
Configuration config,
List<Target<?>> targets)
throws IOException
- performs all necessary steps to go from
an OSM file to the renderable
WorldObject
s.
Sends updates to ConversionFacade.ProgressListener
s.
- Parameters:
osmFile
- file to read OSM data from; != nullworldModules
- modules that will create the WorldObject
s
in the result; null to use a default module listconfig
- set of parameters that controls various aspects
of the modules' behavior; null to use defaultstargets
- receivers of the conversion results; can be null if
you want to handle the returned results yourself
- Throws:
IOException
createRepresentations
public ConversionFacade.Results createRepresentations(OSMData osmData,
List<WorldModule> worldModules,
Configuration config,
List<Target<?>> targets)
throws IOException
- variant of
createRepresentations(File, List, Configuration, List)
that accepts OSMData
instead of a file.
Use this when all data is already
in memory, for example with editor applications.
- Parameters:
osmData
- input data; != nullworldModules
- modules that will create the WorldObject
s
in the result; null to use a default module listconfig
- set of parameters that controls various aspects
of the modules' behavior; null to use defaultstargets
- receivers of the conversion results; can be null if
you want to handle the returned results yourself
- Throws:
IOException
addProgressListener
public void addProgressListener(ConversionFacade.ProgressListener listener)