CustusX  18.04
An IGT application
cxFilterRouteToTargetPluginActivator.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 
18 #include "cxRegisteredService.h"
19 #include "cxVisServices.h"
20 
21 namespace cx
22 {
23 
25 {
26 }
27 
29 {
30 }
31 
32 void FilterRouteToTargetPluginActivator::start(ctkPluginContext* context)
33 {
34  VisServicesPtr services = VisServices::create(context);
35  RouteToTargetFilter *routeToTargetFilter = new RouteToTargetFilter(services);
36  mRegistration = RegisteredService::create(context, routeToTargetFilter, FilterService_iid);
37 }
38 
39 void FilterRouteToTargetPluginActivator::stop(ctkPluginContext* context)
40 {
41  mRegistration.reset();
42  Q_UNUSED(context);
43 }
44 
45 } // namespace cx
46 
47 
48 
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
static VisServicesPtr create(ctkPluginContext *context)
#define FilterService_iid
Definition: cxFilter.h:24
static RegisteredServicePtr create(ctkPluginContext *context, QString iid)
Namespace for all CustusX production code.