Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
com.introlab.rtabmap.TextManager Class Reference

Public Member Functions

void AddCharRenderInformation (float[] vec, float[] cs, float[] uv, short[] indi)
 
void Draw (float[] m)
 
float getMaxTextHeight ()
 
float getUniformscale ()
 
void PrepareDraw (Vector< TextObject > txtcollection)
 
void PrepareDrawInfo (Vector< TextObject > txtcollection)
 
void setColor (float color)
 
void setTextureID (int val)
 
void setUniformscale (float uniformscale)
 
 TextManager (Context context)
 

Static Public Member Functions

static int loadShader (int type, String shaderCode)
 

Static Public Attributes

static final String fs_Text
 
static final float RI_TEXT_HEIGHT_BASE = 32.0f
 
static final char RI_TEXT_START = ' '
 
static final char RI_TEXT_STOP = '\u00B0'+1
 
static final int RI_TEXT_TEXTURE_SIZE = 512
 
static int sp_Text
 
static final String vs_Text
 

Private Member Functions

void convertTextToTriangleInfo (TextObject val)
 

Private Attributes

ShortBuffer drawListBuffer
 
int index_indices
 
int index_uvs
 
int index_vecs
 
short[] indices
 
float mColor
 
float mTextHeight
 
int[] mTextures
 
float mUVHeight
 
float mUVWidth
 
FloatBuffer textureBuffer
 
int texturenr
 
float uniformscale = 1.0f
 
float[] uvs
 
float[] vecs
 
FloatBuffer vertexBuffer
 

Detailed Description

Definition at line 22 of file TextManager.java.

Constructor & Destructor Documentation

◆ TextManager()

com.introlab.rtabmap.TextManager.TextManager ( Context  context)
inline

Definition at line 82 of file TextManager.java.

Member Function Documentation

◆ AddCharRenderInformation()

void com.introlab.rtabmap.TextManager.AddCharRenderInformation ( float[]  vec,
float[]  cs,
float[]  uv,
short[]  indi 
)
inline

Definition at line 174 of file TextManager.java.

◆ convertTextToTriangleInfo()

void com.introlab.rtabmap.TextManager.convertTextToTriangleInfo ( TextObject  val)
inlineprivate

Definition at line 333 of file TextManager.java.

◆ Draw()

void com.introlab.rtabmap.TextManager.Draw ( float[]  m)
inline

Definition at line 253 of file TextManager.java.

◆ getMaxTextHeight()

float com.introlab.rtabmap.TextManager.getMaxTextHeight ( )
inline

Definition at line 56 of file TextManager.java.

◆ getUniformscale()

float com.introlab.rtabmap.TextManager.getUniformscale ( )
inline

Definition at line 411 of file TextManager.java.

◆ loadShader()

static int com.introlab.rtabmap.TextManager.loadShader ( int  type,
String  shaderCode 
)
inlinestatic

Definition at line 159 of file TextManager.java.

◆ PrepareDraw()

void com.introlab.rtabmap.TextManager.PrepareDraw ( Vector< TextObject txtcollection)
inline

Definition at line 234 of file TextManager.java.

◆ PrepareDrawInfo()

void com.introlab.rtabmap.TextManager.PrepareDrawInfo ( Vector< TextObject txtcollection)
inline

Definition at line 204 of file TextManager.java.

◆ setColor()

void com.introlab.rtabmap.TextManager.setColor ( float  color)
inline

Definition at line 419 of file TextManager.java.

◆ setTextureID()

void com.introlab.rtabmap.TextManager.setTextureID ( int  val)
inline

Definition at line 154 of file TextManager.java.

◆ setUniformscale()

void com.introlab.rtabmap.TextManager.setUniformscale ( float  uniformscale)
inline

Definition at line 415 of file TextManager.java.

Member Data Documentation

◆ drawListBuffer

ShortBuffer com.introlab.rtabmap.TextManager.drawListBuffer
private

