NorMIT-nav  18.04
An IGT application
cxShadingWidget.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  * cxShadingWidget.h
14  *
15  * \date Aug 20, 2010
16  * \author christiana
17  */
18 
19 #ifndef CXSHADINGWIDGET_H_
20 #define CXSHADINGWIDGET_H_
21 
22 #include "cxGuiExport.h"
23 
24 #include <QWidget>
25 #include <QCheckBox>
26 #include <QDomElement>
27 #include "cxImage.h"
29 #include "cxActiveImageProxy.h"
30 #include "cxBaseWidget.h"
31 
32 class QVBoxLayout;
33 class QComboBox;
34 class QStringList;
35 
36 namespace cx
37 {
38 typedef boost::shared_ptr<class ImageRenderPropertiesWidget> ImageRenderPropertiesWidgetPtr;
39 
40 class cxGui_EXPORT ImageRenderPropertiesWidget : public BaseWidget
41 {
42  Q_OBJECT
43 
44 public:
45  ImageRenderPropertiesWidget(QWidget* parent);
46  void imageChanged(ImagePtr image);
47 public slots:
48 private slots:
49  void interpolationTypeChanged(int index);
50 
51 private:
52  QComboBox* mInterpolationType;
53  ImagePtr mImage;
54 };
55 
59 class cxGui_EXPORT ShadingWidget : public BaseWidget
60 {
61  Q_OBJECT
62 
63 public:
64  ShadingWidget(ActiveDataPtr activeData, QWidget* parent, bool connectToActiveImage = true);
65  ~ShadingWidget();
66 
67 public slots:
68  void activeImageChangedSlot();
69  void imageChangedSlot(ImagePtr image);
70  void shadingToggledSlot(bool val);
71 
72 protected:
73  void init(bool connectToActiveImage);
74 
75  QVBoxLayout* mLayout;
76  QCheckBox* mShadingCheckBox;
77 
82  ImageRenderPropertiesWidgetPtr mImagePropertiesWidget;
83 };
84 }
85 
86 #endif /* CXSHADINGWIDGET_H_ */
bool mInitialized
Is TransferFunctionWidget initialized.
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
ActiveDataPtr mActiveData
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
QCheckBox * mShadingCheckBox
boost::shared_ptr< class ImageRenderPropertiesWidget > ImageRenderPropertiesWidgetPtr
QVBoxLayout * mLayout
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
ImageRenderPropertiesWidgetPtr mImagePropertiesWidget
ActiveImageProxyPtr mActiveImageProxy
Namespace for all CustusX production code.