NorMIT-nav  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_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::Vector3DComponentProperty::mBase
Vector3DPropertyBasePtr mBase
Definition: cxVector3DComponentProperty.h:51
cxDoublePropertyBase.h
cx::Vector3DComponentProperty::~Vector3DComponentProperty
virtual ~Vector3DComponentProperty()
Definition: cxVector3DComponentProperty.h:37
cx::Vector3DComponentProperty::mHelp
QString mHelp
Definition: cxVector3DComponentProperty.h:54
cxVector3DPropertyBase.h
cx::Vector3DPropertyBasePtr
boost::shared_ptr< Vector3DPropertyBase > Vector3DPropertyBasePtr
Definition: cxVector3DPropertyBase.h:84
cx::Vector3DComponentProperty::mIndex
int mIndex
Definition: cxVector3DComponentProperty.h:52
cx::Vector3DComponentProperty::mName
QString mName
Definition: cxVector3DComponentProperty.h:53
cx::DoublePropertyBase
Definition: cxDoublePropertyBase.h:70
cx::Vector3DComponentProperty
Definition: cxVector3DComponentProperty.h:32
cx::DoubleRange
Utility class for describing a bounded numeric range.
Definition: cxDoubleRange.h:32
cx::Vector3DComponentPropertyPtr
boost::shared_ptr< Vector3DComponentProperty > Vector3DComponentPropertyPtr
Definition: cxVector3DComponentProperty.h:56