|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.GestureHandler
public class GestureHandler
GestureHandler base class, the applications should use platform specific implementations, i.e. GestureHandlerAndroid or GestureHandlerIOS
Field Summary | |
---|---|
static int |
GESTURE_ALL
|
static int |
GESTURE_DRAG
|
static int |
GESTURE_NONE
|
static int |
GESTURE_PINCH
|
static int |
GESTURE_ROTATE
|
Constructor Summary | |
---|---|
GestureHandler(IMetaioSDK metaioSDK)
|
|
GestureHandler(IMetaioSDK metaioSDK,
int gestureMask)
|
|
GestureHandler(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
void |
addObject(IGeometry geometry,
int group,
boolean pickable)
|
void |
delete()
|
void |
enableGestures(int gestureMask)
|
void |
enablePickability(boolean pickable)
|
IGeometryVector |
getAllObjects()
A vector of geometries See: addObject |
static long |
getCPtr(GestureHandler obj)
|
int |
getGestures()
Gesture mask See: enableGestures GESTURE_NONE GESTURE_DRAG GESTURE_ROTATE GESTURE_PINCH GESTURE_ALL |
boolean |
getPickable()
True if geometries are pickable one by one, false otherwise. |
char |
getRotationAxis()
The rotation axis that is enabled, i.e. |
void |
handlePinchGesture(float scale)
|
void |
handleRotateGesture(float rotation)
|
void |
registerCallback(IGestureHandlerCallback callback)
|
void |
removeObject(IGeometry geometry)
|
void |
removeObjects()
|
void |
resetSelected()
|
void |
selectAllObjects(int x,
int y)
|
void |
selectAllObjectsInGroup(int group,
int x,
int y)
|
void |
setRotationAxis(char axis)
|
void |
setSDK(IMetaioSDK metaioSDK)
|
void |
touchesBegan(int x,
int y)
|
void |
touchesEnded(int x,
int y)
|
void |
touchesMoved(int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GESTURE_NONE
public static final int GESTURE_DRAG
public static final int GESTURE_ROTATE
public static final int GESTURE_PINCH
public static final int GESTURE_ALL
Constructor Detail |
---|
public GestureHandler(long cPtr, boolean cMemoryOwn)
public GestureHandler(IMetaioSDK metaioSDK, int gestureMask)
metaioSDK
- metaio SDK instancegestureMask
- Gesture mask to enable gestures
See: GESTURE_DRAG GESTURE_ROTATE GESTURE_PINCH GESTURE_ALLpublic GestureHandler(IMetaioSDK metaioSDK)
metaioSDK
- metaio SDK instancegestureMask
- Gesture mask to enable gestures
See: GESTURE_DRAG GESTURE_ROTATE GESTURE_PINCH GESTURE_ALLMethod Detail |
---|
public static long getCPtr(GestureHandler obj)
public void delete()
public void registerCallback(IGestureHandlerCallback callback)
callback
- An implementation of metaio::IGestureHandlerCallback
See: metaio::IGestureHandlerCallbackpublic void enableGestures(int gestureMask)
gestureMask
- Gestures that should be enabled.
See: getGestures GESTURE_NONE GESTURE_DRAG GESTURE_ROTATE GESTURE_PINCH GESTURE_ALLpublic int getGestures()
public void enablePickability(boolean pickable)
pickable
- True if pickable, false otherwise.
See: getPickablepublic boolean getPickable()
public void setRotationAxis(char axis)
axis
- axis that should be enabled, i.e. 'x', 'y' or 'z' (default).
See: getRotationAxispublic char getRotationAxis()
public void addObject(IGeometry geometry, int group, boolean pickable)
geometry
- A pointer to the geometry to be added.group
- The group which geometry should belong to.pickable
- Specify if the geometry is pickable one by one.
See: removeObject, removeObjects getAllObjectspublic void removeObject(IGeometry geometry)
geometry
- The geometry to be removed.
See: addObject getAllObjectspublic void removeObjects()
public void resetSelected()
public IGeometryVector getAllObjects()
public void selectAllObjectsInGroup(int group, int x, int y)
group
- The group number of the selected object.x
- The x coordinate of the touch point.y
- The y coordinate of the touch point.public void selectAllObjects(int x, int y)
x
- The x coordinate of the touch point.y
- The y coordinate of the touch point.public void touchesBegan(int x, int y)
x
- The x coordinate of the touch point.y
- The y coordinate of the touch point.public void touchesMoved(int x, int y)
x
- The x coordinate of the touch point.y
- The y coordinate of the touch point.public void touchesEnded(int x, int y)
x
- The x coordinate of the touch point.y
- The y coordinate of the touch point.public void handlePinchGesture(float scale)
scale
- The new scale of the geometry.public void handleRotateGesture(float rotation)
rotation
- The new rotation that should be applied to the axis.public void setSDK(IMetaioSDK metaioSDK)
metaioSDK
- Pointer to the metaio SDK instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |