9 #ifndef opengl_CSetOfTexturedTriangles_H 10 #define opengl_CSetOfTexturedTriangles_H 16 namespace utils {
class CStream; }
void getTriangle(size_t idx, TTriangle &t) const
void insertTriangle(const TTriangle &t)
uint32_t m_v
2D texture coordinates. Notice that the texture coordinates are 2D pixels!!!
A base class for all OpenGL objects with loadable textures.
const TTriangle & getTriangle(size_t idx) const
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
bool BASE_IMPEXP traceRay(const std::vector< TPolygonWithPlane > &vec, const mrpt::poses::CPose3D &pose, double &dist)
Fast ray tracing method using polygons' properties.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
size_t getTrianglesCount() const
float m_z
3D vertex coordinates.
GLfloat GLfloat GLfloat GLfloat v3
std::vector< TTriangle > m_triangles
Triangle array.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
CSetOfTexturedTriangles()
Constructor.
GLfloat GLfloat GLfloat v2
unsigned __int32 uint32_t
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
A set of textured triangles.