CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxTrackingShapeGUIExtenderService.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"
14 #include "cxShapeSensorWidget.h"
15 #include "cxVisServices.h"
16 
17 namespace cx
18 {
19 
21  mContext(context)
22 {
23 }
24 
25 std::vector<GUIExtenderService::CategorizedWidget> TrackingShapeGUIExtenderService::createWidgets() const
26 {
27  std::vector<CategorizedWidget> retval;
28 
29  VisServicesPtr services = VisServices::create(mContext);
30 
32  new ShapeSensorWidget(services),
33  "Utility"));
34 
35  return retval;
36 }
37 
38 
39 } /* namespace cx */
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
static VisServicesPtr create(ctkPluginContext *context)
std::vector< CategorizedWidget > createWidgets() const
Namespace for all CustusX production code.