Go to the documentation of this file.
9 #ifndef opengl_CSetOfTexturedTriangles_H
10 #define opengl_CSetOfTexturedTriangles_H
16 namespace utils {
class CStream; }
38 TVertex(
float x,
float y,
float z, uint32_t u, uint32_t v);
void render_texturedobj() const MRPT_OVERRIDE
Must be implemented by derived classes.
float m_z
3D vertex coordinates.
TTriangle()
Default constructor.
void writeToStream(mrpt::utils::CStream &out) const
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...
TVertex(float x, float y, float z, uint32_t u, uint32_t v)
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
CSetOfTexturedTriangles()
Constructor.
size_t getTrianglesCount() const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
TTriangle(TVertex v1, TVertex v2, TVertex v3)
EIGEN_STRONG_INLINE const AdjointReturnType t() const
Transpose.
virtual ~CSetOfTexturedTriangles()
Private, virtual destructor: only can be deleted from smart pointers.
TVertex()
Default constructor
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
void getTriangle(size_t idx, TTriangle &t) const
void insertTriangle(const TTriangle &t)
const TTriangle & getTriangle(size_t idx) const
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
A base class for all OpenGL objects with loadable textures.
uint32_t m_v
2D texture coordinates. Notice that the texture coordinates are 2D pixels!!!
#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...
virtual bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const MRPT_OVERRIDE
Simulation of ray-trace, given a pose.
void readFromStream(mrpt::utils::CStream &in)
void readFromStream(mrpt::utils::CStream &in)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
std::vector< TTriangle > m_triangles
Triangle array.
A set of textured triangles.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
void writeToStream(mrpt::utils::CStream &out) const
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |