Jafar
|
ViewerManager gives access to all active Viewer. More...
ViewerManager gives access to all active Viewer.
Usefull for memory management and for closing all visible Viewer.
Definition at line 16 of file ViewerManager.hpp.
#include <ViewerManager.hpp>
Public Member Functions | |
ViewerManager () | |
Instantiate a new viewer manager. | |
QList< Viewer * > | viewers () |
Static Public Member Functions | |
static void | registerViewer (jafar::qdisplay::Viewer *v) |
static void | unregisterViewer (jafar::qdisplay::Viewer *v) |
static ViewerManager * | instance () |
static void | closeAllViewer () |
Close all registered viewers. | |
Private Attributes | |
QList< Viewer * > | m_list |
Static Private Attributes | |
static ViewerManager * | s_instance |
Instantiate a new viewer manager.
jafar::kernel::JafarException | is thrown if there is allready an instance of the ViewerManager. |
static ViewerManager* jafar::qdisplay::ViewerManager::instance | ( | ) | [inline, static] |
Definition at line 43 of file ViewerManager.hpp.
Referenced by registerViewer(), and unregisterViewer().
static void jafar::qdisplay::ViewerManager::registerViewer | ( | jafar::qdisplay::Viewer * | v | ) | [inline, static] |
v | viewer to register, it's called in the Viewer constructor |
Definition at line 28 of file ViewerManager.hpp.
References instance().
static void jafar::qdisplay::ViewerManager::unregisterViewer | ( | jafar::qdisplay::Viewer * | v | ) | [inline, static] |
v | viewer to unregister, it's called in the Viewer destructor |
Definition at line 35 of file ViewerManager.hpp.
References instance().
QList<Viewer*> jafar::qdisplay::ViewerManager::viewers | ( | ) | [inline] |
Definition at line 47 of file ViewerManager.hpp.
Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |