Package org.oscim.gdx.poi3d
Class GdxModelLayer
java.lang.Object
org.oscim.layers.Layer
org.oscim.gdx.poi3d.GdxModelLayer
- All Implemented Interfaces:
org.oscim.event.EventListener,org.oscim.map.Map.UpdateListener
public class GdxModelLayer
extends org.oscim.layers.Layer
implements org.oscim.map.Map.UpdateListener
Experimental layer to display 3d models.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.layers.Layer
org.oscim.layers.Layer.EnableHandler -
Field Summary
Fields inherited from class org.oscim.layers.Layer
mMap, mRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd model with specified path and position.addModel(org.oscim.model.VtmModels model, double lat, double lon, float rotation) voidonMapEvent(org.oscim.event.Event ev, org.oscim.core.MapPosition pos) voidvoidremoveModel(ModelPosition position) Methods inherited from class org.oscim.layers.Layer
getRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandler
-
Constructor Details
-
GdxModelLayer
public GdxModelLayer(org.oscim.map.Map map)
-
-
Method Details
-
addModel
public ModelPosition addModel(org.oscim.model.VtmModels model, double lat, double lon, float rotation) -
addModel
Add model with specified path and position.- Returns:
- the models position, can be modified during rendering e.g. to make animations. Don't forget to trigger map events (as it usually does if something changes).
-
onMapEvent
public void onMapEvent(org.oscim.event.Event ev, org.oscim.core.MapPosition pos) - Specified by:
onMapEventin interfaceorg.oscim.map.Map.UpdateListener
-
refreshModelInstances
public void refreshModelInstances() -
removeModel
-