CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::TWritableCoordSet Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoType::TWritableCoordSet:
CartoType::TCoordSet

Public Member Functions

double & X (size_t aIndex) const
 
double & Y (size_t aIndex) const
 
 TCoordSet (const double *aX, const double *aY, size_t aCount) noexcept
 
 TCoordSet (const double *aCoordArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const point_t *aPointArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const std::vector< point_t > &aPointArray) noexcept
 
constexpr TCoordSet () noexcept
 
- Public Member Functions inherited from CartoType::TCoordSet
 TCoordSet (const double *aX, const double *aY, size_t aCount) noexcept
 
 TCoordSet (const double *aCoordArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const point_t *aPointArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const std::vector< point_t > &aPointArray) noexcept
 
double X (size_t aIndex) const noexcept
 
double Y (size_t aIndex) const noexcept
 
TPointFP Point (size_t aIndex) const noexcept
 
size_t Count () const noexcept
 
double DistanceFromPoint (bool aIsPolygon, double aX, double aY, double &aNearestX, double &aNearestY) const noexcept
 
bool PolygonContains (double aX, double aY) const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from CartoType::TCoordSet
constexpr TCoordSet () noexcept
 
- Protected Attributes inherited from CartoType::TCoordSet
const double * m_x { nullptr }
 
const double * m_y { nullptr }
 
size_t m_stride { 0 }
 
size_t m_count { 0 }
 

Detailed Description

A set of modifiable coordinate pairs.

Member Function Documentation

◆ TCoordSet() [1/5]

constexpr CartoType::TCoordSet::TCoordSet ( )
inlineconstexprnoexcept

Creates an empty coordinate set.

◆ TCoordSet() [2/5]

CartoType::TCoordSet::TCoordSet ( const double *  aCoordArray,
size_t  aCount 
)
inlinenoexcept

Creates a coordinate set from an array of aCount numbers, arranged in x,y pairs; aCount must be an even number.

◆ TCoordSet() [3/5]

CartoType::TCoordSet::TCoordSet ( const double *  aX,
const double *  aY,
size_t  aCount 
)
inlinenoexcept

Creates a coordinate set from two separate contiguous arrays of points. aX points to a contiguous array of X coordinates. aY points to a contiguous array of Y coordinates. aCount is the number of coordinate pairs.

◆ TCoordSet() [4/5]

template<class point_t >
CartoType::TCoordSet::TCoordSet ( const point_t *  aPointArray,
size_t  aCount 
)
inlinenoexcept

Creates a coordinate set from an array of aCount point objects.

◆ TCoordSet() [5/5]

template<class point_t >
CartoType::TCoordSet::TCoordSet ( const std::vector< point_t > &  aPointArray)
inlinenoexcept

Creates a coordinate set from a vector of point objects.

◆ X()

double & CartoType::TWritableCoordSet::X ( size_t  aIndex) const
inline

Returns a writable reference to the X coordinate at a specified index.

◆ Y()

double & CartoType::TWritableCoordSet::Y ( size_t  aIndex) const
inline

Returns a writable reference to the Y coordinate at a specified index.


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