CustusX  2023.01.05-dev+develop.0da12
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:
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_ */
Base class for a group of presets in the system.
Definition: cxPresets.h:41
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class TransferFunctions3DPresets > TransferFunctions3DPresetsPtr
Helper class for xml files used to store ssc/cx data.
Handles transfer function presets.
Namespace for all CustusX production code.