NorMIT-nav
22.09
An IGT application
cxTransferFunctions3DPresets.h
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
13
#ifndef CXTRANSFERFUNCTIONS3DPRESETS_H_
14
#define CXTRANSFERFUNCTIONS3DPRESETS_H_
15
16
#include "cxResourceExport.h"
17
#include "
cxPrecompiledHeader.h
"
18
19
#include <QDomElement>
20
#include "
cxPresets.h
"
21
#include "
cxImage.h
"
22
#include "
cxXmlOptionItem.h
"
23
24
class
QString;
25
class
QStringList;
26
class
QDomDocument;
27
28
namespace
cx
29
{
30
31
typedef
boost::shared_ptr<class TransferFunctions3DPresets>
TransferFunctions3DPresetsPtr
;
32
42
class
cxResource_EXPORT
TransferFunctions3DPresets
:
public
Presets
43
{
44
Q_OBJECT
45
public
:
46
TransferFunctions3DPresets
(
XmlOptionFile
presetFile,
XmlOptionFile
customFile);
47
virtual
~TransferFunctions3DPresets
(){};
48
49
virtual
void
save(QString name,
ImagePtr
image,
bool
_2D=
true
,
bool
_3D=
true
);
50
void
load(QString name,
ImagePtr
image,
bool
_2D=
true
,
bool
_3D=
true
);
51
52
void
save2D(QString name,
ImagePtr
image);
53
void
save3D(QString name,
ImagePtr
image);
54
void
load2D(QString name,
ImagePtr
image);
55
void
load3D(QString name,
ImagePtr
image);
56
57
void
deletePresetData(QString name,
bool
_2D=
true
,
bool
_3D=
true
);
58
protected
:
59
virtual
QStringList generatePresetList(IMAGE_MODALITY modality);
60
61
private
:
62
};
63
64
}
//namespace cx
65
66
#endif
/* CXTRANSFERFUNCTIONS3DPRESETS_H_ */
cx::XmlOptionFile
Helper class for xml files used to store ssc/cx data.
Definition:
cxXmlOptionItem.h:78
cxPresets.h
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cxPrecompiledHeader.h
cxImage.h
cxXmlOptionItem.h
cx::TransferFunctions3DPresets
Handles transfer function presets.
Definition:
cxTransferFunctions3DPresets.h:42
cx::TransferFunctions3DPresetsPtr
boost::shared_ptr< class TransferFunctions3DPresets > TransferFunctions3DPresetsPtr
Definition:
cxTransferFunctions3DPresets.h:31
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition:
cxDicomWidget.h:27
cx::TransferFunctions3DPresets::~TransferFunctions3DPresets
virtual ~TransferFunctions3DPresets()
Definition:
cxTransferFunctions3DPresets.h:47
cx::Presets
Base class for a group of presets in the system.
Definition:
cxPresets.h:41
CX
source
resource
core
Data
cxTransferFunctions3DPresets.h
Generated on Tue Sep 13 2022 11:06:15 for NorMIT-nav by
1.8.17