class mrpt::gui::CDisplayWindow3DLocker¶
Auxiliary class for safely claiming the 3DScene of a mrpt::gui::CDisplayWindow3D.
The mutex will be hold between ctor and dtor calls of objects of this class, safely releasing the lock upon exceptions. See example usage code in docs of mrpt::gui::CDisplayWindow3D
New in MRPT 1.5.0
#include <mrpt/gui/CDisplayWindow3D.h> class CDisplayWindow3DLocker { public: // construction CDisplayWindow3DLocker(CDisplayWindow3D& win, mrpt::opengl::COpenGLScene::Ptr& out_scene_ptr); CDisplayWindow3DLocker(CDisplayWindow3D& win); };
Construction¶
CDisplayWindow3DLocker(CDisplayWindow3D& win, mrpt::opengl::COpenGLScene::Ptr& out_scene_ptr)
Acquires the lock of the 3D scene of the referenced window, and returns a copy of the smart pointer to it.
CDisplayWindow3DLocker(CDisplayWindow3D& win)
Acquires the lock of the 3D scene of the referenced window.
Use this signature when the scene object is not required.