Fraxinus  18.10
An IGT application
cxTransferFunctionPresetWidget.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 #ifndef CXTRANSFERFUNCTIONPRESETWIDGET_H_
13 #define CXTRANSFERFUNCTIONPRESETWIDGET_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include "cxPresetWidget.h"
18 
20 #include "cxDataInterface.h"
21 
22 class QComboBox;
23 
24 namespace cx {
25 
26 /*
27  * cxTransferFunctionPresetWidget.h
28  *
29  * \date Mar 8, 2013
30  * \author Janne Beate Bakeng, SINTEF
31  */
32 class cxGui_EXPORT TransferFunctionPresetWidget: public PresetWidget
33 {
34 
35  Q_OBJECT
36 
37 public:
38  TransferFunctionPresetWidget(PatientModelServicePtr patientModelService, QWidget* parent, bool is3D);
40 
41 public slots:
42  virtual void resetSlot();
43  virtual void saveSlot();
44  virtual void deleteSlot();
45  virtual void populatePresetListSlot();
46 
47  void presetsBoxChangedSlot(const QString& presetName);
48  void toggleSlot();
49 
50 private:
51  bool use2D() const;
52  bool use3D() const;
53  void updateToggles();
54 
55  QAction* mToggleAction;
56  bool mIs3D;
57  bool mApplyToAll;
58  ActiveImageProxyPtr mActiveImageProxy;
59  ActiveDataPtr mActiveData;
60 
61 };
62 
63 } //namespace cx
64 
65 #endif /* CXTRANSFERFUNCTIONPRESETWIDGET_H_ */
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
Base class for preset handling. Takes care of making a uniform preset system. Contains a preset selec...
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Namespace for all CustusX production code.