CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::WritableCoordSet Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoTypeCore::WritableCoordSet:
CartoTypeCore::CoordSet

Public Member Functions

double & X (size_t aIndex) const
 
double & Y (size_t aIndex) const
 
 CoordSet (const double *aX, const double *aY, size_t aCount) noexcept
 
 CoordSet (const double *aCoordArray, size_t aCount) noexcept
 
template<class point_t >
 CoordSet (const point_t *aPointArray, size_t aCount) noexcept
 
template<class point_t >
 CoordSet (const std::vector< point_t > &aPointArray) noexcept
 
constexpr CoordSet () noexcept
 
- Public Member Functions inherited from CartoTypeCore::CoordSet
 CoordSet (const double *aX, const double *aY, size_t aCount) noexcept
 
 CoordSet (const double *aCoordArray, size_t aCount) noexcept
 
template<class point_t >
 CoordSet (const point_t *aPointArray, size_t aCount) noexcept
 
template<class point_t >
 CoordSet (const std::vector< point_t > &aPointArray) noexcept
 
double X (size_t aIndex) const noexcept
 
double Y (size_t aIndex) const noexcept
 
PointFP 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 CartoTypeCore::CoordSet
constexpr CoordSet () noexcept
 
- Protected Attributes inherited from CartoTypeCore::CoordSet
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

◆ CoordSet() [1/5]

constexpr CartoTypeCore::CoordSet::CoordSet ( )
inlineconstexprnoexcept

Creates an empty coordinate set.

◆ CoordSet() [2/5]

CartoTypeCore::CoordSet::CoordSet ( 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.

◆ CoordSet() [3/5]

CartoTypeCore::CoordSet::CoordSet ( 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.

◆ CoordSet() [4/5]

template<class point_t >
CartoTypeCore::CoordSet::CoordSet ( const point_t *  aPointArray,
size_t  aCount 
)
inlinenoexcept

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

◆ CoordSet() [5/5]

template<class point_t >
CartoTypeCore::CoordSet::CoordSet ( const std::vector< point_t > &  aPointArray)
inlinenoexcept

Creates a coordinate set from a vector of point objects.

◆ X()

double & CartoTypeCore::WritableCoordSet::X ( size_t  aIndex) const
inline

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

◆ Y()

double & CartoTypeCore::WritableCoordSet::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: