NorMIT-nav  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_
cx::DoublePropertyShadingBase
Definition: cxShadingParamsInterfaces.h:32
cx::DoublePropertyShadingSpecular::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxShadingParamsInterfaces.h:83
cx::DoublePropertyShadingDiffuse::~DoublePropertyShadingDiffuse
virtual ~DoublePropertyShadingDiffuse()
Definition: cxShadingParamsInterfaces.h:68
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxDoubleRange.h
cxForwardDeclarations.h
cx::DoublePropertyShadingDiffuse::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxShadingParamsInterfaces.h:69
cx::DoublePropertyShadingBase::mActiveData
ActiveDataPtr mActiveData
Definition: cxShadingParamsInterfaces.h:44
cx::DoublePropertyShadingSpecular::~DoublePropertyShadingSpecular
virtual ~DoublePropertyShadingSpecular()
Definition: cxShadingParamsInterfaces.h:82
cx::DoublePropertyShadingDiffuse
Definition: cxShadingParamsInterfaces.h:63
cxActiveImageProxy.h
cx::DoublePropertyShadingAmbient
Definition: cxShadingParamsInterfaces.h:49
cx::DoublePropertyShadingAmbient::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxShadingParamsInterfaces.h:55
cx::DoublePropertyShadingDiffuse::getValueRange
DoubleRange getValueRange() const
Definition: cxShadingParamsInterfaces.h:70
cx::DoublePropertyShadingBase::connectValueSignals
virtual void connectValueSignals(bool on)
Definition: cxShadingParamsInterfaces.h:38
cx::DoublePropertyShadingBase::~DoublePropertyShadingBase
virtual ~DoublePropertyShadingBase()
Definition: cxShadingParamsInterfaces.h:37
cx::DoublePropertyShadingAmbient::getValueRange
DoubleRange getValueRange() const
Definition: cxShadingParamsInterfaces.h:56
cx::ActiveImageProxyPtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
Definition: cxDataInterface.h:29
cx::DoublePropertyShadingBase::mActiveImageProxy
ActiveImageProxyPtr mActiveImageProxy
Definition: cxShadingParamsInterfaces.h:43
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cx::DoublePropertyShadingAmbient::~DoublePropertyShadingAmbient
virtual ~DoublePropertyShadingAmbient()
Definition: cxShadingParamsInterfaces.h:54
cx::DoublePropertyShadingSpecularPower::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxShadingParamsInterfaces.h:97
cx::DoublePropertyShadingSpecular
Definition: cxShadingParamsInterfaces.h:77
cx::DoublePropertyBase
Definition: cxDoublePropertyBase.h:70
cx::DoublePropertyShadingSpecular::getValueRange
DoubleRange getValueRange() const
Definition: cxShadingParamsInterfaces.h:84
cx::DoublePropertyShadingSpecularPower::~DoublePropertyShadingSpecularPower
virtual ~DoublePropertyShadingSpecularPower()
Definition: cxShadingParamsInterfaces.h:96
cxDoubleWidgets.h
cx::DoublePropertyShadingBase::mImage
ImagePtr mImage
Definition: cxShadingParamsInterfaces.h:42
cx::DoublePropertyShadingSpecularPower
Definition: cxShadingParamsInterfaces.h:91
cx::DoublePropertyShadingSpecularPower::getValueRange
DoubleRange getValueRange() const
Definition: cxShadingParamsInterfaces.h:98
cx::DoubleRange
Utility class for describing a bounded numeric range.
Definition: cxDoubleRange.h:32
cx::ActiveDataPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Definition: cxColorWidget.h:21