BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
VectorItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/VectorItem.h
6 //! @brief Defines class VectorItem
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_VECTORITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_VECTORITEM_H
17 
18 #include "Base/Vector/Vectors3D.h"
20 
21 class BA_CORE_API_ VectorItem : public SessionItem {
22 
23 public:
24  static const QString P_X;
25  static const QString P_Y;
26  static const QString P_Z;
27  VectorItem();
28 
29  double x() const;
30  void setX(double value);
31 
32  double y() const;
33  void setY(double value);
34 
35  double z() const;
36  void setZ(double value);
37 
38  void setXYZ(double x_value, double y_value, double z_value);
39 
40  kvector_t getVector() const;
41  void setVector(const kvector_t& vec);
42 
43 private:
44  void updateLabel();
45 };
46 
47 #endif // BORNAGAIN_GUI_COREGUI_MODELS_VECTORITEM_H
Defines class SessionItem.
Defines basic vectors in Z^3, R^3, C^3.
static const QString P_Z
Definition: VectorItem.h:26
static const QString P_Y
Definition: VectorItem.h:25
static const QString P_X
Definition: VectorItem.h:24