mrpt::math::TPoint3D m_bbox_max
void onUpdateBuffers_Points() override
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
void onUpdateBuffers_all()
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void onUpdateBuffers_Triangles() override
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
This class can load & render 3D models in a number of different formats (requires the library assimp)...
void freeOpenGLResources() override
Free opengl buffers.
Renderizable generic renderer for objects using the wireframe shader.
void onUpdateBuffers_Wireframe() override
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
void freeOpenGLResources() override
Free opengl buffers.
void renderUpdateBuffers() const override
Called whenever m_outdatedBuffers is true: used to re-generate OpenGL vertex buffers,...
void freeOpenGLResources() override
Free opengl buffers.
A container for automatic deletion of assimp scene when the last reference of the smart_ptr's is dest...
std::shared_ptr< TImplAssimp > m_assimp_scene
static constexpr shader_id_t WIREFRAME
static constexpr shader_id_t TRIANGLES
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...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
virtual ~CAssimpModel() override
Context for calls to render()
void freeOpenGLResources() override
Free opengl buffers.
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
virtual shader_list_t requiredShaders() const override
Returns the ID of the OpenGL shader program required to render this class.
Renderizable generic renderer for objects using the points shader.
std::vector< shader_id_t > shader_list_t
A list of shader IDs.
Renderizable generic renderer for objects using the triangles shader.
void clear()
Empty the object.
mrpt::math::TPoint3D m_bbox_min
Bounding box.
The namespace for 3D scene representation and rendering.
static constexpr shader_id_t POINTS
void loadScene(const std::string &file_name)
Loads a scene from a file in any supported file.
void render(const RenderContext &rc) const override
Implements the rendering of 3D objects in each class derived from CRenderizable.
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 15:15:43 UTC 2020 | |