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