Flair
Framework Libre Air
Vector3DSpinBox.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef VECTOR3DSPINBOX_H
14 #define VECTOR3DSPINBOX_H
15 
16 #include <Box.h>
17 #include <Vector3D.h>
18 
19 namespace flair {
20 namespace gui {
21 class Layout;
22 
28 class Vector3DSpinBox : public Box {
29 public:
44  Vector3DSpinBox(const LayoutPosition *position, std::string name, double min,
45  double max, double step, int decimals = 2,
46  core::Vector3Df default_value = core::Vector3Df(0, 0, 0));
47 
53 
59  core::Vector3Df Value(void) const;
60  // operator core::Vector3D() const;
61 private:
68  void XmlEvent(void);
69 
70  core::Vector3D<double> box_value;
71 };
72 
73 } // end namespace gui
74 } // end namespace flair
75 
76 #endif // VECTOR3DSPINBOX_H
namespace of the flair Framework
Definition: Ahrs.h:19
core::Vector3Df Value(void) const
Value.
Class defining a 3D vector.
Abstract class to display a box on the ground station.
Definition: Box.h:35
Vector3DSpinBox(const LayoutPosition *position, std::string name, double min, double max, double step, int decimals=2, core::Vector3Df default_value=core::Vector3Df(0, 0, 0))
Constructor.
Class displaying 3 QDoubleSpinBox for x,y,z on the ground station.
Definition: Vector3DSpinBox.h:28
~Vector3DSpinBox()
Destructor.
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
Abstract class to display a box on the ground station.