libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::Node Class Referencefinal

#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.
 Node ()=default
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 Read the node data from the given FileScanner.
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.

Constructor & Destructor Documentation

◆ Node()

osmscout::Node::Node ( )
default

Member Function Documentation

◆ GetCoords()

◆ GetFeature()

const FeatureInstance & osmscout::Node::GetFeature ( size_t idx) const
inline

◆ GetFeatureCount()

size_t osmscout::Node::GetFeatureCount ( ) const
inline

◆ GetFeatureValueBuffer()

◆ GetFileOffset()

FileOffset osmscout::Node::GetFileOffset ( ) const
inline

◆ GetNextFileOffset()

FileOffset osmscout::Node::GetNextFileOffset ( ) const
inline

◆ GetObjectFileRef()

◆ GetType()

TypeInfoRef osmscout::Node::GetType ( ) const
inline

◆ HasFeature()

bool osmscout::Node::HasFeature ( size_t idx) const
inline

◆ Intersects()

bool osmscout::Node::Intersects ( const GeoBox & boundingBox) const
inline

Returns true if the nodes is in the given bounding box.

Parameters
boundingBoxbounding box to test for intersection
Returns
true on intersection, else false

References osmscout::GeoBox::Includes().

◆ Read()

◆ SetCoords()

void osmscout::Node::SetCoords ( const GeoCoord & coords)

◆ SetFeatures()

void osmscout::Node::SetFeatures ( const FeatureValueBuffer & buffer)

◆ SetType()

void osmscout::Node::SetType ( const TypeInfoRef & type)

◆ UnsetFeature()

void osmscout::Node::UnsetFeature ( size_t idx)
inline

◆ Write()

void osmscout::Node::Write ( const TypeConfig & typeConfig,
FileWriter & writer ) const

The documentation for this class was generated from the following files: