CustusX
2023.01.05-dev+develop.0da12
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
"
13
#include "
cxTransferFunctionPresetWidget.h
"
14
#include "
cxTransferFunction2DColorWidget.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::TransferFunctionPresetWidget
Definition:
cxTransferFunctionPresetWidget.h:32
cxTransferFunction2DColorWidget.h
cxColorWidget.h
cxTransferFunctionPresetWidget.h
cx::TransferFunction2DColorWidget
Definition:
cxTransferFunction2DColorWidget.h:37
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition:
cxLogicManager.h:25
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
cxPatientModelService.h
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
gui
dataWidgets
cxColorWidget.cpp
Generated on Thu Jan 5 2023 00:50:38 for CustusX by
1.8.11