Go to the documentation of this file.
25 #define COMPILE_TIME_ASSERT(N, expr) char dummy_constraint##N[expr]
27 #if MRPT_HAS_OPENGL_GLUT
36 #if MRPT_HAS_OPENGL_GLUT
45 #if MRPT_HAS_OPENGL_GLUT
46 for_each(enabled.begin(), enabled.end(),
glEnable);
51 glColor4ub(m_color.R, m_color.G, m_color.B, m_color.A);
52 if (normal[0] || normal[1] || normal[2])
57 for_each(vertices.begin(), vertices.end(), renderFunc);
66 for_each(it, it + chunkSize, renderFunc);
69 }
while (it != vertices.end());
71 for_each(enabled.begin(), enabled.end(),
glDisable);
79 writeToStreamRender(out);
80 out <<
type << vertices << chunkSize << enabled;
90 readFromStreamRender(
in);
91 in >>
type >> vertices >> chunkSize >> enabled;
122 m_pose.composePoint(bb_min, bb_min);
123 m_pose.composePoint(bb_max, bb_max);
129 while (it != enabled.end())
132 it = enabled.erase(it);
GLAPI void GLAPIENTRY glBegin(GLenum mode)
#define COMPILE_TIME_ASSERT(N, expr)
Objects of this class represent a generic openGL object without specific geometric properties.
const Scalar * const_iterator
GLAPI void GLAPIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
A renderizable object suitable for rendering with OpenGL's display lists.
GLAPI void GLAPIENTRY glDisable(GLenum cap)
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.
GLAPI void GLAPIENTRY glEnable(GLenum cap)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLuint GLuint GLsizei GLenum type
GLAPI void GLAPIENTRY glVertex3f(GLfloat x, GLfloat y, GLfloat z)
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Virtual base class for "archives": classes abstracting I/O streams.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
GLAPI void GLAPIENTRY glEnd(void)
IMPLEMENTS_SERIALIZABLE(COpenGLStandardObject, CRenderizableDisplayList, mrpt::opengl) void renderFunc(TPoint3D p)
#define GL_ONE_MINUS_SRC_ALPHA
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
GLAPI void GLAPIENTRY glShadeModel(GLenum mode)
double x
X,Y,Z coordinates.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
GLAPI void GLAPIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Ray Tracing.
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
This base provides a set of functions for maths stuff.
virtual void render_dl() const override
Render.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
The namespace for 3D scene representation and rendering.
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
void disable(_GLENUM flag)
Disable some openGL flag.
GLAPI void GLAPIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |