9 #ifndef opengl_CAssimpModel_H
10 #define opengl_CAssimpModel_H
55 void loadScene( const std::
string &file_name );
61 void evaluateAnimation(
double time_anim );
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#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...
This class can load & render 3D models in a number of different formats (requires the library assimp)...
void render_dl() const MRPT_OVERRIDE
Render child objects.
mrpt::math::TPoint3D m_bbox_max
Bounding box.
std::vector< unsigned int > m_textureIds
virtual ~CAssimpModel()
Private, virtual destructor: only can be deleted from smart pointers.
std::map< std::string, TInfoPerTexture > m_textureIdMap
stlplus::smart_ptr< TImplAssimp > m_assimp_scene
A renderizable object suitable for rendering with OpenGL's display lists.
bool BASE_IMPEXP traceRay(const vector< TPolygonWithPlane > &vec, const mrpt::poses::CPose3D &pose, double &dist)
Fast ray tracing method using polygons' properties.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A container for automatic deletion of lib3ds's scene when the last reference of the smart_ptr's is de...
mrpt::utils::CImagePtr img_alpha
size_t id_idx
indices in m_textureIds. string::npos for non-initialized ones.