|
FlightGear next
|
#include <PolyLine.hxx>
Inherits SGReferenced.
Classes | |
| class | TypeFilter |
Public Types | |
| enum | Type { INVALID = 0 , COASTLINE , NATIONAL_BOUNDARY , REGIONAL_BOUNDARY , RIVER , LAKE , URBAN , LAST_TYPE } |
Public Member Functions | |
| virtual | ~PolyLine () |
| Type | type () const |
| unsigned int | numPoints () const |
| number of points in this line - at least two. | |
| SGGeod | point (unsigned int aIndex) const |
| const SGGeodVec & | points () const |
| SGBoxd | cartesianBox () const |
| void | addToSpatialIndex () const |
Static Public Member Functions | |
| 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) |
| static void | bulkAddToSpatialIndex (PolyLineList::const_iterator begin, PolyLineList::const_iterator end) |
| static PolyLineList | linesNearPos (const SGGeod &aPos, double aRangeNm, Type aTy) |
| retrieve all the lines within a range of a search point. | |
| static PolyLineList | linesNearPos (const SGGeod &aPos, double aRangeNm, const TypeFilter &aFilter) |
Definition at line 52 of file PolyLine.hxx.
| Enumerator | |
|---|---|
| INVALID | |
| COASTLINE | |
| NATIONAL_BOUNDARY | |
| REGIONAL_BOUNDARY | aka a border |
| RIVER | state / province / country / department |
| LAKE | |
| URBAN | |
| LAST_TYPE | |
Definition at line 57 of file PolyLine.hxx.
|
virtual |
Definition at line 44 of file PolyLine.cxx.
| void PolyLine::addToSpatialIndex | ( | ) | const |
Definition at line 112 of file PolyLine.cxx.
|
static |
Definition at line 103 of file PolyLine.cxx.
| SGBoxd PolyLine::cartesianBox | ( | ) | const |
Definition at line 118 of file PolyLine.cxx.
|
static |
Definition at line 98 of file PolyLine.cxx.
|
static |
create poly line objects from raw input points and a type.
input points will be subdivided so the bounding area of each polyline stays within some threshold.
Definition at line 60 of file PolyLine.cxx.
|
static |
Definition at line 149 of file PolyLine.cxx.
|
static |
retrieve all the lines within a range of a search point.
lines are returned if any point is near the search location.
Definition at line 143 of file PolyLine.cxx.
| unsigned int PolyLine::numPoints | ( | ) | const |
number of points in this line - at least two.
Definition at line 49 of file PolyLine.cxx.
| SGGeod PolyLine::point | ( | unsigned int | aIndex | ) | const |
Definition at line 54 of file PolyLine.cxx.
|
inline |
Definition at line 80 of file PolyLine.hxx.
|
inline |
Definition at line 70 of file PolyLine.hxx.