source: flair-src/branches/sanscv/lib/FlairCore/src/Vector3DSpinBox.h

Last change on this file was 324, checked in by Sanahuja Guillaume, 3 years ago

removing opencv dependency

File size: 1.7 KB
Line 
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}
5/*!
6 * \file Vector3DSpinBox.h
7 * \brief Class displaying 3 QDoubleSpinBox for x,y,z on the ground station
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2011/10/07
10 * \version 4.0
11 */
12
13#ifndef VECTOR3DSPINBOX_H
14#define VECTOR3DSPINBOX_H
15
16#include <Box.h>
17#include <Vector3D.h>
18
19namespace flair {
20namespace gui {
21class Layout;
22
23/*! \class Vector3DSpinBox
24*
25* \brief Class displaying 3 QDoubleSpinBox for x,y,z on the ground station
26*
27*/
28class Vector3DSpinBox : public Box {
29public:
30 /*!
31 * \brief Constructor
32 *
33 * Construct a Vector3DSpinBox at given position. \n
34 * Each DoubleSpinBox is saturated to min and max values.
35 *
36 * \param position position to display the Vector3DSpinBox
37 * \param name name
38 * \param min minimum value
39 * \param max maximum value
40 * \param step step
41 * \param decimals number of decimals
42 * \param default_value default value if not in the xml config file
43 */
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
48 /*!
49 * \brief Destructor
50 *
51 */
52 ~Vector3DSpinBox();
53
54 /*!
55 * \brief Value
56 *
57 * \return value
58 */
59 core::Vector3Df Value(void) const;
60 // operator core::Vector3D() const;
61private:
62 /*!
63 * \brief XmlEvent from ground station
64 *
65 * Reimplemented from Widget.
66 *
67 */
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
Note: See TracBrowser for help on using the repository browser.