Public Member Functions | |
void | setOffset (float x, float y) |
TextShape (GLText glText, String text) | |
Protected Member Functions | |
void | drawShape (VisualizationView view, GL10 gl) |
void | scale (VisualizationView view, GL10 gl) |
Private Attributes | |
final GLText | glText |
FloatBuffer | lines |
final String | text |
float | x |
float | y |
Definition at line 12 of file TextShape.java.
org.ros.android.view.visualization.shape.TextShape.TextShape | ( | GLText | glText, |
String | text | ||
) | [inline] |
Definition at line 21 of file TextShape.java.
void org.ros.android.view.visualization.shape.TextShape.drawShape | ( | VisualizationView | view, |
GL10 | gl | ||
) | [inline, protected, virtual] |
To be implemented by children. Draws the shape after the shape's transform and scaling have been applied.
Implements org.ros.android.view.visualization.shape.BaseShape.
Definition at line 57 of file TextShape.java.
void org.ros.android.view.visualization.shape.TextShape.scale | ( | VisualizationView | view, |
GL10 | gl | ||
) | [inline, protected] |
Scales the coordinate system.
This is called after transforming the surface according to transform.
Reimplemented from org.ros.android.view.visualization.shape.BaseShape.
Definition at line 50 of file TextShape.java.
void org.ros.android.view.visualization.shape.TextShape.setOffset | ( | float | x, |
float | y | ||
) | [inline] |
Definition at line 27 of file TextShape.java.
final GLText org.ros.android.view.visualization.shape.TextShape.glText [private] |
Definition at line 14 of file TextShape.java.
FloatBuffer org.ros.android.view.visualization.shape.TextShape.lines [private] |
Definition at line 19 of file TextShape.java.
final String org.ros.android.view.visualization.shape.TextShape.text [private] |
Definition at line 15 of file TextShape.java.
float org.ros.android.view.visualization.shape.TextShape.x [private] |
Definition at line 17 of file TextShape.java.
float org.ros.android.view.visualization.shape.TextShape.y [private] |
Definition at line 18 of file TextShape.java.