libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::Node Class Referencefinal

#include <Node.h>

Public Member Functions

const GeoCoordGetCoords () const
 
const FeatureInstanceGetFeature (size_t idx) const
 
size_t GetFeatureCount () const
 
const FeatureValueBufferGetFeatureValueBuffer () 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...
 

Constructor & Destructor Documentation

◆ Node()

osmscout::Node::Node ( )
default

Member Function Documentation

◆ GetCoords()

const GeoCoord& osmscout::Node::GetCoords ( ) const
inline

◆ GetFeature()

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

◆ GetFeatureCount()

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

◆ GetFeatureValueBuffer()

const FeatureValueBuffer& osmscout::Node::GetFeatureValueBuffer ( ) const
inline

◆ GetFileOffset()

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

◆ GetNextFileOffset()

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

◆ GetObjectFileRef()

ObjectFileRef osmscout::Node::GetObjectFileRef ( ) const
inline

◆ 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()


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