public class GLCrumb extends GLPointMapItem2 implements Crumb.OnCrumbColorChangedListener, Crumb.OnCrumbDirectionChangedListener, Crumb.OnCrumbSizeChangedListener, Crumb.OnCrumbDrawLineToSurfaceChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
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 |
---|
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, validateLocalElevation
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, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
public GLCrumb(MapRenderer surface, Crumb subject)
public void onCrumbColorChanged(Crumb crumb)
onCrumbColorChanged
in interface Crumb.OnCrumbColorChangedListener
public void onCrumbDrawLineToSurfaceChanged(Crumb crumb)
onCrumbDrawLineToSurfaceChanged
in interface Crumb.OnCrumbDrawLineToSurfaceChangedListener
public void onCrumbDirectionChanged(Crumb crumb)
onCrumbDirectionChanged
in interface Crumb.OnCrumbDirectionChangedListener
public void onCrumbSizeChanged(Crumb crumb)
onCrumbSizeChanged
in interface Crumb.OnCrumbSizeChangedListener
public void draw(GLMapView ortho, int renderPass)
public void batch(GLMapView view, GLRenderBatch2 batch, int renderPass)
public void release()
release
in class AbstractGLMapItem2
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
onPointChanged
in class GLPointMapItem2
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 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