1 // Copyright (C) 2009 - 2012 Mathias Froehlich - Mathias.Froehlich@web.de
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.
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.
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.
18 #ifndef HLAOrthographicCamera_hxx
19 #define HLAOrthographicCamera_hxx
21 #include <simgear/hla/HLABasicDataElement.hxx>
22 #include "HLACamera.hxx"
26 class HLAOrthographicCameraClass;
28 class HLAOrthographicCamera : public HLACamera {
30 HLAOrthographicCamera(HLAOrthographicCameraClass* objectClass);
31 virtual ~HLAOrthographicCamera();
33 virtual void createAttributeDataElements();
35 double getLeft() const
36 { return _left.getValue(); }
37 void setLeft(double left)
38 { _left.setValue(left); }
40 double getRight() const
41 { return _right.getValue(); }
42 void setRight(double right)
43 { _right.setValue(right); }
45 double getBottom() const
46 { return _bottom.getValue(); }
47 void setBottom(double bottom)
48 { _bottom.setValue(bottom); }
51 { return _top.getValue(); }
52 void setTop(double top)
53 { _top.setValue(top); }
56 simgear::HLADoubleData _left;
57 simgear::HLADoubleData _right;
58 simgear::HLADoubleData _bottom;
59 simgear::HLADoubleData _top;
62 } // namespace fgviewer