public class GLMarker2 extends GLPointMapItem2 implements Marker.OnIconChangedListener, Marker.OnStateChangedListener, Marker.OnTitleChangedListener, Marker.OnTrackChangedListener, Marker.OnStyleChangedListener, Marker.OnSummaryChangedListener, MapItem.OnHeightChangedListener, Marker.OnLabelTextSizeChangedListener, Marker.OnLabelPriorityChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
altHae, altitude, altMode, latitude, localTerrainValue, longitude, point, terrainVersion
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLMarker2(MapRenderer surface,
Marker subject) |
Modifier and Type | Method and Description |
---|---|
protected void |
_drawBorderVerts() |
void |
batch(GLMapView view,
GLRenderBatch2 batch,
int renderPass) |
void |
draw(GLMapView ortho,
int renderPass) |
protected AltitudeMode |
getAltitudeMode()
Get the current altitude mode which takes into account the
ClampToGroundControl |
protected HitTestResult |
hitTestImpl(MapRenderer3 renderer,
HitTestQueryParameters params)
Perform a hit test on this map item
Sub-classes should override this method for hit-testing
|
void |
onHeightChanged(MapItem item) |
void |
onIconChanged(Marker marker) |
void |
onLabelPriorityChanged(Marker marker) |
void |
onLabelSizeChanged(Marker marker) |
void |
onMarkerHitBoundsChanged(Marker marker)
Deprecated.
No longer used (never actually used in the first place)
|
void |
onPointChanged(PointMapItem item) |
void |
onStateChanged(Marker marker) |
void |
onStyleChanged(Marker marker) |
void |
onSummaryChanged(Marker marker) |
void |
onTitleChanged(Marker marker) |
void |
onTrackChanged(Marker marker) |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
java.lang.String |
toString() |
protected void |
updateBoundsZ() |
getLollipopsVisible, onAltitudeModeChanged, setLollipopsVisible, validateLocalElevation
addBoundsListener, addVisibleListener, dispatchOnBoundsChanged, dispatchOnVisibleChanged, forward, forward, forward, forward, forward, forward, forward, getBounds, getClampToGroundAtNadir, getClickable, getMinDrawResolution, getOpaque, getRenderPass, getSubject, getZOrder, hitTest, isVisible, markSurfaceDirty, onClickableChanged, onVisibleChanged, onZOrderChanged, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
public static final java.lang.String TAG
public GLMarker2(MapRenderer surface, Marker subject)
public java.lang.String toString()
toString
in class java.lang.Object
public void startObserving()
GLMapItem2
Invoking this method should generally refresh the state of the item.
This method may not be invoked on the GL context thread.
startObserving
in interface GLMapItem2
startObserving
in class GLPointMapItem2
public void stopObserving()
AbstractGLMapItem2
AbstractGLMapItem2.startObserving()
.
This method may not be invoked on the GL context thread.
stopObserving
in interface GLMapItem2
stopObserving
in class GLPointMapItem2
public void onIconChanged(Marker marker)
onIconChanged
in interface Marker.OnIconChangedListener
public void onStyleChanged(Marker marker)
onStyleChanged
in interface Marker.OnStyleChangedListener
public void onLabelSizeChanged(Marker marker)
onLabelSizeChanged
in interface Marker.OnLabelTextSizeChangedListener
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
onPointChanged
in class GLPointMapItem2
public void onStateChanged(Marker marker)
onStateChanged
in interface Marker.OnStateChangedListener
public void onTitleChanged(Marker marker)
onTitleChanged
in interface Marker.OnTitleChangedListener
public void onSummaryChanged(Marker marker)
onSummaryChanged
in interface Marker.OnSummaryChangedListener
public void onLabelPriorityChanged(Marker marker)
onLabelPriorityChanged
in interface Marker.OnLabelPriorityChangedListener
public void onTrackChanged(Marker marker)
onTrackChanged
in interface Marker.OnTrackChangedListener
public void release()
release
in class AbstractGLMapItem2
protected AltitudeMode getAltitudeMode()
ClampToGroundControl
getAltitudeMode
in class GLPointMapItem2
public void draw(GLMapView ortho, int renderPass)
public void batch(GLMapView view, GLRenderBatch2 batch, int renderPass)
protected void _drawBorderVerts()
@Deprecated public void onMarkerHitBoundsChanged(Marker marker)
public void onHeightChanged(MapItem item)
onHeightChanged
in interface MapItem.OnHeightChangedListener
protected HitTestResult hitTestImpl(MapRenderer3 renderer, HitTestQueryParameters params)
AbstractGLMapItem2
hitTestImpl
in class AbstractGLMapItem2
renderer
- Map rendererparams
- Query parametersprotected void updateBoundsZ()
updateBoundsZ
in class GLPointMapItem2