CustusX  22.04
An IGT application
cxCalibrationGUIExtenderService.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 #include "ctkPluginContext.h"
15 #include "cxVisServices.h"
17 
18 namespace cx
19 {
20 
22  mContext(context)
23 {
24 }
25 
26 std::vector<GUIExtenderService::CategorizedWidget> CalibrationGUIExtenderService::createWidgets() const
27 {
28  VisServicesPtr services = VisServices::create(mContext);
29  AcquisitionServicePtr acquisitionService(new AcquisitionServiceProxy(mContext));
30 
31  std::vector<CategorizedWidget> retval;
32 
34  new CalibrationMethodsWidget(services, acquisitionService, NULL, "calibration_methods_widget", "Calibration Methods"),
35  "Algorithms"));
36 
37  return retval;
38 }
39 
40 
41 } /* namespace cx */
boost::shared_ptr< class AcquisitionService > AcquisitionServicePtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
static VisServicesPtr create(ctkPluginContext *context)
std::vector< CategorizedWidget > createWidgets() const
Always provides an AcqusitionService.
CalibrationGUIExtenderService(ctkPluginContext *context)
Namespace for all CustusX production code.