Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QPolygonClipper< InType, OutType, CastType > Class Template Reference

#include <qpolygonclipper_p.h>

Collaboration diagram for QPolygonClipper< InType, OutType, CastType >:

Public Member Functions

 QPolygonClipper ()
 ~QPolygonClipper ()
void setBoundingRect (const QRect bounds)
QRect boundingRect ()
OutType intersectLeft (const OutType &p1, const OutType &p2)
OutType intersectRight (const OutType &p1, const OutType &p2)
OutType intersectTop (const OutType &p1, const OutType &p2)
OutType intersectBottom (const OutType &p1, const OutType &p2)
void clipPolygon (const InType *inPoints, int inCount, OutType **outPoints, int *outCount, bool closePolygon=true)

Detailed Description

template<typename InType, typename OutType, typename CastType>
class QPolygonClipper< InType, OutType, CastType >

Definition at line 25 of file qpolygonclipper_p.h.

Constructor & Destructor Documentation

◆ QPolygonClipper()

template<typename InType, typename OutType, typename CastType>
QPolygonClipper< InType, OutType, CastType >::QPolygonClipper ( )
inline

Definition at line 28 of file qpolygonclipper_p.h.

◆ ~QPolygonClipper()

template<typename InType, typename OutType, typename CastType>
QPolygonClipper< InType, OutType, CastType >::~QPolygonClipper ( )
inline

Definition at line 34 of file qpolygonclipper_p.h.

Member Function Documentation

◆ boundingRect()

template<typename InType, typename OutType, typename CastType>
QRect QPolygonClipper< InType, OutType, CastType >::boundingRect ( )
inline

Definition at line 46 of file qpolygonclipper_p.h.

◆ clipPolygon()

template<typename InType, typename OutType, typename CastType>
void QPolygonClipper< InType, OutType, CastType >::clipPolygon ( const InType * inPoints,
int inCount,
OutType ** outPoints,
int * outCount,
bool closePolygon = true )
inline

Definition at line 91 of file qpolygonclipper_p.h.

◆ intersectBottom()

template<typename InType, typename OutType, typename CastType>
OutType QPolygonClipper< InType, OutType, CastType >::intersectBottom ( const OutType & p1,
const OutType & p2 )
inline

Definition at line 81 of file qpolygonclipper_p.h.

◆ intersectLeft()

template<typename InType, typename OutType, typename CastType>
OutType QPolygonClipper< InType, OutType, CastType >::intersectLeft ( const OutType & p1,
const OutType & p2 )
inline

Definition at line 51 of file qpolygonclipper_p.h.

◆ intersectRight()

template<typename InType, typename OutType, typename CastType>
OutType QPolygonClipper< InType, OutType, CastType >::intersectRight ( const OutType & p1,
const OutType & p2 )
inline

Definition at line 61 of file qpolygonclipper_p.h.

◆ intersectTop()

template<typename InType, typename OutType, typename CastType>
OutType QPolygonClipper< InType, OutType, CastType >::intersectTop ( const OutType & p1,
const OutType & p2 )
inline

Definition at line 71 of file qpolygonclipper_p.h.

◆ setBoundingRect()

template<typename InType, typename OutType, typename CastType>
void QPolygonClipper< InType, OutType, CastType >::setBoundingRect ( const QRect bounds)
inline

Definition at line 38 of file qpolygonclipper_p.h.


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