public class GLVehicleModel extends GLRubberModel implements MapItem.OnMetadataChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<GLVehicleModel> |
SORT_Z |
_alpha, _anchorPoint, _color, _ctrl, _drawVersion, _glMeshes, _matManager, _matrix, _meshesLocked, _model, _modelAnchorPoint, _modelDim, _modelInfo, _noLod, _onScreen, _readyToRender, _released, _renderCtx, _scene
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLVehicleModel(MapRenderer ctx,
VehicleModel subject) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getClickable()
Determine whether or not this item is touchable
By default this is tied to
MapItem.getClickable() |
GLInstanceData |
getInstanceData()
Get parameters for this vehicle's mesh instance data
|
java.util.List<Mesh> |
getMeshes() |
ModelInfo |
getModelInfo() |
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 |
onMetadataChanged(MapItem item,
java.lang.String field) |
protected void |
onRefresh() |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
createGLMeshes, draw, hitTest, onAlphaChanged, onAltitudeChanged, onDrawVersionChanged, onLoadProgress, onLoadStateChanged, onPointsChanged, onRotationChanged, onStrokeColorChanged, requestRefresh, setOnScreen, shouldRender, updateDrawVersion
addBoundsListener, addVisibleListener, dispatchOnBoundsChanged, dispatchOnVisibleChanged, forward, forward, forward, forward, forward, forward, forward, getBounds, getClampToGroundAtNadir, getMinDrawResolution, getOpaque, getRenderPass, getSubject, getZOrder, hitTest, isVisible, markSurfaceDirty, onClickableChanged, onVisibleChanged, onZOrderChanged, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
public static final java.util.Comparator<GLVehicleModel> SORT_Z
public GLVehicleModel(MapRenderer ctx, VehicleModel 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 GLRubberModel
public void stopObserving()
AbstractGLMapItem2
AbstractGLMapItem2.startObserving()
.
This method may not be invoked on the GL context thread.
stopObserving
in interface GLMapItem2
stopObserving
in class GLRubberModel
public void release()
release
in class GLRubberModel
public java.util.List<Mesh> getMeshes()
public ModelInfo getModelInfo()
public GLInstanceData getInstanceData()
public void onMetadataChanged(MapItem item, java.lang.String field)
onMetadataChanged
in interface MapItem.OnMetadataChangedListener
protected void onRefresh()
onRefresh
in class GLRubberModel
protected boolean getClickable()
AbstractGLMapItem2
MapItem.getClickable()
getClickable
in class GLRubberModel
protected HitTestResult hitTestImpl(MapRenderer3 renderer, HitTestQueryParameters params)
AbstractGLMapItem2
hitTestImpl
in class GLRubberModel
renderer
- Map rendererparams
- Query parameters