FlightGear next
pavement.cxx
Go to the documentation of this file.
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
27FGPavement::FGPavement(PositionedID aGuid, const std::string& aIdent, const SGGeod& aPos) :
28 FGPositioned(aGuid, PAVEMENT, aIdent, aPos)
29{
30}
31
32void 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
37void 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}
FGPavement(PositionedID aGuid, const std::string &aIdent, const SGGeod &aPos)
Definition pavement.cxx:27
void addNode(const SGGeod &aPos, bool aClose=false, bool aLoop=false, int paintCode=0, int lightCode=0)
Definition pavement.cxx:32
void addBezierNode(const SGGeod &aPos, const SGGeod &aCtrlPt, bool aClose=false, bool aLoop=false, int paintCode=0, int lightCode=0)
Definition pavement.cxx:37
FGPositioned(PositionedID aGuid, Type ty, const std::string &aIdent, const SGGeod &aPos)
int64_t PositionedID