CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxImagePropertiesWidget.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 
14 #include <QComboBox>
15 #include <QVBoxLayout>
16 #include "cxImage.h"
17 #include <QComboBox>
18 #include <QTabWidget>
19 #include <QVBoxLayout>
20 #include <QPushButton>
23 #include "cxImage.h"
25 #include "cxCroppingWidget.h"
26 #include "cxClippingWidget.h"
27 #include "cxShadingWidget.h"
28 #include "cxDataInterface.h"
29 #include "cxDataSelectWidget.h"
31 #include "cxVolumeInfoWidget.h"
32 #include "cxVolumeHelpers.h"
33 #include "cxTypeConversions.h"
34 #include "cxPatientModelService.h"
35 #include "cxVisServices.h"
36 #include "cxOverlayWidget.h"
37 #include "cxColorWidget.h"
38 
39 namespace cx
40 {
41 
43  TabbedWidget(parent, "ImagePropertiesWidget", "Image Properties")
44 {
45  this->setToolTip("Image properties");
46 // this->insertWidgetAtTop(new ActiveVolumeWidget(services->patient(), services->view(), this));
47 
48  bool connectToActiveImage = true;
49 
50  TabbedWidget* props2D = new TabbedWidget(NULL, "2D", "2D");
51  TabbedWidget* props3D = new TabbedWidget(NULL, "3D", "3D");
52 
53  this->addTab(new VolumeInfoWidget(services->patient(), this), "Info");
54  this->addTab(props2D, "2D");
55  this->addTab(props3D, "3D");
56 
57  props3D->addTab(new TransferFunctionWidget(services->patient(), this, connectToActiveImage), QString("Transfer Functions"));
58  props3D->addTab(new ShadingWidget(services->patient()->getActiveData(), this, connectToActiveImage), "Properties");
59  props3D->addTab(new CroppingWidget(services->patient(), services->view(), this), "Crop");
60  props3D->addTab(new ClippingWidget(services, this), "Clip");
61 
62  props2D->addTab(new ColorWidget(services->patient(), this), "Color");
63  props2D->addTab(new OverlayWidget(services->patient(), services->view(), this), "Overlay");
64 
65  mTabWidget->setCurrentWidget(props3D);
66 }
67 
68 
69 }//end namespace cx
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
QTabWidget * mTabWidget
void addTab(BaseWidget *newTab, QString newTabName)
Interface for making widgets with a hierarchy of tabs.
ImagePropertiesWidget(VisServicesPtr services, QWidget *parent)
Widget for displaying various volume information.
Namespace for all CustusX production code.