NorMIT-nav  22.09
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 
cx::VideoServiceBackend::file
FileManagerServicePtr file()
Definition: cxVideoServiceBackend.cpp:55
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxVideoServiceBackend.h
cx::FileManagerServicePtr
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
Definition: cxLogicManager.h:31
cx::VideoServiceBackend::VideoServiceBackend
VideoServiceBackend(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext *context)
Definition: cxVideoServiceBackend.cpp:28
cx::VideoServiceBackend::create
static VideoServiceBackendPtr create(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, FileManagerServicePtr filemanager, ctkPluginContext *context)
Definition: cxVideoServiceBackend.cpp:21
cx::TrackingServicePtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
Definition: cxToolFilterWidget.h:27
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cx::VideoServiceBackend::tracking
TrackingServicePtr tracking()
Definition: cxVideoServiceBackend.cpp:45
cx::VideoServiceBackend::getDataManager
PatientModelServicePtr getDataManager()
Definition: cxVideoServiceBackend.cpp:40
cx::VideoServiceBackend::getSpaceProvider
SpaceProviderPtr getSpaceProvider()
Definition: cxVideoServiceBackend.cpp:50
cxTrackingService.h
cx::SpaceProviderPtr
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
Definition: cxLogicManager.h:23
cxSpaceProvider.h
cx::VideoServiceBackendPtr
boost::shared_ptr< class VideoServiceBackend > VideoServiceBackendPtr
Definition: cxPlaybackUSAcquisitionVideo.h:28