Flair
Framework Libre Air
|
Class displaying 3 QDoubleSpinBox for x,y,z on the ground station. More...
#include <Vector3DSpinBox.h>
Public Member Functions | |
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. More... | |
~Vector3DSpinBox () | |
Destructor. More... | |
core::Vector3Df | Value (void) const |
Value. More... | |
Public Member Functions inherited from flair::gui::Box | |
Box (const LayoutPosition *position, std::string name, std::string type) | |
Constructor. More... | |
~Box () | |
Destructor. More... | |
bool | ValueChanged (void) |
Has the value changed since last call? More... | |
Public Member Functions inherited from flair::gui::Widget | |
Widget (const Widget *parent, std::string name, std::string type) | |
Constructor. More... | |
virtual | ~Widget () |
Destructor. More... | |
void | setEnabled (bool status) |
Set enabled. More... | |
bool | isEnabled (void) const |
Is enabled? More... | |
Public Member Functions inherited from flair::core::Object | |
Object (const Object *parent=NULL, std::string name="", std::string type="") | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
std::string | ObjectName (void) const |
Name. More... | |
std::string | ObjectType (void) const |
Type. More... | |
const Object * | Parent (void) const |
Parent. More... | |
std::vector< const Object * > * | TypeChilds (void) const |
Childs of the same type. More... | |
std::vector< const Object * > * | Childs (void) const |
Childs. More... | |
void | Information (const char *function, int line, const char *format,...) const |
Formatted information. More... | |
void | Warning (const char *function, const char *format,...) const |
Formatted warning. More... | |
void | Error (const char *function, const char *format,...) const |
Formatted error. More... | |
bool | ErrorOccured (bool recursive=true) const |
Has an errror occured? More... | |
Additional Inherited Members | |
Public Types inherited from flair::core::Object | |
enum | color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 } |
Protected Member Functions inherited from flair::gui::Box | |
void | SetValueChanged (void) |
Set the value changed flag. More... | |
void | GetMutex (void) const |
Get Mutex. More... | |
void | ReleaseMutex (void) const |
Release Mutex. More... | |
Protected Member Functions inherited from flair::gui::Widget | |
template<typename T > | |
void | SetPersistentXmlProp (std::string prop, T value) |
Set a persistent xml property. More... | |
template<typename T > | |
bool | GetPersistentXmlProp (std::string prop, T &value) |
Get a persistent xml property. More... | |
template<typename T > | |
void | SetVolatileXmlProp (std::string prop, T value, xmlNodePtr node=NULL) |
Set a volatile xml property. More... | |
void | SendXml (void) |
Send xml. More... | |
void | UnsetPersistentXmlProp (std::string prop) |
Unset a persistent xml property. More... | |
Class displaying 3 QDoubleSpinBox for x,y,z on the ground station.
flair::gui::Vector3DSpinBox::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.
Construct a Vector3DSpinBox at given position.
Each DoubleSpinBox is saturated to min and max values.
position | position to display the Vector3DSpinBox |
name | name |
min | minimum value |
max | maximum value |
step | step |
decimals | number of decimals |
default_value | default value if not in the xml config file |
flair::gui::Vector3DSpinBox::~Vector3DSpinBox | ( | ) |
Destructor.
core::Vector3Df flair::gui::Vector3DSpinBox::Value | ( | void | ) | const |
Value.