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
    Constructor
    Description
    GdxModelLayer(org.oscim.map.Map map)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addModel(String path, double lat, double lon, float rotation)
    Add model with specified path and position.
    addModel(org.oscim.model.VtmModels model, double lat, double lon, float rotation)
     
    void
    onMapEvent(org.oscim.event.Event ev, org.oscim.core.MapPosition pos)
     
    void
     
    void
     

    Methods inherited from class org.oscim.layers.Layer

    getRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public ModelPosition addModel(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:
      onMapEvent in interface org.oscim.map.Map.UpdateListener
    • refreshModelInstances

      public void refreshModelInstances()
    • removeModel

      public void removeModel(ModelPosition position)