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

Last change on this file since 109 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

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