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, setOpaque
public static final GLMapItemSpi3 SPI
public GLRubberImage(MapRenderer surface, RubberImage subject)
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 release()
release
in class AbstractGLMapItem2
public void draw(GLMapView ortho, int renderPass)
public void onPointsChanged(Shape shape)
onPointsChanged
in interface Shape.OnPointsChangedListener
public void onMapViewResized(AtakMapView view)
public void onMapMoved(AtakMapView view, boolean animate)
public void onAlphaChanged(AbstractSheet sheet, int alpha)
onAlphaChanged
in interface AbstractSheet.OnAlphaChangedListener
protected HitTestResult hitTestImpl(MapRenderer3 renderer, HitTestQueryParameters params)
AbstractGLMapItem2
hitTestImpl
in class AbstractGLMapItem2
renderer
- Map rendererparams
- Query parameters