Last change
on this file since 272 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.5 KB
|
Rev | Line | |
---|
[2] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[2] | 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 |
|
---|
[15] | 19 | namespace flair {
|
---|
| 20 | namespace core {
|
---|
| 21 | class cvimage;
|
---|
[2] | 22 | }
|
---|
| 23 |
|
---|
[15] | 24 | namespace gui {
|
---|
[2] | 25 |
|
---|
[15] | 26 | class LayoutPosition;
|
---|
[2] | 27 |
|
---|
[15] | 28 | /*! \class Picture
|
---|
| 29 | *
|
---|
| 30 | * \brief Class displaying a Picture on the ground station
|
---|
| 31 | *
|
---|
| 32 | */
|
---|
| 33 | class Picture : public SendData {
|
---|
| 34 | public:
|
---|
| 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);
|
---|
[2] | 49 |
|
---|
[15] | 50 | /*!
|
---|
| 51 | * \brief Destructor
|
---|
| 52 | *
|
---|
| 53 | */
|
---|
| 54 | ~Picture();
|
---|
[2] | 55 |
|
---|
[15] | 56 | private:
|
---|
| 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;
|
---|
[2] | 65 |
|
---|
[15] | 66 | /*!
|
---|
| 67 | * \brief Extra Xml event
|
---|
| 68 | *
|
---|
| 69 | * Reimplemented from SendData.
|
---|
| 70 | */
|
---|
| 71 | void ExtraXmlEvent(void){};
|
---|
[2] | 72 |
|
---|
[15] | 73 | const core::cvimage *image;
|
---|
| 74 | };
|
---|
[2] | 75 |
|
---|
| 76 | } // end namespace gui
|
---|
| 77 | } // end namespace flair
|
---|
| 78 |
|
---|
| 79 | #endif // PICTURE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.