| 1 | // SPDX-FileCopyrightText: 2000 David Megginson |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #ifndef FGPANELTRANSFORMATION_HXX |
| 5 | #define FGPANELTRANSFORMATION_HXX |
| 6 | |
| 7 | #include <simgear/math/interpolater.hxx> |
| 8 | #include <simgear/props/condition.hxx> |
| 9 | #include <simgear/props/props.hxx> |
| 10 | |
| 11 | /** |
| 12 | * A transformation for a layer. |
| 13 | */ |
| 14 | class FGPanelTransformation : public SGConditional { |
| 15 | public: |
| 16 | enum Type { |
| 17 | XSHIFT, |
| 18 | YSHIFT, |
| 19 | ROTATION |
| 20 | }; |
| 21 | |
| 22 | FGPanelTransformation (); |
| 23 | virtual ~FGPanelTransformation (); |
| 24 | |
| 25 | Type type; |
| 26 | SGConstPropertyNode_ptr node; |
| 27 | float min; |
| 28 | float max; |
| 29 | bool has_mod; |
| 30 | float mod; |
| 31 | float factor; |
| 32 | float offset; |
| 33 | SGInterpTable *table; |
| 34 | }; |
| 35 | |
| 36 | #endif |