CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxRegistrationMethodManualPluginActivator.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 
13 
14 #include <QtPlugin>
15 #include <iostream>
16 
21 #include "cxRegisteredService.h"
22 
23 namespace cx
24 {
25 
27 {
28 // std::cout << "Created RegistrationMethodManualPluginActivator" << std::endl;
29 }
30 
32 {}
33 
34 void RegistrationMethodManualPluginActivator::start(ctkPluginContext* context)
35 {
36  RegServicesPtr services = RegServices::create(context);
37 
42 
43  mRegistrationImageToImage = RegisteredServicePtr(new RegisteredService(context, i2i, RegistrationMethodService_iid));
44  mRegistrationImageToPatient = RegisteredServicePtr(new RegisteredService(context, i2p, RegistrationMethodService_iid));
45  mRegistrationImageTransform = RegisteredServicePtr(new RegisteredService(context, iTransform, RegistrationMethodService_iid));
46  mRegistrationPatientOrientation = RegisteredServicePtr(new RegisteredService(context, patientOrientation, RegistrationMethodService_iid));
47 }
48 
49 void RegistrationMethodManualPluginActivator::stop(ctkPluginContext* context)
50 {
51  mRegistrationImageToImage.reset();
52  mRegistrationImageToPatient.reset();
53  mRegistrationImageTransform.reset();
54  mRegistrationPatientOrientation.reset();
55  Q_UNUSED(context);
56 }
57 
58 } // namespace cx
static RegServicesPtr create(ctkPluginContext *context)
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
#define RegistrationMethodService_iid
Namespace for all CustusX production code.