CoinViewer Class Reference

#include <ArmarXGui/libraries/ArmarXGuiBase/widgets/CoinViewer.h>

+ Inheritance diagram for CoinViewer:

Public Types

using RecursiveMutex = std::recursive_mutex
 
using RecursiveMutexLock = std::unique_lock< RecursiveMutex >
 
using RecursiveMutexLockPtr = std::shared_ptr< RecursiveMutexLock >
 
using RecursiveMutexPtr = std::shared_ptr< RecursiveMutex >
 

Public Member Functions

 CoinViewer (QWidget *parent, const char *name=NULL, SbBool embed=TRUE, SoQtFullViewer::BuildFlag flag=BUILD_ALL, SoQtViewer::Type type=BROWSER)
 
RecursiveMutexLockPtr getScopedLock ()
 
void setMutex (RecursiveMutexPtr const &m)
 
 ~CoinViewer () override
 

Protected Member Functions

void actualRedraw (void) override
 actualRedraw Reimplement the redraw method in order to lock engine mutex More...
 

Protected Attributes

RecursiveMutexPtr mutex
 

Detailed Description

Basically this is a SoQtExaminerViewer, with the extension that you can specify a mutex that protects the drawing.

Definition at line 38 of file CoinViewer.h.

Member Typedef Documentation

◆ RecursiveMutex

using RecursiveMutex = std::recursive_mutex

Definition at line 51 of file CoinViewer.h.

◆ RecursiveMutexLock

using RecursiveMutexLock = std::unique_lock<RecursiveMutex>

Definition at line 53 of file CoinViewer.h.

◆ RecursiveMutexLockPtr

using RecursiveMutexLockPtr = std::shared_ptr<RecursiveMutexLock>

Definition at line 54 of file CoinViewer.h.

◆ RecursiveMutexPtr

using RecursiveMutexPtr = std::shared_ptr<RecursiveMutex>

Definition at line 52 of file CoinViewer.h.

Constructor & Destructor Documentation

◆ CoinViewer()

CoinViewer ( QWidget *  parent,
const char *  name = NULL,
SbBool  embed = TRUE,
SoQtFullViewer::BuildFlag  flag = BUILD_ALL,
SoQtViewer::Type  type = BROWSER 
)

Definition at line 32 of file CoinViewer.cpp.

◆ ~CoinViewer()

~CoinViewer ( )
overridedefault

Member Function Documentation

◆ actualRedraw()

void actualRedraw ( void  )
overrideprotected

actualRedraw Reimplement the redraw method in order to lock engine mutex

Definition at line 62 of file CoinViewer.cpp.

+ Here is the call graph for this function:

◆ getScopedLock()

auto getScopedLock ( )
Returns
This lock allows to safely access the viewer's scene graph.

Definition at line 50 of file CoinViewer.cpp.

+ Here is the caller graph for this function:

◆ setMutex()

void setMutex ( RecursiveMutexPtr const &  m)

If set, the drawing is protected by this mutex. This overwrites the default mutex.

Definition at line 45 of file CoinViewer.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ mutex

RecursiveMutexPtr mutex
protected

Definition at line 74 of file CoinViewer.h.


The documentation for this class was generated from the following files: