CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxShadingParamsInterfaces.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 CXSHADINGPARAMSINTERFACES_H_
13 #define CXSHADINGPARAMSINTERFACES_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include "cxDoubleRange.h"
18 #include "cxDoubleWidgets.h"
19 #include "cxForwardDeclarations.h"
20 #include "cxActiveImageProxy.h"
21 
22 namespace cx
23 {
32 class cxGui_EXPORT DoublePropertyShadingBase : public DoublePropertyBase
33 {
34  Q_OBJECT
35 public:
38  virtual void connectValueSignals(bool on) {}
39 private slots:
40  void activeImageChanged();
41 protected:
45 };
46 
50 {
51  Q_OBJECT
52 public:
55  virtual QString getDisplayName() const { return "Ambient"; }
56  DoubleRange getValueRange() const { return DoubleRange(0.0, 1.0, 0.01); }
57  virtual double getValue() const;
58  virtual bool setValue(double val);
59 };
60 
64 {
65  Q_OBJECT
66 public:
69  virtual QString getDisplayName() const { return "Diffuse"; }
70  DoubleRange getValueRange() const { return DoubleRange(0.0, 1.0, 0.01); }
71  virtual double getValue() const;
72  virtual bool setValue(double val);
73 };
74 
78 {
79  Q_OBJECT
80 public:
83  virtual QString getDisplayName() const { return "Specular"; }
84  DoubleRange getValueRange() const { return DoubleRange(0.0, 4.0, 0.01); }
85  virtual double getValue() const;
86  virtual bool setValue(double val);
87 };
88 
92 {
93  Q_OBJECT
94 public:
97  virtual QString getDisplayName() const { return "Specular Power"; }
98  DoubleRange getValueRange() const { return DoubleRange(0.0, 50.0, 0.01); }
99  virtual double getValue() const;
100  virtual bool setValue(double val);
101 };
102 
106 }// namespace cx
107 #endif //CXSHADINGPARAMSINTERFACES_H_
Utility class for describing a bounded numeric range.
Definition: cxDoubleRange.h:32
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Namespace for all CustusX production code.