public class GLRubberImage extends AbstractGLMapItem2 implements Shape.OnPointsChangedListener, AbstractSheet.OnAlphaChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener| Modifier and Type | Field and Description |
|---|---|
static GLMapItemSpi3 |
SPI |
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder| Constructor and Description |
|---|
GLRubberImage(MapRenderer surface,
RubberImage subject) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(GLMapView ortho,
int renderPass) |
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 |
onAlphaChanged(AbstractSheet sheet,
int alpha) |
void |
onMapMoved(AtakMapView view,
boolean animate) |
void |
onMapViewResized(AtakMapView view) |
void |
onPointsChanged(Shape shape) |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
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, setOpaquepublic static final GLMapItemSpi3 SPI
public GLRubberImage(MapRenderer surface,
RubberImage subject)
public 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 AbstractGLMapItem2public void stopObserving()
AbstractGLMapItem2AbstractGLMapItem2.startObserving().
This method may not be invoked on the GL context thread.
stopObserving in interface GLMapItem2stopObserving in class AbstractGLMapItem2public void release()
release in class AbstractGLMapItem2public void draw(GLMapView ortho,
int renderPass)
public void onPointsChanged(Shape shape)
onPointsChanged in interface Shape.OnPointsChangedListenerpublic void onMapViewResized(AtakMapView view)
public void onMapMoved(AtakMapView view,
boolean animate)
public void onAlphaChanged(AbstractSheet sheet, int alpha)
onAlphaChanged in interface AbstractSheet.OnAlphaChangedListenerprotected HitTestResult hitTestImpl(MapRenderer3 renderer,
HitTestQueryParameters params)
AbstractGLMapItem2hitTestImpl in class AbstractGLMapItem2renderer - Map rendererparams - Query parameters