Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModelPosition addModel​(java.lang.String path, double lat, double lon, float rotation)
      Add model with specified path and position.
      ModelPosition 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 refreshModelInstances()  
      void removeModel​(ModelPosition position)  
      • 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 Detail

      • GdxModelLayer

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

        public void refreshModelInstances()
      • removeModel

        public void removeModel​(ModelPosition position)