public class CameraControlLayer extends DefaultLayer
Constructor and Description |
---|
CameraControlLayer(Context context,
java.util.concurrent.ExecutorService executorService)
Creates a new
CameraControlLayer . |
Modifier and Type | Method and Description |
---|---|
void |
addListener(CameraControlListener listener) |
void |
onStart(org.ros.node.ConnectedNode connectedNode,
Handler handler,
org.ros.rosjava_geometry.FrameTransformTree frameTransformTree,
Camera camera)
Called when the layer is registered at the navigation view.
|
boolean |
onTouchEvent(VisualizationView view,
MotionEvent event)
Event handler for touch events.
|
draw, onShutdown
public CameraControlLayer(Context context, java.util.concurrent.ExecutorService executorService)
CameraControlLayer
.
The camera's frame will be set to frame
once when this layer is
started and always when the camera is translated.
context
- the application's Context
executorService
- public void addListener(CameraControlListener listener)
public boolean onTouchEvent(VisualizationView view, MotionEvent event)
Layer
onTouchEvent
in interface Layer
onTouchEvent
in class DefaultLayer
view
- the view generating the eventevent
- the touch eventpublic void onStart(org.ros.node.ConnectedNode connectedNode, Handler handler, org.ros.rosjava_geometry.FrameTransformTree frameTransformTree, Camera camera)
Layer
onStart
in interface Layer
onStart
in class DefaultLayer