Mapper  0.9.0
API documentation
Public Member Functions | Friends | List of all members
OpenOrienteering::PathCoordVector Class Reference

#include <virtual_path.h>

Inheritance diagram for OpenOrienteering::PathCoordVector:
Inheritance graph
[legend]
Collaboration diagram for OpenOrienteering::PathCoordVector:
Collaboration graph
[legend]

Public Member Functions

 PathCoordVector (const MapCoordVector &coords)
 
 PathCoordVector (const MapCoordVector &flags, const MapCoordVectorF &coords)
 
 PathCoordVector (const VirtualCoordVector &coords)
 
VirtualCoordVector::size_type update (VirtualCoordVector::size_type first)
 Updates the path coords from the flags/coords, starting at first. More...
 
size_type findNextDashPoint (PathCoordVector::size_type first) const
 Finds the index of the next dash point after first, or returns size()-1. More...
 
size_type lowerBound (PathCoord::length_type length, size_type first, size_type last) const
 Finds the path coordinate index with or just before the given length. More...
 
size_type upperBound (PathCoord::length_type length, size_type first, size_type last) const
 Finds the path coordinate index with or just after the given length. More...
 
PathCoord::length_type length () const
 Returns the length of the path. More...
 
double calculateArea () const
 Calculates the area of this part. More...
 
QRectF calculateExtent () const
 
bool intersectsBox (const QRectF &box) const
 
bool isPointInside (const MapCoordF &coord) const
 

Friends

class SplitPathCoord
 
class VirtualPath
 

Constructor & Destructor Documentation

◆ PathCoordVector() [1/3]

OpenOrienteering::PathCoordVector::PathCoordVector ( const MapCoordVector coords)

◆ PathCoordVector() [2/3]

OpenOrienteering::PathCoordVector::PathCoordVector ( const MapCoordVector flags,
const MapCoordVectorF coords 
)

◆ PathCoordVector() [3/3]

OpenOrienteering::PathCoordVector::PathCoordVector ( const VirtualCoordVector coords)

Member Function Documentation

◆ calculateArea()

double OpenOrienteering::PathCoordVector::calculateArea ( ) const

Calculates the area of this part.

◆ calculateExtent()

QRectF OpenOrienteering::PathCoordVector::calculateExtent ( ) const

◆ findNextDashPoint()

PathCoordVector::size_type OpenOrienteering::PathCoordVector::findNextDashPoint ( PathCoordVector::size_type  first) const

Finds the index of the next dash point after first, or returns size()-1.

Todo:
Consider return a SplitPathCoord (cf. actual usage).

◆ intersectsBox()

bool OpenOrienteering::PathCoordVector::intersectsBox ( const QRectF box) const
Todo:
Implement this here, used nowhere else

◆ isPointInside()

bool OpenOrienteering::PathCoordVector::isPointInside ( const MapCoordF coord) const

◆ length()

PathCoord::length_type OpenOrienteering::PathCoordVector::length ( ) const

Returns the length of the path.

◆ lowerBound()

PathCoordVector::size_type OpenOrienteering::PathCoordVector::lowerBound ( PathCoord::length_type  length,
size_type  first,
size_type  last 
) const
inline

Finds the path coordinate index with or just before the given length.

◆ update()

VirtualCoordVector::size_type OpenOrienteering::PathCoordVector::update ( VirtualCoordVector::size_type  first)

Updates the path coords from the flags/coords, starting at first.

Returns
The index after the last element of this part.

◆ upperBound()

PathCoordVector::size_type OpenOrienteering::PathCoordVector::upperBound ( PathCoord::length_type  length,
size_type  first,
size_type  last 
) const
inline

Finds the path coordinate index with or just after the given length.

Friends And Related Function Documentation

◆ SplitPathCoord

friend class SplitPathCoord
friend

◆ VirtualPath

friend class VirtualPath
friend

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