| 1 | // pavement.cxx - class to represent complex taxiway specified in v850 apt.dat |
| 2 | // |
| 3 | // Copyright (C) 2009 Frederic Bouvier |
| 4 | // |
| 5 | // This program is free software; you can redistribute it and/or |
| 6 | // modify it under the terms of the GNU General Public License as |
| 7 | // published by the Free Software Foundation; either version 2 of the |
| 8 | // License, or (at your option) any later version. |
| 9 | // |
| 10 | // This program 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. See the GNU |
| 13 | // General Public License for more details. |
| 14 | // |
| 15 | // You should have received a copy of the GNU General Public License |
| 16 | // along with this program; if not, write to the Free Software |
| 17 | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | // |
| 19 | // $Id$ |
| 20 | |
| 21 | #ifdef HAVE_CONFIG_H |
| 22 | # include "config.h" |
| 23 | #endif |
| 24 | |
| 25 | #include "pavement.hxx" |
| 26 | |
| 27 | FGPavement::FGPavement(PositionedID aGuid, const std::string& aIdent, const SGGeod& aPos) : |
| 28 | FGPositioned(aGuid, PAVEMENT, aIdent, aPos) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | void FGPavement::addNode(const SGGeod &aPos, bool aClose, bool aLoop, int aPaintCode, int aLightCode) |
| 33 | { |
| 34 | mNodes.push_back(new SimpleNode(aPos, aClose, aLoop, aPaintCode, aLightCode)); |
| 35 | } |
| 36 | |
| 37 | void FGPavement::addBezierNode(const SGGeod &aPos, const SGGeod &aCtrlPt, bool aClose, bool aLoop, int aPaintCode, int aLightCode) |
| 38 | { |
| 39 | mNodes.push_back(new BezierNode(aPos, aCtrlPt, aClose, aLoop, aPaintCode, aLightCode)); |
| 40 | } |