org.ros.android.view.visualization.shape
Class RobotShape

java.lang.Object
  extended by org.ros.android.view.visualization.shape.TriangleFanShape
      extended by org.ros.android.view.visualization.shape.RobotShape
All Implemented Interfaces:
OpenGlDrawable, Shape
Direct Known Subclasses:
GoalShape

public class RobotShape
extends TriangleFanShape

Represents the robot.


Constructor Summary
RobotShape()
           
 
Method Summary
 Color getColor()
           
 org.ros.rosjava_geometry.Transform getTransform()
           
protected  void scale(GL10 gl)
          Scales the coordinate system.
 void setColor(Color color)
           
 void setTransform(org.ros.rosjava_geometry.Transform pose)
           
 
Methods inherited from class org.ros.android.view.visualization.shape.TriangleFanShape
draw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobotShape

public RobotShape()
Method Detail

scale

protected void scale(GL10 gl)
Scales the coordinate system.

This is called after transforming the surface according to transform.

Parameters:
gl -

getColor

public Color getColor()
Specified by:
getColor in interface Shape
Returns:
the Color of this Shape

setColor

public void setColor(Color color)
Specified by:
setColor in interface Shape
Parameters:
color - the Color of this Shape

getTransform

public org.ros.rosjava_geometry.Transform getTransform()
Specified by:
getTransform in interface Shape
Returns:
the Transform that will be applied to this Shape before it is drawn

setTransform

public void setTransform(org.ros.rosjava_geometry.Transform pose)
Specified by:
setTransform in interface Shape
Parameters:
pose - the Transform that will be applied to this Shape before it is drawn