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
"
19
#include "
GUI/coregui/Models/SessionItem.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
SessionItem.h
Defines class SessionItem.
Vectors3D.h
Defines basic vectors in Z^3, R^3, C^3.
BasicVector3D< double >
SessionItem
Definition:
SessionItem.h:33
VectorItem
Definition:
VectorItem.h:21
VectorItem::P_Z
static const QString P_Z
Definition:
VectorItem.h:26
VectorItem::P_Y
static const QString P_Y
Definition:
VectorItem.h:25
VectorItem::P_X
static const QString P_X
Definition:
VectorItem.h:24
GUI
coregui
Models
VectorItem.h
Generated by
1.9.1