NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxReconstructOutputValueParamsInterfaces.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 #ifndef CXRECONSTRUCTOUTPUTVALUEPARAMSINTERFACES_H_
12 #define CXRECONSTRUCTOUTPUTVALUEPARAMSINTERFACES_H_
13 
14 #include "org_custusx_usreconstruction_Export.h"
15 
16 #include "cxDoublePropertyBase.h"
17 
18 namespace cx
19 {
20 //typedef boost::shared_ptr<class ReconstructionManager> ReconstructManagerPtr;
21 typedef boost::shared_ptr<class UsReconstructionService> UsReconstructionServicePtr;
22 class OutputVolumeParams;
23 
34 class org_custusx_usreconstruction_EXPORT DoublePropertyOutputValueParams : public DoublePropertyBase
35 {
36  Q_OBJECT
37 public:
40  virtual double getValue() const;
41  virtual bool setValue(double val);
42  virtual void connectValueSignals(bool on) {}
43 
44 private slots:
45 
46 protected:
47  virtual double getValue(OutputVolumeParams* params) const = 0;
48  virtual void setValue(OutputVolumeParams* params, double val) = 0;
49 
51 };
52 
55 class org_custusx_usreconstruction_EXPORT DoublePropertySpacing : public DoublePropertyOutputValueParams
56 {
57  Q_OBJECT
58 public:
61  virtual QString getDisplayName() const { return "Spacing Out"; }
62  virtual QString getHelp() const { return "Output Volume Spacing (mm)"; }
63  DoubleRange getValueRange() const { return DoubleRange(0.001,10,0.001); }
64  virtual int getValueDecimals() const { return 3; }
65 
66 protected:
67  virtual double getValue(OutputVolumeParams* params) const;
68  virtual void setValue(OutputVolumeParams* params, double val);
69 };
70 
73 class org_custusx_usreconstruction_EXPORT DoublePropertyXDim : public DoublePropertyOutputValueParams
74 {
75  Q_OBJECT
76 public:
78  virtual ~DoublePropertyXDim() {}
79  virtual QString getDisplayName() const { return "X"; }
80  virtual QString getHelp() const { return "X dimension"; }
81  DoubleRange getValueRange() const { return DoubleRange(1,1000,1); }
82 protected:
83  virtual double getValue(OutputVolumeParams* params) const;
84  virtual void setValue(OutputVolumeParams* params, double val);
85 };
88 class org_custusx_usreconstruction_EXPORT DoublePropertyYDim : public DoublePropertyOutputValueParams
89 {
90  Q_OBJECT
91 public:
93  virtual ~DoublePropertyYDim() {}
94  virtual QString getDisplayName() const { return "Y"; }
95  virtual QString getHelp() const { return "Y dimension"; }
96  DoubleRange getValueRange() const { return DoubleRange(1,1000,1); }
97 protected:
98  virtual double getValue(OutputVolumeParams* params) const;
99  virtual void setValue(OutputVolumeParams* params, double val);
100 };
103 class org_custusx_usreconstruction_EXPORT DoublePropertyZDim : public DoublePropertyOutputValueParams
104 {
105  Q_OBJECT
106 public:
108  virtual ~DoublePropertyZDim() {}
109  virtual QString getDisplayName() const { return "Z"; }
110  virtual QString getHelp() const { return "Z dimension"; }
111  DoubleRange getValueRange() const { return DoubleRange(1,1000,1); }
112 protected:
113  virtual double getValue(OutputVolumeParams* params) const;
114  virtual void setValue(OutputVolumeParams* params, double val);
115 };
116 
120 } // namespace cx
121 
122 #endif /* CXRECONSTRUCTOUTPUTVALUEPARAMSINTERFACES_H_ */
cx::DoublePropertyZDim::~DoublePropertyZDim
virtual ~DoublePropertyZDim()
Definition: cxReconstructOutputValueParamsInterfaces.h:108
cx::DoublePropertyOutputValueParams::~DoublePropertyOutputValueParams
virtual ~DoublePropertyOutputValueParams()
Definition: cxReconstructOutputValueParamsInterfaces.h:39
cx::DoublePropertySpacing::~DoublePropertySpacing
virtual ~DoublePropertySpacing()
Definition: cxReconstructOutputValueParamsInterfaces.h:60
cx::DoublePropertyXDim::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxReconstructOutputValueParamsInterfaces.h:79
cx::DoublePropertyYDim::getHelp
virtual QString getHelp() const
Definition: cxReconstructOutputValueParamsInterfaces.h:95
cx::DoublePropertyYDim::~DoublePropertyYDim
virtual ~DoublePropertyYDim()
Definition: cxReconstructOutputValueParamsInterfaces.h:93
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::DoublePropertyZDim::getValueRange
DoubleRange getValueRange() const
Definition: cxReconstructOutputValueParamsInterfaces.h:111
cx::UsReconstructionServicePtr
boost::shared_ptr< class UsReconstructionService > UsReconstructionServicePtr
Definition: cxAcquisitionImplService.h:24
cxDoublePropertyBase.h
cx::DoublePropertyOutputValueParams::mReconstructer
UsReconstructionServicePtr mReconstructer
Definition: cxReconstructOutputValueParamsInterfaces.h:50
cx::DoublePropertyXDim::DoublePropertyXDim
DoublePropertyXDim(UsReconstructionServicePtr reconstructer)
Definition: cxReconstructOutputValueParamsInterfaces.h:77
cx::DoublePropertySpacing::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxReconstructOutputValueParamsInterfaces.h:61
cx::DoublePropertySpacing
Definition: cxReconstructOutputValueParamsInterfaces.h:55
cx::DoublePropertyZDim
Definition: cxReconstructOutputValueParamsInterfaces.h:103
cx::DoublePropertyZDim::getHelp
virtual QString getHelp() const
Definition: cxReconstructOutputValueParamsInterfaces.h:110
cx::DoublePropertyXDim::~DoublePropertyXDim
virtual ~DoublePropertyXDim()
Definition: cxReconstructOutputValueParamsInterfaces.h:78
cx::DoublePropertyZDim::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxReconstructOutputValueParamsInterfaces.h:109
cx::DoublePropertySpacing::getValueRange
DoubleRange getValueRange() const
Definition: cxReconstructOutputValueParamsInterfaces.h:63
cx::DoublePropertyOutputValueParams
Definition: cxReconstructOutputValueParamsInterfaces.h:34
cx::DoublePropertyOutputValueParams::connectValueSignals
virtual void connectValueSignals(bool on)
Definition: cxReconstructOutputValueParamsInterfaces.h:42
cx::DoublePropertyXDim::getValueRange
DoubleRange getValueRange() const
Definition: cxReconstructOutputValueParamsInterfaces.h:81
cx::DoublePropertyXDim
Definition: cxReconstructOutputValueParamsInterfaces.h:73
cx::DoublePropertyZDim::DoublePropertyZDim
DoublePropertyZDim(UsReconstructionServicePtr reconstructer)
Definition: cxReconstructOutputValueParamsInterfaces.h:107
cx::DoublePropertyYDim::getValueRange
DoubleRange getValueRange() const
Definition: cxReconstructOutputValueParamsInterfaces.h:96
cx::DoublePropertyYDim::DoublePropertyYDim
DoublePropertyYDim(UsReconstructionServicePtr reconstructer)
Definition: cxReconstructOutputValueParamsInterfaces.h:92
cx::DoublePropertyBase
Definition: cxDoublePropertyBase.h:70
cx::DoublePropertyYDim
Definition: cxReconstructOutputValueParamsInterfaces.h:88
cx::OutputVolumeParams
Helper struct for sending and controlling output volume properties.
Definition: cxReconstructedOutputVolumeParams.h:39
cx::DoublePropertyYDim::getDisplayName
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Definition: cxReconstructOutputValueParamsInterfaces.h:94
cx::DoubleRange
Utility class for describing a bounded numeric range.
Definition: cxDoubleRange.h:32
cx::DoublePropertyXDim::getHelp
virtual QString getHelp() const
Definition: cxReconstructOutputValueParamsInterfaces.h:80
cx::DoublePropertySpacing::DoublePropertySpacing
DoublePropertySpacing(UsReconstructionServicePtr reconstructer)
Definition: cxReconstructOutputValueParamsInterfaces.h:59
cx::DoublePropertySpacing::getHelp
virtual QString getHelp() const
Definition: cxReconstructOutputValueParamsInterfaces.h:62