Select Drag Callback
User-input callbacks dispatched by SelectDragDetector for taps, drags and context gestures on the globe.
The userObject parameter every recognised-object callback receives is the earth.worldwind.PickedObject.userObject of the top picked object. It is typically a earth.worldwind.render.Renderable (Polygon/Path/Placemark) — but may be any payload registered via earth.worldwind.PickedObject.fromUserObject (for example an earth.worldwind.layer.buildings.OsmBuilding surfaced from a batched buildings tile).
position carries the depth-tested geographic point on the picked surface, so it includes altitude for non-terrain picks. Consumers that propagate the click as a cursor placemark or hit-location should respect that altitude rather than clamping back to ground.
Every method has a default no-op implementation; implementers only override the gestures they care about.
Functions
Filter for which picked objects this callback wants to drag. The detector arms the drag gesture only when this returns true. The drag plumbing later casts userObject to earth.worldwind.shape.Movable internally before invoking moveTo, so returning true for a non-Movable simply yields a no-op drag (no error).
Filter for which picked objects this callback wants. The detector calls onObjectPicked / onObjectContext / onObjectDoubleTap only when this returns true.
Context-click landed off the globe.
Tap landed off the globe (no terrain or shape under the pick point).
Long-press / right-click on a recognised object.
Double-tap / double-click on a recognised object.
One step of an in-progress drag gesture on a recognised object.
The drag gesture on a recognised object has finished (finger lifted or pointer released).
Tap on a recognised object.
Long-press / right-click on bare terrain.
Double-tap / double-click on bare terrain.
Tap on bare terrain — no shape under the pixel.