24 CTextPtr
CText::Create(const
std::
string &str) {
return CTextPtr(
new CText(str) ); }
50 #if MRPT_HAS_OPENGL_GLUT 54 glColor4ub(m_color.R,m_color.G,m_color.B,m_color.A);
76 writeToStreamRender(out);
96 readFromStreamRender(
in);
101 in >> i; m_fontHeight = i;
102 in >> i; m_fontWidth = i;
120 m_pose.composePoint(bb_min, bb_min);
121 m_pose.composePoint(bb_max, bb_max);
void OPENGL_IMPEXP renderTextBitmap(const char *str, void *fontStyle)
This method is safe for calling from within ::render() methods.
A 2D text (bitmap rendering): it always "faces the observer" despite it's at some 3D location...
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
void readFromStream(mrpt::utils::CStream &in, int version)
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
GLAPI void GLAPIENTRY glEnable(GLenum cap)
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const MRPT_OVERRIDE
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
GLAPI void GLAPIENTRY glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
The base class of 3D objects that can be directly rendered through OpenGL.
double z
X,Y,Z coordinates.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
CText(const std::string &str=std::string(""))
Constructor.
virtual ~CText()
Private, virtual destructor: only can be deleted from smart pointers.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const
Introduces a pure virtual method responsible for writing to a CStream.
GLAPI void GLAPIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
The namespace for 3D scene representation and rendering.
void render() const MRPT_OVERRIDE
Render.
unsigned __int32 uint32_t
GLAPI void GLAPIENTRY glDisable(GLenum cap)