KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
Point::List Class Reference

A list of Point objects with corner-finding helpers. More...

#include <point.h>

+ Inheritance diagram for Point::List:
+ Collaboration diagram for Point::List:

Public Member Functions

 List ()
 Default constructor.
 
 List (const QList< Point > &other)
 Construct from a QList<Point>.
 
Point topLeft () const
 Return the top-left point (minimum X and Y).
 
Point topRight () const
 Return the top-right point (maximum X, minimum Y).
 
Point bottomLeft () const
 Return the bottom-left point (minimum X, maximum Y).
 
Point bottomRight () const
 Return the bottom-right point (maximum X and Y).
 
QList< QPoint > toPointList () const
 Convert to a list of integer QPoint objects.
 

Detailed Description

A list of Point objects with corner-finding helpers.

Definition at line 109 of file point.h.

Constructor & Destructor Documentation

◆ List() [1/2]

Point::List::List ( )
inline

Default constructor.

Definition at line 113 of file point.h.

◆ List() [2/2]

Point::List::List ( const QList< Point > &  other)
inline

Construct from a QList<Point>.

Parameters
otherSource list of Points

Definition at line 117 of file point.h.

Member Function Documentation

◆ bottomLeft()

Point Point::List::bottomLeft ( ) const

Return the bottom-left point (minimum X, maximum Y).

Returns
Bottom-left Point

◆ bottomRight()

Point Point::List::bottomRight ( ) const

Return the bottom-right point (maximum X and Y).

Returns
Bottom-right Point

◆ topLeft()

Point Point::List::topLeft ( ) const

Return the top-left point (minimum X and Y).

Returns
Top-left Point

◆ toPointList()

QList< QPoint > Point::List::toPointList ( ) const
inline

Convert to a list of integer QPoint objects.

Returns
QList of QPoint values

Definition at line 139 of file point.h.

◆ topRight()

Point Point::List::topRight ( ) const

Return the top-right point (maximum X, minimum Y).

Returns
Top-right Point

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