NorMIT-nav  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
cx::RegServices::create
static RegServicesPtr create(ctkPluginContext *context)
Definition: cxRegServices.cpp:20
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::RegisteredServicePtr
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
Definition: cxAcquisitionServicePluginActivator.h:31
cx::RegistrationMethodManualImageTransformService
Definition: cxRegistrationMethodManualImageTransformService.h:23
cx::RegistrationMethodManualImageToPatientService
Definition: cxRegistrationMethodManualImageToPatientService.h:27
cxRegistrationMethodManualImageToImageService.h
cx::RegistrationMethodManualPluginActivator::stop
void stop(ctkPluginContext *context)
Definition: cxRegistrationMethodManualPluginActivator.cpp:49
cxRegistrationMethodManualImageToPatientService.h
cxRegistrationMethodManualImageTransformService.h
cx::RegistrationMethodManualPluginActivator::RegistrationMethodManualPluginActivator
RegistrationMethodManualPluginActivator()
Definition: cxRegistrationMethodManualPluginActivator.cpp:26
RegistrationMethodService_iid
#define RegistrationMethodService_iid
Definition: cxRegistrationMethodService.h:21
cx::RegServicesPtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
cxRegistrationMethodManualPatientOrientationService.h
cx::RegistrationMethodManualPluginActivator::~RegistrationMethodManualPluginActivator
~RegistrationMethodManualPluginActivator()
Definition: cxRegistrationMethodManualPluginActivator.cpp:31
cx::RegisteredService
Definition: cxRegisteredService.h:35
cxRegistrationMethodManualPluginActivator.h
cx::RegistrationMethodManualPatientOrientationService
Definition: cxRegistrationMethodManualPatientOrientationService.h:19
cx::RegistrationMethodManualPluginActivator::start
void start(ctkPluginContext *context)
Definition: cxRegistrationMethodManualPluginActivator.cpp:34
cxRegisteredService.h
cx::RegistrationMethodManualImageToImageService
Definition: cxRegistrationMethodManualImageToImageService.h:28