CustusX  18.04
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 */
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
ColorWidget(PatientModelServicePtr patientModelService, QWidget *parent)
Namespace for all CustusX production code.