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

#include <cartotype_base.h>

Inheritance diagram for CartoTypeCore::OutlinePoint:
CartoTypeCore::Point

Public Member Functions

constexpr OutlinePoint () noexcept
 
constexpr OutlinePoint (const Point &aPoint) noexcept
 
constexpr OutlinePoint (const Point &aPoint, PointType aType) noexcept
 
constexpr OutlinePoint (int32_t aX, int32_t aY) noexcept
 
constexpr OutlinePoint (int32_t aX, int32_t aY, PointType aType) noexcept
 
constexpr bool operator== (const OutlinePoint &aPoint) const noexcept
 
constexpr bool operator!= (const OutlinePoint &aPoint) const noexcept
 
Point Point () const noexcept
 
- Public Member Functions inherited from CartoTypeCore::Point
constexpr Point () noexcept
 
constexpr Point (int32_t aX, int32_t aY) noexcept
 
 Point (InputStream &aInput)
 
void Write (OutputStream &aOutput) const
 
constexpr bool operator== (const Point &aPoint) const noexcept
 
constexpr bool operator!= (const Point &aPoint) const noexcept
 
void operator+= (const Point &aPoint) noexcept
 
void operator-= (const Point &aPoint) noexcept
 
constexpr bool operator< (const Point &aPoint) const noexcept
 
constexpr bool operator> (const Point &aPoint) const noexcept
 
constexpr uint64_t ComparisonValue () const noexcept
 

Public Attributes

PointType Type { PointType::OnCurve }
 
- Public Attributes inherited from CartoTypeCore::Point
int32_t X { 0 }
 
int32_t Y { 0 }
 

Detailed Description

A point on a path. Paths are made from straight line segments and Bezier splines.

Constructor & Destructor Documentation

◆ OutlinePoint() [1/5]

constexpr CartoTypeCore::OutlinePoint::OutlinePoint ( )
inlineconstexprnoexcept

Create an on-curve outline point with the coordinates (0,0).

◆ OutlinePoint() [2/5]

constexpr CartoTypeCore::OutlinePoint::OutlinePoint ( const Point aPoint)
inlineconstexprnoexcept

Create an on-curve outline point from a Point.

◆ OutlinePoint() [3/5]

constexpr CartoTypeCore::OutlinePoint::OutlinePoint ( const Point aPoint,
PointType  aType 
)
inlineconstexprnoexcept

Create an outline point from a Point and a type.

◆ OutlinePoint() [4/5]

constexpr CartoTypeCore::OutlinePoint::OutlinePoint ( int32_t  aX,
int32_t  aY 
)
inlineconstexprnoexcept

Create an on-curve outline point, specifying coordinates.

◆ OutlinePoint() [5/5]

constexpr CartoTypeCore::OutlinePoint::OutlinePoint ( int32_t  aX,
int32_t  aY,
PointType  aType 
)
inlineconstexprnoexcept

Create an outline point, specifying coordinates and type.

Member Function Documentation

◆ operator!=()

constexpr bool CartoTypeCore::OutlinePoint::operator!= ( const OutlinePoint aPoint) const
inlineconstexprnoexcept

The inequality operator.

◆ operator==()

constexpr bool CartoTypeCore::OutlinePoint::operator== ( const OutlinePoint aPoint) const
inlineconstexprnoexcept

The equality operator.

◆ Point()

Point CartoTypeCore::OutlinePoint::Point ( ) const
inlinenoexcept

Create a Point by ignoring the point type.

Member Data Documentation

◆ Type

PointType CartoTypeCore::OutlinePoint::Type { PointType::OnCurve }

The type of an outline point: on-curve, or a quadratic or cubic control point.


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