org.ros.android.view.visualization.layer
Class CameraControlLayer

java.lang.Object
  extended by org.ros.android.view.visualization.layer.DefaultLayer
      extended by org.ros.android.view.visualization.layer.CameraControlLayer
All Implemented Interfaces:
Layer, OpenGlDrawable

public class CameraControlLayer
extends DefaultLayer


Constructor Summary
CameraControlLayer(Context context)
           
 
Method Summary
 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.
 
Methods inherited from class org.ros.android.view.visualization.layer.DefaultLayer
addRenderListener, draw, onShutdown, removeRenderListener, requestRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraControlLayer

public CameraControlLayer(Context context)
Method Detail

onTouchEvent

public boolean onTouchEvent(VisualizationView view,
                            MotionEvent event)
Description copied from interface: Layer
Event handler for touch events.

Specified by:
onTouchEvent in interface Layer
Overrides:
onTouchEvent in class DefaultLayer
Parameters:
view - the view generating the event
event - the touch event
Returns:
true if the event has been handled

onStart

public void onStart(org.ros.node.ConnectedNode connectedNode,
                    Handler handler,
                    org.ros.rosjava_geometry.FrameTransformTree frameTransformTree,
                    Camera camera)
Description copied from interface: Layer
Called when the layer is registered at the navigation view.

Specified by:
onStart in interface Layer
Overrides:
onStart in class DefaultLayer