public class GLCrumb extends GLPointMapItem2 implements Crumb.OnCrumbColorChangedListener, Crumb.OnCrumbDirectionChangedListener, Crumb.OnCrumbSizeChangedListener, Crumb.OnCrumbDrawLineToSurfaceChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListeneraltHae, altitude, altMode, latitude, localTerrainValue, longitude, point, terrainVersionbounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder| Constructor and Description |
|---|
GLCrumb(MapRenderer surface,
Crumb subject) |
| Modifier and Type | Method and Description |
|---|---|
void |
batch(GLMapView view,
GLRenderBatch2 batch,
int renderPass) |
static void |
batch(GLMapView view,
GLRenderBatch batch,
float x,
float y,
float radius,
float rotation,
float strokeWidth,
float r,
float g,
float b,
float a)
Batches an arrow crumb.
|
void |
draw(GLMapView ortho,
int renderPass) |
void |
onCrumbColorChanged(Crumb crumb) |
void |
onCrumbDirectionChanged(Crumb crumb) |
void |
onCrumbDrawLineToSurfaceChanged(Crumb crumb) |
void |
onCrumbSizeChanged(Crumb crumb) |
void |
onPointChanged(PointMapItem item) |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
getAltitudeMode, getLollipopsVisible, onAltitudeModeChanged, setLollipopsVisible, updateBoundsZ, validateLocalElevationaddBoundsListener, 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, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaquepublic GLCrumb(MapRenderer surface,
Crumb subject)
public void onCrumbColorChanged(Crumb crumb)
onCrumbColorChanged in interface Crumb.OnCrumbColorChangedListenerpublic void onCrumbDrawLineToSurfaceChanged(Crumb crumb)
onCrumbDrawLineToSurfaceChanged in interface Crumb.OnCrumbDrawLineToSurfaceChangedListenerpublic void onCrumbDirectionChanged(Crumb crumb)
onCrumbDirectionChanged in interface Crumb.OnCrumbDirectionChangedListenerpublic void onCrumbSizeChanged(Crumb crumb)
onCrumbSizeChanged in interface Crumb.OnCrumbSizeChangedListenerpublic void draw(GLMapView ortho,
int renderPass)
public void batch(GLMapView view,
GLRenderBatch2 batch,
int renderPass)
public void release()
release in class AbstractGLMapItem2public void onPointChanged(PointMapItem item)
onPointChanged in interface PointMapItem.OnPointChangedListeneronPointChanged in class GLPointMapItem2public void startObserving()
GLMapItem2Invoking this method should generally refresh the state of the item.
This method may not be invoked on the GL context thread.
startObserving in interface GLMapItem2startObserving in class GLPointMapItem2public void stopObserving()
AbstractGLMapItem2AbstractGLMapItem2.startObserving().
This method may not be invoked on the GL context thread.
stopObserving in interface GLMapItem2stopObserving in class GLPointMapItem2public static void batch(GLMapView view,
GLRenderBatch batch,
float x,
float y,
float radius,
float rotation,
float strokeWidth,
float r,
float g,
float b,
float a)
view - The map rendererbatch - The render batchx - The x location of the crumb, in GL coordinatesy - The y location of the crumb, in GL coordinatesrotation - The rotation of the crumb, in degrees