#include <cartotype_path.h>
A clip region. This class enables optimisations: detemining whether the clip region is an axis-aligned rectangle, and getting the bounding box.
◆ ClipRegion() [1/2]
CartoTypeCore::ClipRegion::ClipRegion |
( |
const Rect & |
aRect | ) |
|
Creates a clip region from an axis-aligned rectangle.
◆ ClipRegion() [2/2]
CartoTypeCore::ClipRegion::ClipRegion |
( |
const MPath & |
aPath | ) |
|
Creates a clip region from a path in map units.
◆ Bounds()
const Rect & CartoTypeCore::ClipRegion::Bounds |
( |
| ) |
const |
|
inlinenoexcept |
Returns the bounding box of this clip region.
◆ Contains()
bool CartoTypeCore::ClipRegion::Contains |
( |
const Point & |
aPoint | ) |
const |
|
inlinenoexcept |
Returns true if this clip region contains aPoint.
◆ IsEmpty()
bool CartoTypeCore::ClipRegion::IsEmpty |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if this clip region is empty.
◆ IsRect()
bool CartoTypeCore::ClipRegion::IsRect |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if this clip region is an axis-aligned rectangle.
◆ Path()
const Outline & CartoTypeCore::ClipRegion::Path |
( |
| ) |
const |
|
inlinenoexcept |
Returns the clip region as a path.
The documentation for this class was generated from the following files:
- cartotype_path.h
- cartotype_outline.cpp