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::ContourViewFP Class Reference

#include <cartotype_path.h>

Public Member Functions

 ContourViewFP (const PointFP *aPoint, size_t aPoints, bool aClosed)
 
const PointFPPoint () const noexcept
 
size_t Points () const noexcept
 
bool Closed () const noexcept
 
RectFP Bounds () const noexcept
 
bool Intersects (const RectFP &aRect) const noexcept
 
bool Contains (const PointFP &aPoint) const noexcept
 

Detailed Description

A contour consisting of non-owned points using floating-point coordinates, all of them being on-curve points. A ContourViewFP may be open or closed.

Constructor & Destructor Documentation

◆ ContourViewFP()

CartoTypeCore::ContourViewFP::ContourViewFP ( const PointFP aPoint,
size_t  aPoints,
bool  aClosed 
)
inline

Creates a ContourViewFP referring to a certain number of points, specifying whether it is open or closed.

Member Function Documentation

◆ Bounds()

RectFP CartoTypeCore::ContourViewFP::Bounds ( ) const
noexcept

Returns the bounding box of this contour as an axis-aligned rectangle.

◆ Closed()

bool CartoTypeCore::ContourViewFP::Closed ( ) const
inlinenoexcept

Returns true if this contour is closed.

◆ Contains()

bool CartoTypeCore::ContourViewFP::Contains ( const PointFP aPoint) const
noexcept

Returns true if this contour contains aPoint.

◆ Intersects()

bool CartoTypeCore::ContourViewFP::Intersects ( const RectFP aRect) const
noexcept

Returns true if this contour intersects aRect.

◆ Point()

const PointFP * CartoTypeCore::ContourViewFP::Point ( ) const
inlinenoexcept

Returns a constant pointer to the first point.

◆ Points()

size_t CartoTypeCore::ContourViewFP::Points ( ) const
inlinenoexcept

Returns the number of points.


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