public class GLDogHouse extends AbstractGLMapItem2 implements Doghouse.DoghouseChangeListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLDogHouse(MapRenderer surface,
Doghouse dh) |
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 |
onDoghouseChanged(Doghouse doghouse) |
void |
onDoghouseRemoved(Doghouse doghouse) |
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 GLDogHouse(MapRenderer surface, Doghouse dh)
public void draw(GLMapView ortho, int renderPass)
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 onDoghouseChanged(Doghouse doghouse)
onDoghouseChanged
in interface Doghouse.DoghouseChangeListener
public void onDoghouseRemoved(Doghouse doghouse)
onDoghouseRemoved
in interface Doghouse.DoghouseChangeListener
protected HitTestResult hitTestImpl(MapRenderer3 renderer, HitTestQueryParameters params)
AbstractGLMapItem2
hitTestImpl
in class AbstractGLMapItem2
renderer
- Map rendererparams
- Query parameters