Public Member Functions | |
DistancePoints () | |
void | drawRange (GL10 gl) |
void | drawReferenceMarker (GL10 gl) |
void | drawRobot (GL10 gl) |
void | updateRange (List< Float > range, float maxRange, float minRange, float minimumTheta, float thetaIncrement) |
Private Member Functions | |
void | initRangeVertexBuffer () |
void | initReferenceMarker () |
void | initRobot () |
Private Attributes | |
float[] | rangeVertexArray = new float[0] |
FloatBuffer | rangeVertexBuffer |
ByteBuffer | rangeVertexByteBuffer |
int | rangeVertexCount |
List< Float > | rangeVertices = new ArrayList<Float>() |
FloatBuffer | referenceVertexBuffer |
FloatBuffer | robotVertexBuffer |
int | robotVertexCount |
Helper function for the DistanceRenderer that creates the polygons, lines, points, etc based on the received data.
Definition at line 33 of file DistancePoints.java.
org.ros.android.view.DistancePoints.DistancePoints | ( | ) | [inline] |
Definition at line 47 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.drawRange | ( | GL10 | gl | ) | [inline] |
Draws the open region in light gray and the objects seen by the laser in red.
gl | The GL interface. |
Definition at line 114 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.drawReferenceMarker | ( | GL10 | gl | ) | [inline] |
Draws the reference markers that show the current scale or zoom.
gl | The GL interface. |
Definition at line 139 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.drawRobot | ( | GL10 | gl | ) | [inline] |
Draws the robot.
gl | The GL interface. |
Definition at line 157 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.initRangeVertexBuffer | ( | ) | [inline, private] |
Definition at line 97 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.initReferenceMarker | ( | ) | [inline, private] |
Definition at line 199 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.initRobot | ( | ) | [inline, private] |
Definition at line 167 of file DistancePoints.java.
void org.ros.android.view.DistancePoints.updateRange | ( | List< Float > | range, |
float | maxRange, | ||
float | minRange, | ||
float | minimumTheta, | ||
float | thetaIncrement | ||
) | [inline] |
Updates the range buffer for displaying the polygons and the points based on incoming range data.
Definition at line 56 of file DistancePoints.java.
float [] org.ros.android.view.DistancePoints.rangeVertexArray = new float[0] [private] |
Definition at line 39 of file DistancePoints.java.
FloatBuffer org.ros.android.view.DistancePoints.rangeVertexBuffer [private] |
Definition at line 36 of file DistancePoints.java.
ByteBuffer org.ros.android.view.DistancePoints.rangeVertexByteBuffer [private] |
Definition at line 37 of file DistancePoints.java.
int org.ros.android.view.DistancePoints.rangeVertexCount [private] |
Definition at line 40 of file DistancePoints.java.
List<Float> org.ros.android.view.DistancePoints.rangeVertices = new ArrayList<Float>() [private] |
Definition at line 38 of file DistancePoints.java.
FloatBuffer org.ros.android.view.DistancePoints.referenceVertexBuffer [private] |
Definition at line 45 of file DistancePoints.java.
FloatBuffer org.ros.android.view.DistancePoints.robotVertexBuffer [private] |
Definition at line 42 of file DistancePoints.java.
int org.ros.android.view.DistancePoints.robotVertexCount [private] |
Definition at line 43 of file DistancePoints.java.