22#ifndef FG_POLY_LINE_HXX
23#define FG_POLY_LINE_HXX
27#include <simgear/sg_inlines.h>
28#include <simgear/structure/SGSharedPtr.hxx>
29#include <simgear/math/SGMath.hxx>
30#include <simgear/math/SGBox.hxx>
31#include <simgear/math/SGGeometryFwd.hxx>
52class PolyLine :
public SGReferenced
78 SGGeod
point(
unsigned int aIndex)
const;
94 PolyLineList::const_iterator end);
virtual bool pass(Type aTy) const =0
unsigned int numPoints() const
number of points in this line - at least two.
void addToSpatialIndex() const
SGGeod point(unsigned int aIndex) const
static PolyLineList linesNearPos(const SGGeod &aPos, double aRangeNm, Type aTy)
retrieve all the lines within a range of a search point.
@ RIVER
state / province / country / department
@ REGIONAL_BOUNDARY
aka a border
static void bulkAddToSpatialIndex(PolyLineList::const_iterator begin, PolyLineList::const_iterator end)
SGBoxd cartesianBox() const
const SGGeodVec & points() const
static PolyLineList createChunked(Type aTy, const SGGeodVec &aRawPoints)
create poly line objects from raw input points and a type.
static PolyLineRef create(Type aTy, const SGGeodVec &aRawPoints)
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
std::vector< PolyLineRef > PolyLineList
std::vector< SGGeod > SGGeodVec
SGSharedPtr< PolyLine > PolyLineRef