Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
TextDrawable Class Reference

#include <text_drawable.h>

Public Member Functions

void Render (const glm::mat4 &projectionMatrix, const glm::mat4 &viewMatrix, const glm::mat4 &viewMatrixRotInv) const
 
 TextDrawable (const std::string &text, const rtabmap::Transform &pose, float textSize=0.1f, const tango_gl::Color &color=tango_gl::Color(1, 0, 0))
 
virtual ~TextDrawable ()
 

Static Public Member Functions

static void createShaderProgram ()
 
static void releaseShaderProgram ()
 

Private Attributes

tango_gl::Color color_
 
std::vector< unsigned short > drawListBuffer_
 
glm::mat4 poseGl_
 
std::vector< floattextureBuffer_
 
std::vector< floatvertexBuffer_
 

Static Private Attributes

static std::vector< floattextCharacterWidths_
 
static float textHeight_ = 0
 
static GLuint textProgram_ = 0
 
static GLuint textTextureId_ = 0
 
static float textUVHeight_ = 0
 
static float textUVWidth_ = 0
 

Detailed Description

Definition at line 36 of file text_drawable.h.

Constructor & Destructor Documentation

◆ TextDrawable()

TextDrawable::TextDrawable ( const std::string text,
const rtabmap::Transform pose,
float  textSize = 0.1f,
const tango_gl::Color color = tango_gl::Color(1,0,0) 
)

Definition at line 209 of file text_drawable.cpp.

◆ ~TextDrawable()

virtual TextDrawable::~TextDrawable ( )
inlinevirtual

Definition at line 56 of file text_drawable.h.

Member Function Documentation

◆ createShaderProgram()

void TextDrawable::createShaderProgram ( )
static

Definition at line 71 of file text_drawable.cpp.

◆ releaseShaderProgram()

void TextDrawable::releaseShaderProgram ( )
static

Definition at line 200 of file text_drawable.cpp.

◆ Render()

void TextDrawable::Render ( const glm::mat4 projectionMatrix,
const glm::mat4 viewMatrix,
const glm::mat4 viewMatrixRotInv 
) const

Definition at line 315 of file text_drawable.cpp.

Member Data Documentation

◆ color_

tango_gl::Color TextDrawable::color_
private

Definition at line 68 of file text_drawable.h.

◆ drawListBuffer_

std::vector<unsigned short> TextDrawable::drawListBuffer_
private

Definition at line 66 of file text_drawable.h.

◆ poseGl_

glm::mat4 TextDrawable::poseGl_
private

Definition at line 67 of file text_drawable.h.

◆ textCharacterWidths_

std::vector< float > TextDrawable::textCharacterWidths_
staticprivate

Definition at line 43 of file text_drawable.h.

◆ textHeight_

float TextDrawable::textHeight_ = 0
staticprivate

Definition at line 42 of file text_drawable.h.

◆ textProgram_

GLuint TextDrawable::textProgram_ = 0
staticprivate

Definition at line 38 of file text_drawable.h.

◆ textTextureId_

GLuint TextDrawable::textTextureId_ = 0
staticprivate

Definition at line 39 of file text_drawable.h.

◆ textureBuffer_

std::vector<float> TextDrawable::textureBuffer_
private

Definition at line 65 of file text_drawable.h.

◆ textUVHeight_

float TextDrawable::textUVHeight_ = 0
staticprivate

Definition at line 41 of file text_drawable.h.

◆ textUVWidth_

float TextDrawable::textUVWidth_ = 0
staticprivate

Definition at line 40 of file text_drawable.h.

◆ vertexBuffer_

std::vector<float> TextDrawable::vertexBuffer_
private

Definition at line 64 of file text_drawable.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Apr 28 2025 02:46:09