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

#include <cartotype_path.h>

Public Member Functions

 TClipRegion (const TRect &aRect)
 
 TClipRegion (const MPath &aPath)
 
const TRectBounds () const noexcept
 
const COutlinePath () const noexcept
 
bool IsRect () const noexcept
 
bool IsEmpty () const noexcept
 

Detailed Description

A clip region. This class enables optimisations: detemining whether the clip region is an axis-aligned rectangle, and getting the bounding box.

Constructor & Destructor Documentation

◆ TClipRegion() [1/2]

CartoType::TClipRegion::TClipRegion ( const TRect aRect)

Creates a clip region from an axis-aligned rectangle.

◆ TClipRegion() [2/2]

CartoType::TClipRegion::TClipRegion ( const MPath aPath)

Creates a clip region from a path.

Member Function Documentation

◆ Bounds()

const TRect & CartoType::TClipRegion::Bounds ( ) const
inlinenoexcept

Returns the bounding box of this clip region.

◆ IsEmpty()

bool CartoType::TClipRegion::IsEmpty ( ) const
inlinenoexcept

Returns true if this clip region is empty.

◆ IsRect()

bool CartoType::TClipRegion::IsRect ( ) const
inlinenoexcept

Returns true if this clip region is an axis-aligned rectangle.

◆ Path()

const COutline & CartoType::TClipRegion::Path ( ) const
inlinenoexcept

Returns the clip region as a path.


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