Definition at line 65 of file TextManager.java.

◆ fs_Text

final String com.introlab.rtabmap.TextManager.fs_Text
static
Initial value:
=
"precision mediump float;" +
"uniform float uColor;" +
"varying vec2 v_texCoord;" +
"uniform sampler2D s_texture;" +
"void main() {" +
" gl_FragColor = texture2D( s_texture, v_texCoord );" +
" gl_FragColor.rgb *= uColor;" +
"}"

Definition at line 39 of file TextManager.java.

◆ index_indices

int com.introlab.rtabmap.TextManager.index_indices
private

Definition at line 72 of file TextManager.java.

◆ index_uvs

int com.introlab.rtabmap.TextManager.index_uvs
private

Definition at line 73 of file TextManager.java.

◆ index_vecs

int com.introlab.rtabmap.TextManager.index_vecs
private

Definition at line 71 of file TextManager.java.

◆ indices

short [] com.introlab.rtabmap.TextManager.indices
private

Definition at line 69 of file TextManager.java.

◆ mColor

float com.introlab.rtabmap.TextManager.mColor
private

Definition at line 61 of file TextManager.java.

◆ mTextHeight

float com.introlab.rtabmap.TextManager.mTextHeight
private

Definition at line 60 of file TextManager.java.

◆ mTextures

int [] com.introlab.rtabmap.TextManager.mTextures
private

Definition at line 76 of file TextManager.java.

◆ mUVHeight

float com.introlab.rtabmap.TextManager.mUVHeight
private

Definition at line 59 of file TextManager.java.

◆ mUVWidth

float com.introlab.rtabmap.TextManager.mUVWidth
private

Definition at line 58 of file TextManager.java.

◆ RI_TEXT_HEIGHT_BASE

final float com.introlab.rtabmap.TextManager.RI_TEXT_HEIGHT_BASE = 32.0f
static

Definition at line 52 of file TextManager.java.

◆ RI_TEXT_START

final char com.introlab.rtabmap.TextManager.RI_TEXT_START = ' '
static

Definition at line 53 of file TextManager.java.

◆ RI_TEXT_STOP

final char com.introlab.rtabmap.TextManager.RI_TEXT_STOP = '\u00B0'+1
static

Definition at line 54 of file TextManager.java.

◆ RI_TEXT_TEXTURE_SIZE

final int com.introlab.rtabmap.TextManager.RI_TEXT_TEXTURE_SIZE = 512
static

Definition at line 51 of file TextManager.java.

◆ sp_Text

int com.introlab.rtabmap.TextManager.sp_Text
static

Definition at line 49 of file TextManager.java.

◆ textureBuffer

FloatBuffer com.introlab.rtabmap.TextManager.textureBuffer
private

Definition at line 64 of file TextManager.java.

◆ texturenr

int com.introlab.rtabmap.TextManager.texturenr
private

Definition at line 75 of file TextManager.java.

◆ uniformscale

float com.introlab.rtabmap.TextManager.uniformscale = 1.0f
private

Definition at line 78 of file TextManager.java.

◆ uvs

float [] com.introlab.rtabmap.TextManager.uvs
private

Definition at line 68 of file TextManager.java.

◆ vecs

float [] com.introlab.rtabmap.TextManager.vecs
private

Definition at line 67 of file TextManager.java.

◆ vertexBuffer

FloatBuffer com.introlab.rtabmap.TextManager.vertexBuffer
private

Definition at line 63 of file TextManager.java.

◆ vs_Text

final String com.introlab.rtabmap.TextManager.vs_Text
static
Initial value:
=
"uniform mat4 uMVPMatrix;" +
"attribute vec4 vPosition;" +
"attribute vec2 a_texCoord;" +
"varying vec2 v_texCoord;" +
"void main() {" +
" gl_Position = uMVPMatrix * vPosition;" +
" v_texCoord = a_texCoord;" +
"}"

Definition at line 30 of file TextManager.java.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26