NorMIT-nav  22.09
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 }
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::DoublePropertyActiveToolOffset::create
static boost::shared_ptr< DoublePropertyActiveToolOffset > create(ActiveToolProxyPtr activeTool)
Definition: cxDataInterface.h:39
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cx::NavigationWidget::mCameraGroupBox
QGroupBox * mCameraGroupBox
widget to put all camera specific settings
Definition: cxNavigationWidget.h:49
cxHelperWidgets.h
cxDataInterface.h
cx::NavigationWidget::mVerticalLayout
QVBoxLayout * mVerticalLayout
vertical layout is used
Definition: cxNavigationWidget.h:46
cxViewService.h
cx::TrackingServicePtr
boost::shared_ptr< class TrackingService > TrackingServicePtr
Definition: cxToolFilterWidget.h:27
cx::ViewServicePtr
boost::shared_ptr< class ViewService > ViewServicePtr
Definition: cxLogicManager.h:28
cxNavigationWidget.h
cxActiveToolProxy.h
cxDoubleWidgets.h
cx::DoublePropertyBasePtr
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
Definition: cxIGTLinkStreamerService.h:21
cx::SliderGroupWidget
Composite widget for scalar data manipulation.
Definition: cxDoubleWidgets.h:173
cx::ActiveToolProxy::New
static ActiveToolProxyPtr New(TrackingServicePtr trackingService)
Definition: cxActiveToolProxy.h:45
cxTrackingService.h
cx::NavigationWidget::~NavigationWidget
~NavigationWidget()
Definition: cxNavigationWidget.cpp:54
cx::NavigationWidget::mCameraGroupLayout
QVBoxLayout * mCameraGroupLayout
layout for the cameragroupbox
Definition: cxNavigationWidget.h:50
cx::NavigationWidget::NavigationWidget
NavigationWidget(ViewServicePtr viewService, TrackingServicePtr trackingService, QWidget *parent)
Definition: cxNavigationWidget.cpp:30