org.ros.android.view.visualization
Class VisualizationView

java.lang.Object
  extended by GLSurfaceView
      extended by org.ros.android.view.visualization.VisualizationView
All Implemented Interfaces:
org.ros.node.NodeListener, org.ros.node.NodeMain

public class VisualizationView
extends GLSurfaceView
implements org.ros.node.NodeMain


Constructor Summary
VisualizationView(Context context)
           
VisualizationView(Context context, AttributeSet attrs)
           
 
Method Summary
 void addLayer(Layer layer)
          Adds a new layer at the end of the layers collection.
 org.ros.namespace.GraphName getDefaultNodeName()
           
 XYOrthographicRenderer getRenderer()
           
 void onError(org.ros.node.Node node, java.lang.Throwable throwable)
           
 void onShutdown(org.ros.node.Node node)
           
 void onShutdownComplete(org.ros.node.Node node)
           
 void onStart(org.ros.node.ConnectedNode connectedNode)
           
 boolean onTouchEvent(MotionEvent event)
           
 void removeLayer(Layer layer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualizationView

public VisualizationView(Context context)

VisualizationView

public VisualizationView(Context context,
                         AttributeSet attrs)
Method Detail

getDefaultNodeName

public org.ros.namespace.GraphName getDefaultNodeName()
Specified by:
getDefaultNodeName in interface org.ros.node.NodeMain

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

getRenderer

public XYOrthographicRenderer getRenderer()

addLayer

public void addLayer(Layer layer)
Adds a new layer at the end of the layers collection. The new layer will be drawn last, i.e. on top of all other layers.

Parameters:
layer - layer to add

removeLayer

public void removeLayer(Layer layer)

onStart

public void onStart(org.ros.node.ConnectedNode connectedNode)
Specified by:
onStart in interface org.ros.node.NodeListener

onShutdown

public void onShutdown(org.ros.node.Node node)
Specified by:
onShutdown in interface org.ros.node.NodeListener

onShutdownComplete

public void onShutdownComplete(org.ros.node.Node node)
Specified by:
onShutdownComplete in interface org.ros.node.NodeListener

onError

public void onError(org.ros.node.Node node,
                    java.lang.Throwable throwable)
Specified by:
onError in interface org.ros.node.NodeListener