LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( LibElemType &  libraryElement)

Member Function Documentation

void convertLineRectsToPolygonRects ( bool  fillArea,
bool  isGrabArea 
)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool findLineRectangle ( QList< librepcb::Polygon * > &  lines)
privatenoexcept

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

Member Data Documentation

LibElemType& mLibraryElement
private

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