![]() | InDesign SDK 20.5 |
#include <PMPolygon4.h>
Public Types | |
| typedef base_type | data_type |
Public Member Functions | |
| PMPolygon4 () | |
| PMPolygon4 (const PMRect &r) | |
| PMPolygon4 (const PMPolygon4 &other) | |
| void | SetPoints (const PMRect &r) |
| bool16 | IsEmpty () const |
| PMPolygon4 & | operator= (const PMPolygon4 &other) |
| PMPoint | operator[] (int16 index) const |
| PMPoint & | operator[] (int16 index) |
| PMRect | GetContainingRect () const |
A C++ class for a 4-side polygon. This polygon is defined by 4 points.
| PMPolygon4::PMPolygon4 | ( | ) |
Default constructor.
| PMPolygon4::PMPolygon4 | ( | const PMRect & | r | ) |
Contstructor a polygon with a given rectangle.
| r | is the rectangle. |
| PMPolygon4::PMPolygon4 | ( | const PMPolygon4 & | other | ) |
Contstructor a polygon with another polygon.
| other | is the PMPolygon4. |
| PMRect PMPolygon4::GetContainingRect | ( | ) | const |
| bool16 PMPolygon4::IsEmpty | ( | ) | const |
| PMPolygon4& PMPolygon4::operator= | ( | const PMPolygon4 & | other | ) |
Return true if two polygons are equal.
| other | specifies the other PMPolygon4 to compare with. |
| PMPoint PMPolygon4::operator[] | ( | int16 | index | ) | const |
Returns the nth point of the polygon. 0 is the top left, 1 is top right, 2 is bottom right, 3 is bottom left.
| index | should be >= 0 and <= 3. |
| PMPoint& PMPolygon4::operator[] | ( | int16 | index | ) |
Returns the nth point of the polygon. 0 is the top left, 1 is top right, 2 is bottom right, 3 is bottom left.
| index | should be >= 0 and <= 3. |
| void PMPolygon4::SetPoints | ( | const PMRect & | r | ) |
Set four points for the polygon from the given rectangle.
| r | is the rectangle. |