| 1 | // Copyright (C) 2009 - 2012 Mathias Froehlich - [email protected] |
| 2 | // |
| 3 | // This library is free software; you can redistribute it and/or |
| 4 | // modify it under the terms of the GNU Library General Public |
| 5 | // License as published by the Free Software Foundation; either |
| 6 | // version 2 of the License, or (at your option) any later version. |
| 7 | // |
| 8 | // This library is distributed in the hope that it will be useful, |
| 9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | // Library General Public License for more details. |
| 12 | // |
| 13 | // You should have received a copy of the GNU General Public License |
| 14 | // along with this program; if not, write to the Free Software |
| 15 | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16 | // |
| 17 | |
| 18 | #ifndef HLAOrthographicCamera_hxx |
| 19 | #define HLAOrthographicCamera_hxx |
| 20 | |
| 21 | #include <simgear/hla/HLABasicDataElement.hxx> |
| 22 | #include "HLACamera.hxx" |
| 23 | |
| 24 | namespace fgviewer { |
| 25 | |
| 26 | class HLAOrthographicCameraClass; |
| 27 | |
| 28 | class HLAOrthographicCamera : public HLACamera { |
| 29 | public: |
| 30 | HLAOrthographicCamera(HLAOrthographicCameraClass* objectClass); |
| 31 | virtual ~HLAOrthographicCamera(); |
| 32 | |
| 33 | virtual void createAttributeDataElements(); |
| 34 | |
| 35 | double getLeft() const |
| 36 | { return _left.getValue(); } |
| 37 | void setLeft(double left) |
| 38 | { _left.setValue(left); } |
| 39 | |
| 40 | double getRight() const |
| 41 | { return _right.getValue(); } |
| 42 | void setRight(double right) |
| 43 | { _right.setValue(right); } |
| 44 | |
| 45 | double getBottom() const |
| 46 | { return _bottom.getValue(); } |
| 47 | void setBottom(double bottom) |
| 48 | { _bottom.setValue(bottom); } |
| 49 | |
| 50 | double getTop() const |
| 51 | { return _top.getValue(); } |
| 52 | void setTop(double top) |
| 53 | { _top.setValue(top); } |
| 54 | |
| 55 | private: |
| 56 | simgear::HLADoubleData _left; |
| 57 | simgear::HLADoubleData _right; |
| 58 | simgear::HLADoubleData _bottom; |
| 59 | simgear::HLADoubleData _top; |
| 60 | }; |
| 61 | |
| 62 | } // namespace fgviewer |
| 63 | |
| 64 | #endif |