Fraxinus  22.04-rc3
An IGT application
cxVideoPluginActivator.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 "cxVideoPluginActivator.h"
13 
14 #include <QtPlugin>
15 #include <iostream>
16 
17 #include "cxVideoImplService.h"
18 #include "cxRegisteredService.h"
22 
23 namespace cx
24 {
25 
27 {
28 }
29 
31 {
32 }
33 
34 void VideoPluginActivator::start(ctkPluginContext* context)
35 {
36  mRegistration = RegisteredService::create<VideoImplService>(context, VideoService_iid);
37  // the first added streamer will be the default selected
38  mOpenCVStreamer = RegisteredService::create<OpenCVStreamerService>(context, StreamerService_iid);
39  mIGTLinkStreamer = RegisteredService::create<IGTLinkStreamerService>(context, StreamerService_iid);
40  mImageFileStreamer = RegisteredService::create<ImageFileStreamerService>(context, StreamerService_iid);
41 }
42 
43 void VideoPluginActivator::stop(ctkPluginContext* context)
44 {
45  mIGTLinkStreamer.reset();
46  mRegistration.reset();
47  mOpenCVStreamer.reset();
48  mImageFileStreamer.reset();
49  Q_UNUSED(context);
50 }
51 
52 } // namespace cx
void stop(ctkPluginContext *context)
void start(ctkPluginContext *context)
#define StreamerService_iid
#define VideoService_iid
Namespace for all CustusX production code.