source: flair-src/trunk/lib/FlairCore/src/Picture.h@ 376

Last change on this file since 376 was 338, checked in by Sanahuja Guillaume, 5 years ago

remove opencv dep

File size: 1.4 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 Picture.h
7 * \brief Class displaying a Picture on the ground station
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2012/01/30
10 * \version 4.0
11 */
12
13#ifndef PICTURE_H
14#define PICTURE_H
15
16#include <SendData.h>
17
18namespace flair {
19namespace core {
20class Image;
21}
22
23namespace gui {
24
25class LayoutPosition;
26
27/*! \class Picture
28*
29* \brief Class displaying a Picture on the ground station
30*
31*/
32class Picture : public SendData {
33public:
34 /*!
35 * \brief Constructor
36 *
37 * Construct a picture at given position. \n
38 * The Picture will automatically be child of position->getLayout() Layout.
39 *After calling this constructor,
40 * position will be deleted as it is no longer usefull.
41 *
42 * \param position position to draw plot
43 * \param name name
44 * \param image image to draw
45 */
46 Picture(const LayoutPosition *position, std::string name,
47 const core::Image *image);
48
49 /*!
50 * \brief Destructor
51 *
52 */
53 ~Picture();
54
55private:
56 /*!
57 * \brief Copy datas to specified buffer
58 *
59 * Reimplemented from SendData.
60 *
61 * \param buf output buffer
62 */
63 void CopyDatas(char *buf) const;
64
65 /*!
66 * \brief Extra Xml event
67 *
68 * Reimplemented from SendData.
69 */
70 void ExtraXmlEvent(void){};
71
72 const core::Image *image;
73};
74
75} // end namespace gui
76} // end namespace flair
77
78#endif // PICTURE_H
Note: See TracBrowser for help on using the repository browser.