source: flair-dev/trunk/include/FlairCore/Vector3DSpinBox.h@ 2

Last change on this file since 2 was 2, checked in by Sanahuja Guillaume, 8 years ago

initial commit flaircore

File size: 2.0 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 { namespace gui {
20 class Layout;
21
22 /*! \class Vector3DSpinBox
23 *
24 * \brief Class displaying 3 QDoubleSpinBox for x,y,z on the ground station
25 *
26 */
27 class Vector3DSpinBox: public Box {
28 public:
29 /*!
30 * \brief Constructor
31 *
32 * Construct a Vector3DSpinBox at given position. \n
33 * Each DoubleSpinBox is saturated to min and max values.
34 *
35 * \param position position to display the Vector3DSpinBox
36 * \param name name
37 * \param min minimum value
38 * \param max maximum value
39 * \param step step
40 * \param decimals number of decimals
41 * \param default_value default value if not in the xml config file
42 */
43 Vector3DSpinBox(const LayoutPosition* position,std::string name,double min,double max,double step,int decimals=2,core::Vector3D default_value=core::Vector3D(0,0,0));
44
45 /*!
46 * \brief Destructor
47 *
48 */
49 ~Vector3DSpinBox();
50
51 /*!
52 * \brief Value
53 *
54 * \return value
55 */
56 core::Vector3D Value(void) const;
57 //operator core::Vector3D() const;
58 private:
59 /*!
60 * \brief XmlEvent from ground station
61 *
62 * Reimplemented from Widget.
63 *
64 */
65 void XmlEvent(void);
66
67 core::Vector3D box_value;
68 };
69
70} // end namespace gui
71} // end namespace flair
72
73#endif // VECTOR3DSPINBOX_H
Note: See TracBrowser for help on using the repository browser.