5bca604f0c06d7d3c0c8d746e2aabefb53d2bb43
Stefan Schuermans complete implementation of...

Stefan Schuermans authored 7 years ago

1) /*
2)  * EtherPix simulator
3)  *
4)  * Copyright 2017 Stefan Schuermans <stefan schuermans info>
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) 
Stefan Schuermans implement drawing pixels

Stefan Schuermans authored 7 years ago

20) #include <gtkmm.h>
21) 
22) #include "bbox.h"
Stefan Schuermans complete implementation of...

Stefan Schuermans authored 7 years ago

23) #include "pixel.h"
Stefan Schuermans implement drawing pixels

Stefan Schuermans authored 7 years ago

24) #include "transform.h"
Stefan Schuermans complete implementation of...

Stefan Schuermans authored 7 years ago

25) 
26) /// default constructor
27) Pixel::Pixel():
28)   m_x(0.5),
29)   m_y(0.5),
30)   m_r(0.0)
31) {
32) }
33) 
34) /// constructor based on coordinates and radius
35) Pixel::Pixel(double x, double y, double r):
36)   m_x(x),
37)   m_y(y),
38)   m_r(r)
39) {
40) }
41)