Fraxinus  18.10
An IGT application
cxAcquisitionPlugin.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 #include "cxAcquisitionPlugin.h"
12 
13 #include <vector>
14 #include <QDomNode>
15 #include <QDateTime>
16 #include <QStringList>
17 #include <ctkPluginContext.h>
18 #include "cxTime.h"
19 #include "cxAcquisitionData.h"
20 
21 #include "cxUSAcqusitionWidget.h"
22 
23 #include "cxPatientModelService.h"
26 #include "cxVisServices.h"
27 
28 namespace cx
29 {
30 
31 AcquisitionPlugin::AcquisitionPlugin(ctkPluginContext *context) :
32  mUsReconstructionService(new UsReconstructionServiceProxy(context)),
33  mAcquisitionService(new AcquisitionServiceProxy(context))
34 {
35  mServices = VisServices::create(context);
36 }
37 
39 {
40 
41 }
42 
43 std::vector<GUIExtenderService::CategorizedWidget> AcquisitionPlugin::createWidgets() const
44 {
45  std::vector<CategorizedWidget> retval;
46 
47  retval.push_back(GUIExtenderService::CategorizedWidget(new USAcqusitionWidget(mAcquisitionService, mServices, mUsReconstructionService, NULL), "Utility"));
48 
49  return retval;
50 
51 }
52 
53 }
virtual std::vector< CategorizedWidget > createWidgets() const
static VisServicesPtr create(ctkPluginContext *context)
AcquisitionPlugin(ctkPluginContext *context)
Always provides an AcqusitionService.
Namespace for all CustusX production code.