CustusX  22.04-rc5
An IGT application
cxRMPCPluginActivator.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 "cxRMPCPluginActivator.h"
13 
14 #include <QtPlugin>
15 #include <iostream>
16 
17 #include "cxRMPCService.h"
19 #include "cxRegisteredService.h"
20 
21 
22 namespace cx
23 {
24 
26 {
27 // std::cout << "Created RMPCPluginActivator" << std::endl;
28 }
29 
31 {
32 }
33 
34 void RMPCPluginActivator::start(ctkPluginContext* context)
35 {
36  mPointerToSurface = RegisteredService::create<RMPCFromPointerImageToPatientService>(context, RegistrationMethodService_iid);
37  mPointCloud = RegisteredService::create<RMPCImageToPatientService>(context, RegistrationMethodService_iid);
38 }
39 
40 void RMPCPluginActivator::stop(ctkPluginContext* context)
41 {
42  mPointerToSurface.reset();
43  mPointCloud.reset();
44  Q_UNUSED(context);
45 }
46 
47 } // namespace cx
48 
49 
void start(ctkPluginContext *context)
#define RegistrationMethodService_iid
void stop(ctkPluginContext *context)
Namespace for all CustusX production code.