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

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

public class PoseShape
extends GoalShape

Represents the pose that will be published.

This shape is defined in pixel space and will not be affected by the zoom level of the camera.


Constructor Summary
PoseShape(Camera camera)
           
 
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

PoseShape

public PoseShape(Camera camera)
Method Detail

scale

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

This is called after transforming the surface according to transform.


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