Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Private Attributes
mrpt::gui::CDisplayWindow3DLocker Class Reference

Detailed Description

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

Note
New in MRPT 1.5.0

Definition at line 440 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

CDisplayWindow3Dm_win
 

Constructor & Destructor Documentation

◆ CDisplayWindow3DLocker() [1/2]

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 1054 of file CDisplayWindow3D.cpp.

References mrpt::gui::CDisplayWindow3D::get3DSceneAndLock(), and m_win.

Here is the call graph for this function:

◆ CDisplayWindow3DLocker() [2/2]

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 1060 of file CDisplayWindow3D.cpp.

References mrpt::gui::CDisplayWindow3D::get3DSceneAndLock(), and m_win.

Here is the call graph for this function:

◆ ~CDisplayWindow3DLocker()

CDisplayWindow3DLocker::~CDisplayWindow3DLocker ( )

Definition at line 1065 of file CDisplayWindow3D.cpp.

References m_win, and mrpt::gui::CDisplayWindow3D::unlockAccess3DScene().

Here is the call graph for this function:

Member Data Documentation

◆ m_win

CDisplayWindow3D& mrpt::gui::CDisplayWindow3DLocker::m_win
private

Definition at line 453 of file CDisplayWindow3D.h.

Referenced by CDisplayWindow3DLocker(), and ~CDisplayWindow3DLocker().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019