libosmscout
0.1
|
#include <Node.h>
Public Member Functions | |
const GeoCoord & | GetCoords () const |
const FeatureInstance & | GetFeature (size_t idx) const |
size_t | GetFeatureCount () const |
const FeatureValueBuffer & | GetFeatureValueBuffer () const |
FileOffset | GetFileOffset () const |
FileOffset | GetNextFileOffset () const |
ObjectFileRef | GetObjectFileRef () const |
TypeInfoRef | GetType () const |
bool | HasFeature (size_t idx) const |
bool | Intersects (const GeoBox &boundingBox) const |
Returns true if the nodes is in the given bounding box. More... | |
Node ()=default | |
void | Read (const TypeConfig &typeConfig, FileScanner &scanner) |
Read the node data from the given FileScanner. More... | |
void | SetCoords (const GeoCoord &coords) |
void | SetFeatures (const FeatureValueBuffer &buffer) |
void | SetType (const TypeInfoRef &type) |
void | UnsetFeature (size_t idx) |
void | Write (const TypeConfig &typeConfig, FileWriter &writer) const |
Write the node data to the given FileWriter. More... | |
|
default |
|
inline |
Referenced by osmscout::DescriptionService::GetDescription().
|
inline |
References osmscout::FeatureValueBuffer::GetType().
|
inline |
References osmscout::FeatureValueBuffer::GetType().
|
inline |
Referenced by osmscout::DescriptionService::GetDescription().
|
inline |
|
inline |
|
inline |
References osmscout::refNode.
Referenced by osmscout::DescriptionService::GetDescription().
|
inline |
References osmscout::FeatureValueBuffer::GetType().
|
inline |
References osmscout::FeatureValueBuffer::HasFeature().
|
inline |
Returns true if the nodes is in the given bounding box.
boundingBox | bounding box to test for intersection |
References osmscout::GeoBox::Includes().
void osmscout::Node::Read | ( | const TypeConfig & | typeConfig, |
FileScanner & | scanner | ||
) |
Read the node data from the given FileScanner.
IOException |
References osmscout::TypeConfig::GetNodeTypeIdBytes(), osmscout::TypeConfig::GetNodeTypeInfo(), osmscout::FileScanner::GetPos(), osmscout::FeatureValueBuffer::Read(), osmscout::FileScanner::ReadCoord(), osmscout::FileScanner::ReadTypeId(), and osmscout::FeatureValueBuffer::SetType().
void osmscout::Node::SetCoords | ( | const GeoCoord & | coords | ) |
void osmscout::Node::SetFeatures | ( | const FeatureValueBuffer & | buffer | ) |
References osmscout::FeatureValueBuffer::Set().
void osmscout::Node::SetType | ( | const TypeInfoRef & | type | ) |
References osmscout::FeatureValueBuffer::SetType().
|
inline |
References osmscout::FeatureValueBuffer::FreeValue().
void osmscout::Node::Write | ( | const TypeConfig & | typeConfig, |
FileWriter & | writer | ||
) | const |
Write the node data to the given FileWriter.
IOException |
References osmscout::TypeConfig::GetNodeTypeIdBytes(), osmscout::FeatureValueBuffer::GetType(), osmscout::FeatureValueBuffer::Write(), osmscout::FileWriter::WriteCoord(), and osmscout::FileWriter::WriteTypeId().