size_t id_idx
indices in m_textureIds.
void evaluateAnimation(double time_anim)
Evaluates the scene at a given animation time.
void loadScene(const std::string &file_name)
Loads a scene from a file in any supported file.
mrpt::math::TPoint3D m_bbox_min
Bounding box.
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
std::shared_ptr< CImage > Ptr
A renderizable object suitable for rendering with OpenGL's display lists.
std::map< std::string, TInfoPerTexture > m_textureIdMap
mrpt::math::TPoint3D m_bbox_max
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 clear()
Empty the object.
~CAssimpModel() override
Private, virtual destructor: only can be deleted from smart pointers.
GLsizei const GLchar ** string
mrpt::img::CImage::Ptr img_rgb
#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).
The namespace for 3D scene representation and rendering.
void render_dl() const override
Render child objects.
A container for automatic deletion of assimp scene when the last reference of the smart_ptr's is dest...
This class can load & render 3D models in a number of different formats (requires the library assimp)...
std::vector< unsigned int > m_textureIds
std::shared_ptr< TImplAssimp > m_assimp_scene
mrpt::img::CImage::Ptr img_alpha