mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 01:37:46 +08:00
34 lines
562 B
Java
34 lines
562 B
Java
//package ri.blog.opengl008;
|
|
package com.introlab.rtabmap;
|
|
|
|
public class TextObject {
|
|
|
|
public String text;
|
|
public float x;
|
|
public float y;
|
|
public float[] color;
|
|
|
|
public TextObject()
|
|
{
|
|
text = "default";
|
|
x = 0f;
|
|
y = 0f;
|
|
color = new float[] {1f, 1f, 1f, 1.0f};
|
|
}
|
|
|
|
public TextObject(String txt, float xcoord, float ycoord)
|
|
{
|
|
text = txt;
|
|
x = xcoord;
|
|
y = ycoord;
|
|
color = new float[] {1f, 1f, 1f, 1.0f};
|
|
}
|
|
|
|
/*public boolean validate()
|
|
{
|
|
if(text.compareTo("")==0) return false;
|
|
|
|
return true;
|
|
}*/
|
|
}
|