Package com.massifmaps.components
Class FreeRoamMode
java.lang.Object
com.massifmaps.components.FreeRoamMode
Possible free roam modes: what a one-finger drag does, and which camera model the
tilt and the rotation follow.
tilt and the rotation follow.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceThe accepted values of this constant namespace. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFirst person: the camera stops orbiting anything.static final intLook: a one-finger drag looks around instead of panning - sideways turns the heading
about the camera, up and down tilts the map the way the two-finger tilt does, so the
camera still orbits its focus point.static final intOff: the standard map gestures. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FREE_ROAM_MODE_OFF
public static final int FREE_ROAM_MODE_OFFOff: the standard map gestures. A one-finger drag pans the map.- See Also:
-
FREE_ROAM_MODE_LOOK
public static final int FREE_ROAM_MODE_LOOKLook: a one-finger drag looks around instead of panning - sideways turns the heading
about the camera, up and down tilts the map the way the two-finger tilt does, so the
camera still orbits its focus point. Panning moves to a two-finger drag; pinch and
two-finger rotation are unchanged.- See Also:
-
FREE_ROAM_MODE_FIRST_PERSON
public static final int FREE_ROAM_MODE_FIRST_PERSONFirst person: the camera stops orbiting anything. A one-finger drag turns the view
about the CAMERA on both axes, like a mouse in a first person game - the position
never changes - and a two-finger drag moves, forward/back and strafing, the way the
keys would. Pinch and two-finger rotation are off, since neither belongs to that
control scheme.
The camera model applies to every source, not just to touch: setTilt and
setMapRotation turn the view in place too, so a camera driven by the device's
orientation behaves exactly like the drag.- See Also:
-
-
Constructor Details
-
FreeRoamMode
public FreeRoamMode()
-