NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxColorWidget.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 "cxColorWidget.h"
15 #include "cxPatientModelService.h"
16 
17 namespace cx {
18 
19 ColorWidget::ColorWidget(PatientModelServicePtr patientModelService, QWidget* parent) :
20  BaseWidget(parent, "color_widget", "Color")
21 {
22  this->setToolTip("Set 2D image properties");
23  QVBoxLayout* layout = new QVBoxLayout(this);
24  layout->setMargin(0);
25  layout->addWidget(new TransferFunction2DColorWidget(patientModelService->getActiveData(), this), 0);
26  layout->addStretch(1);
27  layout->addWidget(new TransferFunctionPresetWidget(patientModelService, this, false), 0);
28 }
29 
30 } /* namespace cx */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cx::ColorWidget::ColorWidget
ColorWidget(PatientModelServicePtr patientModelService, QWidget *parent)
Definition: cxColorWidget.cpp:19
cxColorWidget.h
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cxPatientModelService.h
cxTransferFunction2DColorWidget.h
cxTransferFunctionPresetWidget.h
cx::TransferFunction2DColorWidget
Definition: cxTransferFunction2DColorWidget.h:37
cx::TransferFunctionPresetWidget
Definition: cxTransferFunctionPresetWidget.h:32