public class GLSensorFOV extends GLShape2 implements SensorFOV.OnMetricsChangedListener, Shape.OnPointsChangedListener
SensorFOV
cone on the mapGLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
_clampLabelToGround |
protected int |
_labelIDl |
protected int |
_labelIDr |
protected GLLabelManager |
_labelManager |
protected int |
_textColor |
fill, fillColor, stroke, strokeAlpha, strokeBlue, strokeColor, strokeGreen, strokeRed, strokeWeight
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLSensorFOV(MapRenderer surface,
SensorFOV subject) |
Modifier and Type | Method and Description |
---|---|
void |
draw(GLMapView ortho,
int renderPass) |
protected boolean |
ensureLabel() |
void |
onFillColorChanged(Shape shape) |
void |
onMetricsChanged(SensorFOV fov) |
void |
onPointsChanged(Shape fov) |
void |
onStrokeColorChanged(Shape shape) |
void |
onStrokeWeightChanged(Shape shape) |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
onStyleChanged
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
protected int _labelIDl
protected int _labelIDr
protected final GLLabelManager _labelManager
protected boolean _clampLabelToGround
protected int _textColor
public GLSensorFOV(MapRenderer surface, SensorFOV subject)
protected boolean ensureLabel()
public void draw(GLMapView ortho, int renderPass)
public void release()
release
in class AbstractGLMapItem2
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 GLShape2
public void stopObserving()
AbstractGLMapItem2
AbstractGLMapItem2.startObserving()
.
This method may not be invoked on the GL context thread.
stopObserving
in interface GLMapItem2
stopObserving
in class GLShape2
public void onMetricsChanged(SensorFOV fov)
onMetricsChanged
in interface SensorFOV.OnMetricsChangedListener
public void onPointsChanged(Shape fov)
onPointsChanged
in interface Shape.OnPointsChangedListener
public void onFillColorChanged(Shape shape)
onFillColorChanged
in interface Shape.OnFillColorChangedListener
onFillColorChanged
in class GLShape2
public void onStrokeColorChanged(Shape shape)
onStrokeColorChanged
in interface Shape.OnStrokeColorChangedListener
onStrokeColorChanged
in class GLShape2
public void onStrokeWeightChanged(Shape shape)
onStrokeWeightChanged
in interface Shape.OnStrokeWeightChangedListener
onStrokeWeightChanged
in class GLShape2