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

#include <cartotype_path.h>

Public Member Functions

 ContourFP (const RectFP &aRect)
 
void AppendPoint (const PointFP &aPoint)
 
PolygonFP Clip (const RectFP &aClip)
 
RectFP Bounds () const
 

Public Attributes

std::vector< PointFPPointArray
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ContourFP()

CartoTypeCore::ContourFP::ContourFP ( const RectFP aRect)
inlineexplicit

Creates a contour from an axis-aligned rectangle.

Member Function Documentation

◆ AppendPoint()

void CartoTypeCore::ContourFP::AppendPoint ( const PointFP aPoint)
inline

Appends a point to this contour.

◆ Bounds()

RectFP CartoTypeCore::ContourFP::Bounds ( ) const
inline

Returns the bounding box as an axis-aligned rectangle.

◆ Clip()

PolygonFP CartoTypeCore::ContourFP::Clip ( const RectFP aClip)

Returns a copy of this contour clipped to the axis-aligned rectangle aRect.

Member Data Documentation

◆ PointArray

std::vector<PointFP> CartoTypeCore::ContourFP::PointArray

The vector of points representing this contour.


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