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

#include <cartotype_path.h>

Public Member Functions

 CContourFP (const TRectFP &aRect)
 
void AppendPoint (const TPointFP &aPoint)
 
CPolygonFP Clip (const TRectFP &aClip)
 
TRectFP Bounds () const
 

Public Attributes

std::vector< TPointFPiPoint
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CContourFP()

CartoType::CContourFP::CContourFP ( const TRectFP aRect)
inlineexplicit

Creates a contour from an axis-aligned rectangle.

Member Function Documentation

◆ AppendPoint()

void CartoType::CContourFP::AppendPoint ( const TPointFP aPoint)
inline

Appends a point to this contour.

◆ Bounds()

TRectFP CartoType::CContourFP::Bounds ( ) const
inline

Returns the bounding box as an axis-aligned rectangle.

◆ Clip()

CPolygonFP CartoType::CContourFP::Clip ( const TRectFP aClip)

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

Member Data Documentation

◆ iPoint

std::vector<TPointFP> CartoType::CContourFP::iPoint

The vector of points representing this contour.


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