public final class FMExternalModelLayer extends FMLayer
限定符和类型 | 方法和说明 |
---|---|
java.util.ArrayList<FMExternalModel> |
getAll()
获取图层里面所有的模型。
|
int |
getCount()
获取模型数量。
|
FMExternalModel |
getMarker(long handle) |
boolean |
onGesture(FMGesture g,
java.lang.Object object,
android.view.MotionEvent e1,
android.view.MotionEvent e2,
float distanceX,
float distanceY,
float velocityX,
float velocityY)
手势事件。
|
void |
removeAll()
移除所有的元素。
|
getBundle, getLayerGroupId, getLayerHandle, getOnFMNodeListener, isVisible, setBundle, setOnFMNodeListener, setVisible
public java.util.ArrayList<FMExternalModel> getAll()
public FMExternalModel getMarker(long handle)
public int getCount()
public boolean onGesture(FMGesture g, java.lang.Object object, android.view.MotionEvent e1, android.view.MotionEvent e2, float distanceX, float distanceY, float velocityX, float velocityY)
FMGestureHandler
g
- 手势类型object
- 拾取对象,如果没有则为nulle1
- 触摸事件e2
- 触摸事件,如果手势类型为FMGesture.SINGLETAP
,FMGesture.DOUBLETAP
,FMGesture.LONGPRESS
则为nulldistanceX
- 位移量,当手势类型为FMGesture.DRAG
才有效,其他手势类型返回0distanceY
- 位移量,当手势类型为FMGesture.DRAG
才有效,其他手势类型返回0velocityX
- 速度量,当手势类型为FMGesture.SWIPE
才有效,其他手势类型返回0velocityY
- 速度量,当手势类型为FMGesture.SWIPE
才有效,其他手势类型返回0