| 1 |
/* Photo_def.h |
| 2 |
* |
| 3 |
* Copyright (C) 2013-2018,2022,2023 Paul Boersma |
| 4 |
* |
| 5 |
* This code is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, but |
| 11 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
* See the GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
|
| 20 |
#define ooSTRUCT Photo |
| 21 |
oo_DEFINE_CLASS (Photo, SampledXY) |
| 22 |
|
| 23 |
oo_OBJECT (Matrix, 2, d_red) |
| 24 |
oo_OBJECT (Matrix, 2, d_green) |
| 25 |
oo_OBJECT (Matrix, 2, d_blue) |
| 26 |
oo_OBJECT (Matrix, 2, d_transparency) |
| 27 |
|
| 28 |
#if oo_DECLARING |
| 29 |
void v1_info () |
| 30 |
override; |
| 31 |
bool v_hasGetNrow () const |
| 32 |
override { return true; } |
| 33 |
double v_getNrow () const |
| 34 |
override { return ny; } |
| 35 |
bool v_hasGetNcol () const |
| 36 |
override { return true; } |
| 37 |
double v_getNcol () const |
| 38 |
override { return nx; } |
| 39 |
bool v_hasGetYmin () const |
| 40 |
override { return true; } |
| 41 |
double v_getYmin () const |
| 42 |
override { return ymin; } |
| 43 |
bool v_hasGetYmax () const |
| 44 |
override { return true; } |
| 45 |
double v_getYmax () const |
| 46 |
override { return ymax; } |
| 47 |
bool v_hasGetNy () const |
| 48 |
override { return true; } |
| 49 |
double v_getNy () const |
| 50 |
override { return ny; } |
| 51 |
bool v_hasGetDy () const |
| 52 |
override { return true; } |
| 53 |
double v_getDy () const |
| 54 |
override { return dy; } |
| 55 |
bool v_hasGetY () const |
| 56 |
override { return true; } |
| 57 |
double v_getY (const integer iy) const |
| 58 |
override { return y1 + (iy - 1) * dy; } |
| 59 |
#endif |
| 60 |
|
| 61 |
oo_END_CLASS (Photo) |
| 62 |
#undef ooSTRUCT |
| 63 |
|
| 64 |
|
| 65 |
/* End of file Matrix_def.h */ |