CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxNavigationWidget.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 "cxNavigationWidget.h"
13 
14 #include <QGroupBox>
15 #include <QRadioButton>
16 #include <QVBoxLayout>
17 #include <QLabel>
18 #include <QSlider>
19 #include <QToolBar>
20 
21 #include "cxTrackingService.h"
22 #include "cxDoubleWidgets.h"
23 #include "cxDataInterface.h"
24 #include "cxHelperWidgets.h"
25 #include "cxViewService.h"
26 #include "cxActiveToolProxy.h"
27 
28 namespace cx
29 {
30 NavigationWidget::NavigationWidget(ViewServicePtr viewService, TrackingServicePtr trackingService, QWidget* parent) :
31  BaseWidget(parent, "navigation_widget", "Navigation Properties"),
32  mVerticalLayout(new QVBoxLayout(this)),
33  mCameraGroupBox(new QGroupBox(tr("Camera Style"), this)),
34  mCameraGroupLayout(new QVBoxLayout())
35 {
36  this->setToolTip("Camera follow style");
37  //camera setttings
39 
40  QToolBar* toolBar = new QToolBar(this);
41  mCameraGroupLayout->addWidget(toolBar);
42  toolBar->addActions(viewService->getInteractorStyleActionGroup()->actions());
43 
45  QWidget* toolOffsetWidget = new SliderGroupWidget(this, offset);
46 
47  //layout
48  this->setLayout(mVerticalLayout);
49  mVerticalLayout->addWidget(mCameraGroupBox);
50  mVerticalLayout->addWidget(toolOffsetWidget);
51  mVerticalLayout->addStretch();
52 }
53 
55 {}
56 
57 
58 }
Composite widget for scalar data manipulation.
QVBoxLayout * mVerticalLayout
vertical layout is used
boost::shared_ptr< class TrackingService > TrackingServicePtr
boost::shared_ptr< class ViewService > ViewServicePtr
NavigationWidget(ViewServicePtr viewService, TrackingServicePtr trackingService, QWidget *parent)
static ActiveToolProxyPtr New(TrackingServicePtr trackingService)
QVBoxLayout * mCameraGroupLayout
layout for the cameragroupbox
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
QGroupBox * mCameraGroupBox
widget to put all camera specific settings
static boost::shared_ptr< DoublePropertyActiveToolOffset > create(ActiveToolProxyPtr activeTool)
Namespace for all CustusX production code.