|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/Area.h>

Public Member Functions | |
| Ring ()=default | |
| TypeInfoRef | GetType () const |
| size_t | GetFeatureCount () const |
| bool | HasFeature (size_t idx) const |
| bool | HasAnyFeaturesSet () const |
| const FeatureInstance & | GetFeature (size_t idx) const |
| void | UnsetFeature (size_t idx) |
| const FeatureValueBuffer & | GetFeatureValueBuffer () const |
| bool | IsMaster () const |
| bool | IsTopOuter () const |
| bool | IsOuter () const |
| uint8_t | GetRing () const |
| Id | GetSerial (size_t index) const |
| Id | GetId (size_t index) const |
| Id | GetFrontId () const |
| Id | GetBackId () const |
| bool | GetNodeIndexByNodeId (Id id, size_t &index) const |
| const GeoCoord & | GetCoord (size_t index) const |
| bool | GetCenter (GeoCoord ¢er) const |
| GeoBox | GetBoundingBox () const |
| void | SetType (const TypeInfoRef &type) |
| void | SetFeatures (const FeatureValueBuffer &buffer) |
| void | CopyMissingValues (const FeatureValueBuffer &buffer) |
| void | MarkAsMasterRing () |
| void | MarkAsOuterRing () |
| void | SetRing (uint8_t ring) |
Public Attributes | |
| std::vector< Point > | nodes |
| The array of coordinates. | |
| std::vector< SegmentGeoBox > | segments |
| Precomputed (cache) segment bounding boxes for optimisation. | |
| GeoBox | bbox |
| Precomputed (cache) bounding box. | |
| std::optional< GeoCoord > | center |
Friends | |
| class | Area |
|
default |
|
inline |
|
inline |
| GeoBox osmscout::CLASS_FINAL< DataLoader >::Ring::GetBoundingBox | ( | ) | const |
| bool osmscout::CLASS_FINAL< DataLoader >::Ring::GetCenter | ( | GeoCoord & | center | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool osmscout::CLASS_FINAL< DataLoader >::Ring::GetNodeIndexByNodeId | ( | Id | id, |
| size_t & | index ) const |
|
inline |
|
inline |
|
inline |
| bool osmscout::CLASS_FINAL< DataLoader >::Ring::HasAnyFeaturesSet | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
| GeoBox osmscout::CLASS_FINAL< DataLoader >::Ring::bbox |
Precomputed (cache) bounding box.
| std::optional<GeoCoord> osmscout::CLASS_FINAL< DataLoader >::Ring::center |
"visual" polygon center (pole of inaccessibility). It is computed just for rings when center is far from bounding box center
| std::vector<Point> osmscout::CLASS_FINAL< DataLoader >::Ring::nodes |
The array of coordinates.
Note that ring nodes, bbox and segments fields are public for simple manipulation. User that modify it is responsible to keep these values in sync! You should not rely on segments and bbox, it is just a cache used some algorithms. It may be empty/invalid!
| std::vector<SegmentGeoBox> osmscout::CLASS_FINAL< DataLoader >::Ring::segments |
Precomputed (cache) segment bounding boxes for optimisation.