Flair
Framework Libre Air
flair::gui::DataPlot Class Reference

Abstract class to display plots on ground station. More...

#include <DataPlot.h>

+ Inheritance diagram for flair::gui::DataPlot:

Public Types

enum  Color_t {
  Red, Blue, Green, Yellow,
  Black, White
}
 Types of colors. More...
 
- Public Types inherited from flair::core::Object
enum  color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 }
 

Public Member Functions

 DataPlot (const LayoutPosition *position, std::string name, std::string type)
 Constructor. More...
 
 ~DataPlot ()
 Destructor. More...
 
- Public Member Functions inherited from flair::gui::SendData
 SendData (const LayoutPosition *position, std::string name, std::string type, uint16_t default_periodms=100, bool default_enabled=false)
 Constructor. More...
 
virtual ~SendData ()
 Destructor. More...
 
size_t SendSize (void) const
 
uint16_t SendPeriod (void) const
 
bool IsEnabled (void) const
 
- 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 ObjectParent (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...
 

Protected Member Functions

void AddDataToSend (const core::IODataElement *element)
 Add an IODataElement to the plot. More...
 
- Protected Member Functions inherited from flair::gui::SendData
void SetSendSize (size_t value)
 Notify that SenData's datas have changed. 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...
 

Detailed Description

Abstract class to display plots on ground station.

Member Enumeration Documentation

Types of colors.

Enumerator
Red 

red

Blue 

blue

Green 

green

Yellow 

yellow

Black 

black

White 

white

Constructor & Destructor Documentation

flair::gui::DataPlot::DataPlot ( const LayoutPosition position,
std::string  name,
std::string  type 
)

Constructor.

Type must agree with predifined (hard coded) types in ground station code. After calling this constructor, position will be deleted as it is no longer usefull. The DataPlot will automatically be child of position->getLayout() Layout.

Parameters
positionposition
namenom
typetype
flair::gui::DataPlot::~DataPlot ( )

Destructor.

Member Function Documentation

void flair::gui::DataPlot::AddDataToSend ( const core::IODataElement element)
protected

Add an IODataElement to the plot.

This method registers element for sending.

Parameters
elementelement to plot