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.UpdateListenerExperimental layer to display 3d models.
-
-
Constructor Summary
Constructors Constructor Description GdxModelLayer(org.oscim.map.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelPositionaddModel(java.lang.String path, double lat, double lon, float rotation)Add model with specified path and position.ModelPositionaddModel(org.oscim.model.VtmModels model, double lat, double lon, float rotation)voidonMapEvent(org.oscim.event.Event ev, org.oscim.core.MapPosition pos)voidrefreshModelInstances()voidremoveModel(ModelPosition position)
-
-
-
Method Detail
-
addModel
public ModelPosition addModel(org.oscim.model.VtmModels model, double lat, double lon, float rotation)
-
addModel
public ModelPosition addModel(java.lang.String path, double lat, double lon, float rotation)
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
public void removeModel(ModelPosition position)
-
-