646a131a8e8eeea149e820af709d70030819cc96
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

1) /*
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

2)  * EtherPix config file generator
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

3)  *
Stefan Schuermans update copyright year

Stefan Schuermans authored 7 years ago

4)  * Copyright 2010-2017 Stefan Schuermans <stefan schuermans info>
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

5)  *
6)  * This program is free software: you can redistribute it and/or modify
7)  * it under the terms of the GNU General Public License as published by
8)  * the Free Software Foundation, version 3 of the License.
9)  *
10)  *
11)  * This program is distributed in the hope that it will be useful,
12)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14)  * GNU General Public License for more details.
15)  *
16)  * You should have received a copy of the GNU Lesser General Public License
17)  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18)  */
19) 
20) #ifndef INC_PIXEL_H
21) #define INC_PIXEL_H
22) 
23) #include <iostream>
24) 
Stefan Schuermans implement simulator config...

Stefan Schuermans authored 7 years ago

25) #include "box.h"
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

26) #include "object.h"
27) #include "point.h"
28) 
29) class Pixel {
30) public:
31)   Pixel(const Object *pObjPixel);
Stefan Schuermans add some comments

Stefan Schuermans authored 7 years ago

32)   /**
33)    * @brief compute coordinate of pixel and check it
34)    * @param[in] pix0 position of logical pixel origin
35)    *                 (top left corner of 0,0 of video frame)
36)    * @param[in] pixSz size of one logcal pixel (in video frame)
37)    * @param[in] width of video frame in pixels
38)    * @param[in] height of video frame in pixels
39)    */
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

40)   int pixCoord(const Point &pix0, const Point &pixSz,
41)                unsigned int width, unsigned int height);
42)   void writePixel(std::ostream & strm) const;
Stefan Schuermans implement simulator config...

Stefan Schuermans authored 7 years ago

43)   void writeSimPixel(std::ostream & strm, const Box & boundsVideo) const;
Stefan Schuermans make class members private

Stefan Schuermans authored 7 years ago

44) private:
Stefan Schuermans add config file generator

Stefan Schuermans authored 7 years ago

45)   const Object *mpObjPixel;
Stefan Schuermans implement simulator config...

Stefan Schuermans authored 7 years ago

46)   Box mBounds;
47)   Point mCenter;