source: flair-src/trunk/lib/FlairCore/src/Vector3DSpinBox.h

Last change on this file was 437, checked in by Sanahuja Guillaume, 5 months ago

prepare for graphs buffering

File size: 1.7 KB
RevLine 
[2]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]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
[15]19namespace flair {
20namespace gui {
21class Layout;
[2]22
[15]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,
[437]45 double max, double step, uint16_t decimals = 2,
[167]46 core::Vector3Df default_value = core::Vector3Df(0, 0, 0));
[2]47
[15]48 /*!
49 * \brief Destructor
50 *
51 */
52 ~Vector3DSpinBox();
[2]53
[15]54 /*!
55 * \brief Value
56 *
57 * \return value
58 */
[167]59 core::Vector3Df Value(void) const;
[15]60 // operator core::Vector3D() const;
61private:
62 /*!
63 * \brief XmlEvent from ground station
64 *
65 * Reimplemented from Widget.
66 *
67 */
68 void XmlEvent(void);
[2]69
[199]70 core::Vector3D<double> box_value;
[15]71};
[2]72
73} // end namespace gui
74} // end namespace flair
75
76#endif // VECTOR3DSPINBOX_H
Note: See TracBrowser for help on using the repository browser.