Go to the documentation of this file.
9 #ifndef opengl_CAssimpModel_H
10 #define opengl_CAssimpModel_H
mrpt::math::TPoint3D m_bbox_max
mrpt::img::CImage::Ptr img_alpha
This class can load & render 3D models in a number of different formats (requires the library assimp)...
A renderizable object suitable for rendering with OpenGL's display lists.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void evaluateAnimation(double time_anim)
Evaluates the scene at a given animation time.
mrpt::img::CImage::Ptr img_rgb
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
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...
void render_dl() const override
Render child objects.
std::map< std::string, TInfoPerTexture > m_textureIdMap
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
virtual ~CAssimpModel()
Private, virtual destructor: only can be deleted from smart pointers.
size_t id_idx
indices in m_textureIds.
std::vector< unsigned int > m_textureIds
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
std::shared_ptr< CImage > Ptr
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
GLsizei const GLchar ** string
void clear()
Empty the object.
mrpt::math::TPoint3D m_bbox_min
Bounding box.
void loadScene(const std::string &file_name)
Loads a scene from a file in any supported file.
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 | |