org.ros.android.view.visualization.layer
Interface Layer

All Superinterfaces:
OpenGlDrawable
All Known Implementing Classes:
CameraControlLayer, CompressedBitmapLayer, DefaultLayer, GridCellsLayer, LaserScanLayer, OccupancyGridLayer, PathLayer, PosePublisherLayer, PoseSubscriberLayer, RobotLayer, SubscriberLayer

public interface Layer
extends OpenGlDrawable

Interface for a drawable layer on a VisualizationView.


Method Summary
 void addRenderListener(RenderRequestListener listener)
           
 void onShutdown(VisualizationView view, org.ros.node.Node node)
          Called when the view is removed from the view.
 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.
 void removeRenderListener(RenderRequestListener listener)
           
 
Methods inherited from interface org.ros.android.view.visualization.OpenGlDrawable
draw
 

Method Detail

onTouchEvent

boolean onTouchEvent(VisualizationView view,
                     MotionEvent event)
Event handler for touch events.

Parameters:
view - the view generating the event
event - the touch event
Returns:
true if the event has been handled

onStart

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.


onShutdown

void onShutdown(VisualizationView view,
                org.ros.node.Node node)
Called when the view is removed from the view.


addRenderListener

void addRenderListener(RenderRequestListener listener)
Parameters:
listener - the RenderRequestListener to add

removeRenderListener

void removeRenderListener(RenderRequestListener listener)
Parameters:
listener - the RenderRequestListener to remove