NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::LogicManager Class Reference

Control the custusx backend. More...

#include <cxLogicManager.h>

Inheritance diagram for cx::LogicManager:

Public Member Functions

void setApplicationComponent (ApplicationComponentPtr component)
 
void restartWithNewProfile (QString uid)
 
void restartServicesWithProfile (QString uid)
 
PluginFrameworkManagerPtr getPluginFramework ()
 
ctkPluginContext * getPluginContext ()
 
TrackingServicePtr getTrackingService ()
 
SpaceProviderPtr getSpaceProvider ()
 
PatientModelServicePtr getPatientModelService ()
 
VideoServicePtr getVideoService ()
 
StateServicePtr getStateService ()
 
ViewServicePtr getViewService ()
 
SessionStorageServicePtr getSessionStorageService ()
 

Static Public Member Functions

static LogicManagergetInstance ()
 
static void initializeBasic ()
 
static void initialize (ApplicationComponentPtr component=ApplicationComponentPtr())
 
static void shutdown ()
 
static bool isUbuntu2004 ()
 

Detailed Description

Control the custusx backend.

Definition at line 60 of file cxLogicManager.h.

Member Function Documentation

◆ getInstance()

LogicManager * cx::LogicManager::getInstance ( )
static

Definition at line 296 of file cxLogicManager.cpp.

◆ getPatientModelService()

PatientModelServicePtr cx::LogicManager::getPatientModelService ( )

Definition at line 253 of file cxLogicManager.cpp.

◆ getPluginContext()

ctkPluginContext * cx::LogicManager::getPluginContext ( )

Definition at line 291 of file cxLogicManager.cpp.

◆ getPluginFramework()

PluginFrameworkManagerPtr cx::LogicManager::getPluginFramework ( )

Definition at line 287 of file cxLogicManager.cpp.

◆ getSessionStorageService()

SessionStorageServicePtr cx::LogicManager::getSessionStorageService ( )

Definition at line 277 of file cxLogicManager.cpp.

◆ getSpaceProvider()

SpaceProviderPtr cx::LogicManager::getSpaceProvider ( )

Definition at line 269 of file cxLogicManager.cpp.

◆ getStateService()

StateServicePtr cx::LogicManager::getStateService ( )

Definition at line 265 of file cxLogicManager.cpp.

◆ getTrackingService()

TrackingServicePtr cx::LogicManager::getTrackingService ( )

Definition at line 257 of file cxLogicManager.cpp.

◆ getVideoService()

VideoServicePtr cx::LogicManager::getVideoService ( )

Definition at line 261 of file cxLogicManager.cpp.

◆ getViewService()

ViewServicePtr cx::LogicManager::getViewService ( )

Definition at line 273 of file cxLogicManager.cpp.

◆ initialize()

void cx::LogicManager::initialize ( ApplicationComponentPtr  component = ApplicationComponentPtr())
static

Initialize the manager, including all services (calls initializeServices() ).

Definition at line 56 of file cxLogicManager.cpp.

◆ initializeBasic()

void cx::LogicManager::initializeBasic ( )
static

Initialize the minimal manager, no services.

Add services manually afterwards using getPluginFramework()->start("org.custusx.plugin.name", ctkPlugin::START_TRANSIENT);

In order to insert a main UI, remember to call setApplicationComponent()

Definition at line 51 of file cxLogicManager.cpp.

◆ isUbuntu2004()

bool cx::LogicManager::isUbuntu2004 ( )
static

Detect if we are compiling on Ubuntu 20.04

Definition at line 79 of file cxLogicManager.cpp.

◆ restartServicesWithProfile()

void cx::LogicManager::restartServicesWithProfile ( QString  uid)

Definition at line 175 of file cxLogicManager.cpp.

◆ restartWithNewProfile()

void cx::LogicManager::restartWithNewProfile ( QString  uid)

Do a complete restart of the system: Shutdown all components, Then restart all of them. This is done asynchronolusly.

Definition at line 161 of file cxLogicManager.cpp.

◆ setApplicationComponent()

void cx::LogicManager::setApplicationComponent ( ApplicationComponentPtr  component)

Set an application component, intended to encapsulate the application's main window or similar. Must be called after initialize.

Component will be created here and destroyed in shutdown.

Definition at line 150 of file cxLogicManager.cpp.

◆ shutdown()

void cx::LogicManager::shutdown ( )
static

Shutdown the manager, including all services (calls shutdownServices() ).

Definition at line 65 of file cxLogicManager.cpp.


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