CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxSlicePropertiesWidget.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 =========================================================================*/
12 
13 #include "cxDataInterface.h"
14 #include "cxVolumeInfoWidget.h"
16 #include "cxDataSelectWidget.h"
17 #include "cxOverlayWidget.h"
18 #include "cxColorWidget.h"
21 #include "cxPatientModelService.h"
22 
23 namespace cx
24 {
25 
26 SlicePropertiesWidget::SlicePropertiesWidget(PatientModelServicePtr patientModelService, ViewServicePtr viewService, QWidget* parent) :
27  TabbedWidget(parent, "slice_properties_widget", "Slice Properties")
28 {
29  this->setToolTip("2D Image properties");
30  StringPropertyActiveDataPtr activeDataProperty = StringPropertyActiveData::New(patientModelService, "image|trackedStream");
31  this->insertWidgetAtTop(new DataSelectWidget(viewService, patientModelService, this, activeDataProperty));
32  this->addTab(new ColorWidget(patientModelService, this), "Color");
33  this->addTab(new OverlayWidget(patientModelService, viewService, this), "Overlay");
34 // this->addTab(new VolumeInfoWidget(patientModelService, this), "Info");//Not neccesary as this is part of Volume Properties?
35 }
36 
38 {}
39 
40 
41 }//end namespace cx
boost::shared_ptr< class ViewService > ViewServicePtr
void insertWidgetAtTop(QWidget *newWidget)
void addTab(BaseWidget *newTab, QString newTabName)
Interface for making widgets with a hierarchy of tabs.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
static StringPropertyActiveDataPtr New(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
boost::shared_ptr< class StringPropertyActiveData > StringPropertyActiveDataPtr
Namespace for all CustusX production code.