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

#include <cartotype_path.h>

Public Member Functions

 TContourFP (const TPointFP *aPoint, size_t aPoints, bool aClosed)
const TPointFPPoint () const noexcept
size_t Points () const noexcept
bool Closed () const noexcept
TRectFP Bounds () const noexcept
bool Intersects (const TRectFP &aRect) const noexcept
bool Contains (const TPointFP &aPoint) const noexcept

Detailed Description

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

Constructor & Destructor Documentation

◆ TContourFP()

CartoType::TContourFP::TContourFP ( const TPointFP aPoint,
size_t  aPoints,
bool  aClosed 

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

Member Function Documentation

◆ Bounds()

TRectFP CartoType::TContourFP::Bounds ( ) const

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

◆ Closed()

bool CartoType::TContourFP::Closed ( ) const

Returns true if this contour is closed.

◆ Contains()

bool CartoType::TContourFP::Contains ( const TPointFP aPoint) const

Returns true if this contour contains aPoint.

◆ Intersects()

bool CartoType::TContourFP::Intersects ( const TRectFP aRect) const

Returns true if this contour intersects aRect.

◆ Point()

const TPointFP * CartoType::TContourFP::Point ( ) const

Returns a constant pointer to the first point.

◆ Points()

size_t CartoType::TContourFP::Points ( ) const

Returns the number of points.

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