Package gaiasky.data
Class GeoJsonLoader<T extends SceneGraphNode>
java.lang.Object
gaiasky.data.GeoJsonLoader<T>
- All Implemented Interfaces:
ISceneGraphLoader
Loads GeoJson files to Area objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][][]
convertToDoubleArray(com.badlogic.gdx.utils.JsonValue json, int size, int d)
void
initialize(String[] files)
void
initialize(uk.ac.starlink.util.DataSource ds)
com.badlogic.gdx.utils.Array<? extends SceneGraphNode>
loadData()
void
setDescription(String description)
void
void
-
Constructor Details
-
GeoJsonLoader
public GeoJsonLoader()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceISceneGraphLoader
-
initialize
public void initialize(uk.ac.starlink.util.DataSource ds)- Specified by:
initialize
in interfaceISceneGraphLoader
-
loadData
- Specified by:
loadData
in interfaceISceneGraphLoader
-
convertToDoubleArray
public double[][][] convertToDoubleArray(com.badlogic.gdx.utils.JsonValue json, int size, int d) -
setName
- Specified by:
setName
in interfaceISceneGraphLoader
-
setDescription
- Specified by:
setDescription
in interfaceISceneGraphLoader
-
setParams
- Specified by:
setParams
in interfaceISceneGraphLoader
-