NorMIT-nav
22.09
An IGT application
cxRegistrationMethodBronchoscopyPluginActivator.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 "
cxRegistrationMethodBronchoscopyPluginActivator.h
"
13
14
#include <QtPlugin>
15
#include <iostream>
16
17
#include "
cxRegistrationMethodBronchoscopyService.h
"
18
#include "
cxRegisteredService.h
"
19
20
namespace
cx
21
{
22
23
RegistrationMethodBronchoscopyPluginActivator::RegistrationMethodBronchoscopyPluginActivator
()
24
{
25
}
26
27
RegistrationMethodBronchoscopyPluginActivator::~RegistrationMethodBronchoscopyPluginActivator
()
28
{}
29
30
void
RegistrationMethodBronchoscopyPluginActivator::start
(ctkPluginContext* context)
31
{
32
RegServicesPtr
services =
RegServices::create
(context);
33
RegistrationMethodBronchoscopyImageToPatientService
* image2patientService =
new
RegistrationMethodBronchoscopyImageToPatientService
(services);
34
RegistrationMethodBronchoscopyImageToImageService
* image2imageService =
new
RegistrationMethodBronchoscopyImageToImageService
(services);
35
36
mRegistrationImageToPatient =
RegisteredServicePtr
(
new
RegisteredService
(context, image2patientService,
RegistrationMethodService_iid
));
37
mRegistrationImageToImage =
RegisteredServicePtr
(
new
RegisteredService
(context, image2imageService,
RegistrationMethodService_iid
));
38
}
39
40
void
RegistrationMethodBronchoscopyPluginActivator::stop
(ctkPluginContext* context)
41
{
42
mRegistrationImageToPatient.reset();
43
mRegistrationImageToImage.reset();
44
Q_UNUSED(context);
45
}
46
47
}
// 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
cxRegistrationMethodBronchoscopyPluginActivator.h
cx::RegistrationMethodBronchoscopyPluginActivator::start
void start(ctkPluginContext *context)
Definition:
cxRegistrationMethodBronchoscopyPluginActivator.cpp:30
cx::RegistrationMethodBronchoscopyPluginActivator::stop
void stop(ctkPluginContext *context)
Definition:
cxRegistrationMethodBronchoscopyPluginActivator.cpp:40
RegistrationMethodService_iid
#define RegistrationMethodService_iid
Definition:
cxRegistrationMethodService.h:21
cx::RegistrationMethodBronchoscopyPluginActivator::RegistrationMethodBronchoscopyPluginActivator
RegistrationMethodBronchoscopyPluginActivator()
Definition:
cxRegistrationMethodBronchoscopyPluginActivator.cpp:23
cx::RegServicesPtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition:
cxRegServices.h:20
cx::RegistrationMethodBronchoscopyImageToPatientService
Definition:
cxRegistrationMethodBronchoscopyService.h:29
cx::RegisteredService
Definition:
cxRegisteredService.h:35
cx::RegistrationMethodBronchoscopyImageToImageService
Definition:
cxRegistrationMethodBronchoscopyService.h:50
cxRegisteredService.h
cx::RegistrationMethodBronchoscopyPluginActivator::~RegistrationMethodBronchoscopyPluginActivator
~RegistrationMethodBronchoscopyPluginActivator()
Definition:
cxRegistrationMethodBronchoscopyPluginActivator.cpp:27
cxRegistrationMethodBronchoscopyService.h
CX
source
plugins
org.custusx.registration.method.bronchoscopy
cxRegistrationMethodBronchoscopyPluginActivator.cpp
Generated on Tue Sep 13 2022 11:06:14 for NorMIT-nav by
1.8.17