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

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

public class PosePublisherLayer
extends DefaultLayer


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

Constructor Detail

PosePublisherLayer

public PosePublisherLayer(java.lang.String topic,
                          Context context)

PosePublisherLayer

public PosePublisherLayer(org.ros.namespace.GraphName topic,
                          Context context)
Method Detail

draw

public void draw(GL10 gl)
Specified by:
draw in interface OpenGlDrawable
Overrides:
draw in class DefaultLayer

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

onShutdown

public void onShutdown(VisualizationView view,
                       org.ros.node.Node node)
Description copied from interface: Layer
Called when the view is removed from the view.

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