libslic3r
Library for generating gcode from 3d models
Public Member Functions | Public Attributes | List of all members
Slic3r::ExPolygonCollection Class Reference

#include <ExPolygonCollection.hpp>

Public Member Functions

 ExPolygonCollection ()
 
 ExPolygonCollection (const ExPolygon &expolygon)
 
 ExPolygonCollection (const ExPolygons &expolygons)
 
 operator Points () const
 
 operator Polygons () const
 
 operator ExPolygons & ()
 
void scale (double factor)
 
void translate (double x, double y)
 
void translate (const Point offset)
 
void translate (const Pointf offset)
 
void rotate (double angle, const Point &center)
 
template<class T >
bool contains (const T &item) const
 
bool contains_b (const Point &point) const
 
void simplify (double tolerance)
 
Polygon convex_hull () const
 
Lines lines () const
 
Polygons contours () const
 
Polygons holes () const
 
void append (const ExPolygons &expolygons)
 
void append (const ExPolygon &expolygons)
 
bool contains (const Point &point) const
 
size_t size () const
 
ExPolygons::iterator begin ()
 
ExPolygons::iterator end ()
 
ExPolygons::const_iterator cbegin () const
 
ExPolygons::const_iterator cend () const
 
ExPolygonat (size_t i)
 
const ExPolygonat (size_t i) const
 

Public Attributes

ExPolygons expolygons
 

Constructor & Destructor Documentation

◆ ExPolygonCollection() [1/3]

Slic3r::ExPolygonCollection::ExPolygonCollection ( )
inline

◆ ExPolygonCollection() [2/3]

Slic3r::ExPolygonCollection::ExPolygonCollection ( const ExPolygon expolygon)

◆ ExPolygonCollection() [3/3]

Slic3r::ExPolygonCollection::ExPolygonCollection ( const ExPolygons expolygons)
inline

Member Function Documentation

◆ append() [1/2]

void Slic3r::ExPolygonCollection::append ( const ExPolygons expolygons)

◆ append() [2/2]

void Slic3r::ExPolygonCollection::append ( const ExPolygon expolygons)

◆ at() [1/2]

ExPolygon& Slic3r::ExPolygonCollection::at ( size_t  i)
inline

◆ at() [2/2]

const ExPolygon& Slic3r::ExPolygonCollection::at ( size_t  i) const
inline

◆ begin()

ExPolygons::iterator Slic3r::ExPolygonCollection::begin ( )
inline

◆ cbegin()

ExPolygons::const_iterator Slic3r::ExPolygonCollection::cbegin ( ) const
inline

◆ cend()

ExPolygons::const_iterator Slic3r::ExPolygonCollection::cend ( ) const
inline

◆ contains() [1/2]

template<class T >
bool Slic3r::ExPolygonCollection::contains ( const T &  item) const

◆ contains() [2/2]

bool Slic3r::ExPolygonCollection::contains ( const Point point) const

Convenience function to iterate through all of the owned ExPolygons and check if at least one contains the point.

◆ contains_b()

bool Slic3r::ExPolygonCollection::contains_b ( const Point point) const

◆ contours()

Polygons Slic3r::ExPolygonCollection::contours ( ) const

◆ convex_hull()

Polygon Slic3r::ExPolygonCollection::convex_hull ( ) const

◆ end()

ExPolygons::iterator Slic3r::ExPolygonCollection::end ( )
inline

◆ holes()

Polygons Slic3r::ExPolygonCollection::holes ( ) const

◆ lines()

Lines Slic3r::ExPolygonCollection::lines ( ) const

◆ operator ExPolygons &()

Slic3r::ExPolygonCollection::operator ExPolygons & ( )

◆ operator Points()

Slic3r::ExPolygonCollection::operator Points ( ) const

◆ operator Polygons()

Slic3r::ExPolygonCollection::operator Polygons ( ) const

◆ rotate()

void Slic3r::ExPolygonCollection::rotate ( double  angle,
const Point center 
)

◆ scale()

void Slic3r::ExPolygonCollection::scale ( double  factor)

◆ simplify()

void Slic3r::ExPolygonCollection::simplify ( double  tolerance)

◆ size()

size_t Slic3r::ExPolygonCollection::size ( ) const
inline

◆ translate() [1/3]

void Slic3r::ExPolygonCollection::translate ( double  x,
double  y 
)

◆ translate() [2/3]

void Slic3r::ExPolygonCollection::translate ( const Point  offset)
inline

◆ translate() [3/3]

void Slic3r::ExPolygonCollection::translate ( const Pointf  offset)
inline

Member Data Documentation

◆ expolygons

ExPolygons Slic3r::ExPolygonCollection::expolygons

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