|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ConversionFacade
public class ConversionFacade
provides an easy way to call all steps of the conversion process in the correct order
Nested Class Summary | |
---|---|
static class |
ConversionFacade.BoundingBoxSizeException
exception to be thrown if the OSM input data covers an area larger than the maxBoundingBoxDegrees config property |
static class |
ConversionFacade.Phase
|
static interface |
ConversionFacade.ProgressListener
implemented by classes that want to be informed about a conversion run's progress |
static class |
ConversionFacade.Results
all results of a conversion run |
Constructor Summary | |
---|---|
ConversionFacade()
|
Method Summary | |
---|---|
void |
addProgressListener(ConversionFacade.ProgressListener listener)
|
ConversionFacade.Results |
createRepresentations(File osmFile,
List<WorldModule> worldModules,
Configuration config,
List<Target<?>> targets)
performs all necessary steps to go from an OSM file to the renderable WorldObject s. |
ConversionFacade.Results |
createRepresentations(OSMData osmData,
List<WorldModule> worldModules,
Configuration config,
List<Target<?>> targets)
variant of createRepresentations(File, List, Configuration, List)
that accepts OSMData instead of a file. |
void |
setElevationCalculator(ElevationCalculator elevationCalculator)
sets the ElevationCalculator that is used during subsequent calls
to createRepresentations(OSMData, List, Configuration, List) |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversionFacade()
Method Detail |
---|
public void setElevationCalculator(ElevationCalculator elevationCalculator)
ElevationCalculator
that is used during subsequent calls
to createRepresentations(OSMData, List, Configuration, List)
public ConversionFacade.Results createRepresentations(File osmFile, List<WorldModule> worldModules, Configuration config, List<Target<?>> targets) throws IOException
WorldObject
s.
Sends updates to ConversionFacade.ProgressListener
s.
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
IOException
public ConversionFacade.Results createRepresentations(OSMData osmData, List<WorldModule> worldModules, Configuration config, List<Target<?>> targets) throws IOException, ConversionFacade.BoundingBoxSizeException
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.
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
ConversionFacade.BoundingBoxSizeException
- for oversized bounding boxes
IOException
public void addProgressListener(ConversionFacade.ProgressListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |