CustusX  22.04-rc3
An IGT application
cxVideoServiceBackend.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxVideoServiceBackend.h"
13 
14 #include <ctkPluginFramework.h>
15 #include "cxTrackingService.h"
16 #include "cxSpaceProvider.h"
17 
18 namespace cx
19 {
20 
22  TrackingServicePtr trackingService,
23  SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext* context)
24 {
25  return VideoServiceBackendPtr(new VideoServiceBackend(dataManager, trackingService, spaceProvider, filemanager, context));
26 }
27 
29  TrackingServicePtr trackingService,
30  SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext* context) :
31  mContext(context),
32  mDataManager(dataManager),
33  mTrackingService(trackingService),
34  mSpaceProvider(spaceProvider),
35  mFileManagerService(filemanager)
36 {
37 
38 }
39 
41 {
42  return mDataManager;
43 }
44 
46 {
47  return mTrackingService;
48 }
49 
51 {
52  return mSpaceProvider;
53 }
54 
56 {
57  return mFileManagerService;
58 }
59 
60 } // namespace cx
61 
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
boost::shared_ptr< class VideoServiceBackend > VideoServiceBackendPtr
static VideoServiceBackendPtr create(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext *context)
PatientModelServicePtr getDataManager()
SpaceProviderPtr getSpaceProvider()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
VideoServiceBackend(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext *context)
TrackingServicePtr tracking()
FileManagerServicePtr file()
Namespace for all CustusX production code.