public static interface GlobeController.GestureDelegate
Modifier and Type | Method and Description |
---|---|
void |
globeDidMove(GlobeController globeControl,
Point3d[] corners,
boolean userMotion)
Called for every single visible frame of movement.
|
void |
globeDidStartMoving(GlobeController globeControl,
boolean userMotion)
Called when the globe first starts moving.
|
void |
globeDidStopMoving(GlobeController globeControl,
Point3d[] corners,
boolean userMotion)
Called when the globe stops moving.
|
void |
userDidLongPress(GlobeController globeControl,
SelectedObject[] selObjs,
Point2d loc,
Point2d screenLoc)
The user did long press somewhere, there might be an object
|
void |
userDidSelect(GlobeController globeControl,
SelectedObject[] selObjs,
Point2d loc,
Point2d screenLoc)
The user selected the given object.
|
void |
userDidTap(GlobeController globeControl,
Point2d loc,
Point2d screenLoc)
The user tapped somewhere, but not on a selectable object.
|
void |
userDidTapOutside(GlobeController globeControl,
Point2d screenLoc)
The user tapped outside of the globe.
|
void userDidSelect(GlobeController globeControl, SelectedObject[] selObjs, Point2d loc, Point2d screenLoc)
globeControl
- The maply controller this is associated with.selObjs
- The objects the user selected (e.g. MaplyScreenMarker).loc
- The location they tapped on. This is in radians.screenLoc
- The location on the OpenGL surface.void userDidTap(GlobeController globeControl, Point2d loc, Point2d screenLoc)
globeControl
- The maply controller this is associated with.loc
- The location they tapped on. This is in radians. If null, then the user tapped outside the globe.screenLoc
- The location on the OpenGL surface.void userDidTapOutside(GlobeController globeControl, Point2d screenLoc)
globeControl
- The maply controller this is associated with.screenLoc
- The location on the OpenGL surface.void userDidLongPress(GlobeController globeControl, SelectedObject[] selObjs, Point2d loc, Point2d screenLoc)
globeControl
- The maply controller this is associated with.selObjs
- The objects the user selected (e.g. MaplyScreenMarker) or null if there was no object.loc
- The location they tapped on. This is in radians. If null, then the user tapped outside the globe.screenLoc
- The location on the OpenGL surface.void globeDidStartMoving(GlobeController globeControl, boolean userMotion)
globeControl
- The globe controller this is associated with.userMotion
- Set if the motion was caused by a gesture.void globeDidStopMoving(GlobeController globeControl, Point3d[] corners, boolean userMotion)
globeControl
- The globe controller this is associated with.corners
- Corners of the viewport. If one of them is null, that means it doesn't land on the globe.userMotion
- Set if the motion was caused by a gesture.void globeDidMove(GlobeController globeControl, Point3d[] corners, boolean userMotion)
globeControl
- The globe controller this is associated with.corners
- Corners of the viewport. If one of them is null, that means it doesn't land on the globe.userMotion
- Set if the motion was caused by a gesture.