MRPT
2.0.1
|
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
Definition at line 438 of file CDisplayWindow3D.h.
#include <mrpt/gui/CDisplayWindow3D.h>
Public Member Functions | |
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. More... | |
CDisplayWindow3DLocker (CDisplayWindow3D &win) | |
Acquires the lock of the 3D scene of the referenced window. More... | |
~CDisplayWindow3DLocker () | |
Private Attributes | |
CDisplayWindow3D & | m_win |
CDisplayWindow3DLocker::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.
Definition at line 830 of file CDisplayWindow3D.cpp.
References mrpt::gui::CDisplayWindow3D::get3DSceneAndLock(), and m_win.
CDisplayWindow3DLocker::CDisplayWindow3DLocker | ( | CDisplayWindow3D & | win | ) |
Acquires the lock of the 3D scene of the referenced window.
Use this signature when the scene object is not required.
Definition at line 836 of file CDisplayWindow3D.cpp.
References mrpt::gui::CDisplayWindow3D::get3DSceneAndLock(), and m_win.
CDisplayWindow3DLocker::~CDisplayWindow3DLocker | ( | ) |
Definition at line 841 of file CDisplayWindow3D.cpp.
References m_win, and mrpt::gui::CDisplayWindow3D::unlockAccess3DScene().
|
private |
Definition at line 451 of file CDisplayWindow3D.h.
Referenced by CDisplayWindow3DLocker(), and ~CDisplayWindow3DLocker().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |