Qt 6.x
The Qt SDK
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

◆ 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.

References p1, and p2.

Referenced by QPolygonClipper< InType, OutType, CastType >::clipPolygon().

+ Here is the caller graph for this function:

◆ 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.

References p1, and p2.

Referenced by QPolygonClipper< InType, OutType, CastType >::clipPolygon().

+ Here is the caller graph for this function:

◆ 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.

References p1, and p2.

Referenced by QPolygonClipper< InType, OutType, CastType >::clipPolygon().

+ Here is the caller graph for this function:

◆ 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.

References p1, and p2.

Referenced by QPolygonClipper< InType, OutType, CastType >::clipPolygon().

+ Here is the caller graph for this function:

◆ 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.

References QRect::height(), QRect::width(), QRect::x(), and QRect::y().

+ Here is the call graph for this function:

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