NorMIT-nav  2023.01.05-dev+develop.0da12
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 
83 };
84 }
85 
86 #endif /* CXSHADINGWIDGET_H_ */
cx::ImageRenderPropertiesWidget
Definition: cxShadingWidget.h:40
cx::ShadingWidget::mImage
ImagePtr mImage
Definition: cxShadingWidget.h:81
cxBaseWidget.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxTransferFunctions3DPresets.h
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cxImage.h
cx::ShadingWidget::mInitialized
bool mInitialized
Is TransferFunctionWidget initialized.
Definition: cxShadingWidget.h:78
cxActiveImageProxy.h
cx::ActiveImageProxyPtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
Definition: cxDataInterface.h:29
cx::ShadingWidget::mImagePropertiesWidget
ImageRenderPropertiesWidgetPtr mImagePropertiesWidget
Definition: cxShadingWidget.h:82
cx::ImageRenderPropertiesWidgetPtr
boost::shared_ptr< class ImageRenderPropertiesWidget > ImageRenderPropertiesWidgetPtr
Definition: cxShadingWidget.h:38
cx::ShadingWidget::mLayout
QVBoxLayout * mLayout
Definition: cxShadingWidget.h:75
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cx::ShadingWidget
Definition: cxShadingWidget.h:59
cx::ShadingWidget::mActiveData
ActiveDataPtr mActiveData
Definition: cxShadingWidget.h:79
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
cx::ShadingWidget::mActiveImageProxy
ActiveImageProxyPtr mActiveImageProxy
Definition: cxShadingWidget.h:80
cx::ShadingWidget::mShadingCheckBox
QCheckBox * mShadingCheckBox
Definition: cxShadingWidget.h:76