CustusX  18.04-rc1
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,
24  ctkPluginContext* context)
25 {
26  return VideoServiceBackendPtr(new VideoServiceBackend(dataManager, trackingService, spaceProvider, context));
27 }
28 
30  TrackingServicePtr trackingService,
31  SpaceProviderPtr spaceProvider,
32  ctkPluginContext* context) :
33  mDataManager(dataManager),
34  mTrackingService(trackingService),
35  mSpaceProvider(spaceProvider),
36  mContext(context)
37 {
38 
39 }
40 
42 {
43  return mDataManager;
44 }
45 
47 {
48  return mTrackingService;
49 }
50 
52 {
53  return mSpaceProvider;
54 }
55 
56 } // namespace cx
57 
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
boost::shared_ptr< class VideoServiceBackend > VideoServiceBackendPtr
PatientModelServicePtr getDataManager()
VideoServiceBackend(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, ctkPluginContext *context)
SpaceProviderPtr getSpaceProvider()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
static VideoServiceBackendPtr create(PatientModelServicePtr dataManager, TrackingServicePtr trackingService, SpaceProviderPtr spaceProvider, ctkPluginContext *context)
TrackingServicePtr tracking()
Namespace for all CustusX production code.