LibrePCB Developers Documentation
PolygonSimplifier< LibElemType > Class Template Reference

The PolygonSimplifier class. More...

#include <polygonsimplifier.h>

+ Collaboration diagram for PolygonSimplifier< LibElemType >:

Public Member Functions

 PolygonSimplifier (LibElemType &libraryElement)
 
 ~PolygonSimplifier ()
 
void convertLineRectsToPolygonRects (bool fillArea, bool isGrabArea) noexcept
 

Private Member Functions

bool findLineRectangle (QList< librepcb::Polygon *> &lines) noexcept
 
bool findHLine (const QList< Polygon *> &lines, librepcb::Point &p, UnsignedLength *width, librepcb::Polygon **line) noexcept
 
bool findVLine (const QList< Polygon *> &lines, librepcb::Point &p, UnsignedLength *width, librepcb::Polygon **line) noexcept
 

Private Attributes

LibElemType & mLibraryElement
 

Detailed Description

template<typename LibElemType>
class librepcb::PolygonSimplifier< LibElemType >

The PolygonSimplifier class.

Constructor & Destructor Documentation

◆ PolygonSimplifier()

PolygonSimplifier ( LibElemType &  libraryElement)

◆ ~PolygonSimplifier()

Member Function Documentation

◆ convertLineRectsToPolygonRects()

void convertLineRectsToPolygonRects ( bool  fillArea,
bool  isGrabArea 
)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findLineRectangle()

bool findLineRectangle ( QList< librepcb::Polygon *> &  lines)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findHLine()

bool findHLine ( const QList< Polygon *> &  lines,
librepcb::Point p,
UnsignedLength width,
librepcb::Polygon **  line 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findVLine()

bool findVLine ( const QList< Polygon *> &  lines,
librepcb::Point p,
UnsignedLength width,
librepcb::Polygon **  line 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mLibraryElement

LibElemType& mLibraryElement
private

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