NorMIT-nav  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
cxVolumeHelpers.h
cxTransferFunctionWidget.h
cx::TabbedWidget::addTab
void addTab(BaseWidget *newTab, QString newTabName)
Definition: cxTabbedWidget.cpp:37
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxImage.h
cxVolumeInfoWidget.h
cxClippingWidget.h
cxImagePropertiesWidget.h
cxOverlayWidget.h
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
cxLabeledComboBoxWidget.h
cxColorWidget.h
cx::TransferFunctionWidget
Definition: cxTransferFunctionWidget.h:168
cx::TabbedWidget
Interface for making widgets with a hierarchy of tabs.
Definition: cxTabbedWidget.h:34
cx::ClippingWidget
Definition: cxClippingWidget.h:39
cx::TabbedWidget::mTabWidget
QTabWidget * mTabWidget
Definition: cxTabbedWidget.h:49
cxDataInterface.h
cxCroppingWidget.h
cxTypeConversions.h
cxPatientModelService.h
cx::ShadingWidget
Definition: cxShadingWidget.h:59
cx::ImagePropertiesWidget::ImagePropertiesWidget
ImagePropertiesWidget(VisServicesPtr services, QWidget *parent)
Definition: cxImagePropertiesWidget.cpp:42
cx::ColorWidget
Definition: cxColorWidget.h:35
cxDataSelectWidget.h
cxLabeledLineEditWidget.h
cx::VolumeInfoWidget
Widget for displaying various volume information.
Definition: cxVolumeInfoWidget.h:34
cxSelectDataStringProperty.h
cxShadingWidget.h
cx::OverlayWidget
Definition: cxOverlayWidget.h:32
cx::CroppingWidget
Definition: cxCroppingWidget.h:41
cxVisServices.h