public abstract class GLPointMapItem2 extends AbstractGLMapItem2 implements PointMapItem.OnPointChangedListener, MapItem.OnAltitudeModeChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
Modifier and Type | Field and Description |
---|---|
protected double |
altHae |
protected double |
altitude |
protected AltitudeMode |
altMode |
protected double |
latitude |
protected double |
localTerrainValue |
protected double |
longitude |
GeoPoint |
point |
protected int |
terrainVersion |
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLPointMapItem2(MapRenderer surface,
PointMapItem subject,
int renderPass) |
Modifier and Type | Method and Description |
---|---|
protected AltitudeMode |
getAltitudeMode()
Get the current altitude mode
|
boolean |
getLollipopsVisible() |
void |
onAltitudeModeChanged(AltitudeMode altitudeMode)
Called when the altitude mode is changed for the specific item
|
void |
onPointChanged(PointMapItem item) |
void |
setLollipopsVisible(boolean v)
Rendering style modified by the
LollipopControl |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
protected void |
updateBoundsZ() |
protected double |
validateLocalElevation(GLMapView ortho) |
addBoundsListener, addVisibleListener, dispatchOnBoundsChanged, dispatchOnVisibleChanged, forward, forward, forward, forward, forward, forward, forward, getBounds, getClampToGroundAtNadir, getClickable, getMinDrawResolution, getOpaque, getRenderPass, getSubject, getZOrder, hitTest, hitTestImpl, isVisible, markSurfaceDirty, onClickableChanged, onVisibleChanged, onZOrderChanged, release, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
public GeoPoint point
protected double latitude
protected double longitude
protected double altitude
protected double altHae
protected AltitudeMode altMode
protected double localTerrainValue
protected int terrainVersion
public GLPointMapItem2(MapRenderer surface, PointMapItem subject, int renderPass)
protected final double validateLocalElevation(GLMapView ortho)
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 AbstractGLMapItem2
public void stopObserving()
AbstractGLMapItem2
AbstractGLMapItem2.startObserving()
.
This method may not be invoked on the GL context thread.
stopObserving
in interface GLMapItem2
stopObserving
in class AbstractGLMapItem2
public void setLollipopsVisible(boolean v)
LollipopControl
v
- True if lollipops should be visiblepublic boolean getLollipopsVisible()
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
public void onAltitudeModeChanged(AltitudeMode altitudeMode)
MapItem.OnAltitudeModeChangedListener
onAltitudeModeChanged
in interface MapItem.OnAltitudeModeChangedListener
altitudeMode
- The altitude mode that the map item was set toprotected AltitudeMode getAltitudeMode()
protected void updateBoundsZ()