Class LocationRenderer

java.lang.Object
org.oscim.renderer.LayerRenderer
org.oscim.renderer.LocationRenderer

public class LocationRenderer extends LayerRenderer
  • Field Details

    • ACCURACY_CIRCLE_SIZE

      public static float ACCURACY_CIRCLE_SIZE
    • CIRCLE_SIZE

      public static float CIRCLE_SIZE
    • mScale

      protected final float mScale
    • mMapPosition

      protected MapPosition mMapPosition
      Use mMapPosition.copy(position) to keep the position for which the Overlay is *compiled*. NOTE: required by setMatrix utility functions to draw this layer fixed to the map
    • mShaderProgram

      protected int mShaderProgram
  • Constructor Details

    • LocationRenderer

      public LocationRenderer(Map map, Layer layer)
    • LocationRenderer

      public LocationRenderer(Map map, Layer layer, float scale)
  • Method Details

    • setAnimate

      public void setAnimate(boolean animate)
    • setCallback

      public void setCallback(LocationCallback callback)
    • setCenter

      public void setCenter(boolean center)
    • setColor

      public void setColor(int color)
    • setLocation

      public void setLocation(double x, double y, double radius)
    • setShader

      public void setShader(String shaderFile)
    • setShowAccuracyZoom

      public void setShowAccuracyZoom(int showAccuracyZoom)
    • animate

      public void animate(boolean enable)
    • update

      public void update(GLViewport v)
      Description copied from class: LayerRenderer
      1. Called first by MapRenderer: Update the state here, compile vertex-data and set setReady(true).
      Specified by:
      update in class LayerRenderer
    • render

      public void render(GLViewport v)
      Description copied from class: LayerRenderer
      2. Draw layer: called by MapRenderer when isReady == true.
      Specified by:
      render in class LayerRenderer
    • init

      protected boolean init()