CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxVector3DComponentProperty.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 CXVECTOR3DCOMPONENTPROPERTY_H_
13 #define CXVECTOR3DCOMPONENTPROPERTY_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxDoublePropertyBase.h"
18 #include "cxVector3DPropertyBase.h"
19 
20 namespace cx
21 {
32 class cxResource_EXPORT Vector3DComponentProperty : public DoublePropertyBase
33 {
34  Q_OBJECT
35 public:
36  Vector3DComponentProperty(Vector3DPropertyBasePtr base, int index, QString name, QString help);
38 
39 public: // basic methods
40  virtual QString getDisplayName() const;
41  virtual bool setValue(double value);
42  virtual double getValue() const;
43 
44 public: // optional methods
45  virtual QString getHelp() const;
46  virtual DoubleRange getValueRange() const;
47  virtual double convertInternal2Display(double internal);
48  virtual double convertDisplay2Internal(double display);
49  virtual int getValueDecimals() const;
50 
52  int mIndex;
53  QString mName;
54  QString mHelp;
55 };
56 typedef boost::shared_ptr<Vector3DComponentProperty> Vector3DComponentPropertyPtr;
57 
58 
62 }
63 
64 #endif /* CXVECTOR3DCOMPONENTPROPERTY_H_ */
Utility class for describing a bounded numeric range.
Definition: cxDoubleRange.h:32
boost::shared_ptr< Vector3DPropertyBase > Vector3DPropertyBasePtr
boost::shared_ptr< Vector3DComponentProperty > Vector3DComponentPropertyPtr
Namespace for all CustusX production code.