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

#include <SurfaceCollection.hpp>

Public Member Functions

 SurfaceCollection ()
 
 SurfaceCollection (const Surfaces &_surfaces)
 
 operator Polygons () const
 
 operator ExPolygons () const
 
void simplify (double tolerance)
 
void group (std::vector< SurfacesConstPtr > *retval) const
 
template<class T >
bool any_internal_contains (const T &item) const
 
template<class T >
bool any_bottom_contains (const T &item) const
 
SurfacesPtr filter_by_type (SurfaceType type)
 
SurfacesPtr filter_by_type (std::initializer_list< SurfaceType > types)
 
void filter_by_type (SurfaceType type, Polygons *polygons)
 
void remove_type (const SurfaceType type)
 deletes all surfaces that match the supplied type. More...
 
void remove_types (std::initializer_list< SurfaceType > types)
 
template<int N>
void remove_types (std::array< SurfaceType, N > types)
 
void group (std::vector< SurfacesPtr > *retval)
 group surfaces by common properties More...
 
void keep_type (const SurfaceType type)
 Deletes every surface other than the ones that match the provided type. More...
 
void keep_types (std::initializer_list< SurfaceType > types)
 Deletes every surface other than the ones that match the provided types. More...
 
void keep_types (const SurfaceType *types, size_t ntypes)
 Deletes every surface other than the ones that match the provided types. More...
 
void remove_types (const SurfaceType *types, size_t ntypes)
 deletes all surfaces that match the supplied aggregate of types. More...
 
void set (const SurfaceCollection &coll)
 
void set (SurfaceCollection &&coll)
 
void set (const ExPolygons &src, SurfaceType surfaceType)
 
void set (const ExPolygons &src, const Surface &surfaceTempl)
 
void set (const Surfaces &src)
 
void set (ExPolygons &&src, SurfaceType surfaceType)
 
void set (ExPolygons &&src, const Surface &surfaceTempl)
 
void set (Surfaces &&src)
 
void append (const SurfaceCollection &coll)
 
void append (const Surfaces &surfaces)
 
void append (const ExPolygons &src, const Surface &templ)
 
void append (const ExPolygons &src, SurfaceType surfaceType)
 
size_t polygons_count () const
 
bool empty () const
 
size_t size () const
 
void clear ()
 
void erase (size_t i)
 
Surfaces::iterator begin ()
 
Surfaces::iterator end ()
 
Surfaces::const_iterator cbegin () const
 
Surfaces::const_iterator cend () const
 

Public Attributes

Surfaces surfaces
 

Constructor & Destructor Documentation

◆ SurfaceCollection() [1/2]

Slic3r::SurfaceCollection::SurfaceCollection ( )
inline

◆ SurfaceCollection() [2/2]

Slic3r::SurfaceCollection::SurfaceCollection ( const Surfaces _surfaces)
inline

Member Function Documentation

◆ any_bottom_contains()

template<class T >
template bool Slic3r::SurfaceCollection::any_bottom_contains< Polyline > ( const T &  item) const

◆ any_internal_contains()

template<class T >
template bool Slic3r::SurfaceCollection::any_internal_contains< Polyline > ( const T &  item) const

◆ append() [1/4]

void Slic3r::SurfaceCollection::append ( const SurfaceCollection coll)

◆ append() [2/4]

void Slic3r::SurfaceCollection::append ( const Surfaces surfaces)

◆ append() [3/4]

void Slic3r::SurfaceCollection::append ( const ExPolygons src,
const Surface templ 
)

◆ append() [4/4]

void Slic3r::SurfaceCollection::append ( const ExPolygons src,
SurfaceType  surfaceType 
)

◆ begin()

Surfaces::iterator Slic3r::SurfaceCollection::begin ( )
inline

◆ cbegin()

Surfaces::const_iterator Slic3r::SurfaceCollection::cbegin ( ) const
inline

◆ cend()

Surfaces::const_iterator Slic3r::SurfaceCollection::cend ( ) const
inline

◆ clear()

void Slic3r::SurfaceCollection::clear ( )
inline

◆ empty()

bool Slic3r::SurfaceCollection::empty ( ) const
inline

◆ end()

Surfaces::iterator Slic3r::SurfaceCollection::end ( )
inline

◆ erase()

void Slic3r::SurfaceCollection::erase ( size_t  i)
inline

◆ filter_by_type() [1/3]

SurfacesPtr Slic3r::SurfaceCollection::filter_by_type ( SurfaceType  type)

◆ filter_by_type() [2/3]

SurfacesPtr Slic3r::SurfaceCollection::filter_by_type ( std::initializer_list< SurfaceType types)

◆ filter_by_type() [3/3]

void Slic3r::SurfaceCollection::filter_by_type ( SurfaceType  type,
Polygons polygons 
)

◆ group() [1/2]

void Slic3r::SurfaceCollection::group ( std::vector< SurfacesConstPtr > *  retval) const

◆ group() [2/2]

void Slic3r::SurfaceCollection::group ( std::vector< SurfacesPtr > *  retval)

group surfaces by common properties

◆ keep_type()

void Slic3r::SurfaceCollection::keep_type ( const SurfaceType  type)

Deletes every surface other than the ones that match the provided type.

◆ keep_types() [1/2]

void Slic3r::SurfaceCollection::keep_types ( std::initializer_list< SurfaceType types)

Deletes every surface other than the ones that match the provided types.

◆ keep_types() [2/2]

void Slic3r::SurfaceCollection::keep_types ( const SurfaceType types,
size_t  ntypes 
)

Deletes every surface other than the ones that match the provided types.

◆ operator ExPolygons()

Slic3r::SurfaceCollection::operator ExPolygons ( ) const

◆ operator Polygons()

Slic3r::SurfaceCollection::operator Polygons ( ) const

◆ polygons_count()

size_t Slic3r::SurfaceCollection::polygons_count ( ) const

◆ remove_type()

void Slic3r::SurfaceCollection::remove_type ( const SurfaceType  type)

deletes all surfaces that match the supplied type.

◆ remove_types() [1/3]

void Slic3r::SurfaceCollection::remove_types ( std::initializer_list< SurfaceType types)

◆ remove_types() [2/3]

template<int N>
void Slic3r::SurfaceCollection::remove_types ( std::array< SurfaceType, N >  types)
inline

◆ remove_types() [3/3]

void Slic3r::SurfaceCollection::remove_types ( const SurfaceType types,
size_t  ntypes 
)

deletes all surfaces that match the supplied aggregate of types.

◆ set() [1/8]

void Slic3r::SurfaceCollection::set ( const SurfaceCollection coll)
inline

◆ set() [2/8]

void Slic3r::SurfaceCollection::set ( SurfaceCollection &&  coll)
inline

◆ set() [3/8]

void Slic3r::SurfaceCollection::set ( const ExPolygons src,
SurfaceType  surfaceType 
)
inline

◆ set() [4/8]

void Slic3r::SurfaceCollection::set ( const ExPolygons src,
const Surface surfaceTempl 
)
inline

◆ set() [5/8]

void Slic3r::SurfaceCollection::set ( const Surfaces src)
inline

◆ set() [6/8]

void Slic3r::SurfaceCollection::set ( ExPolygons &&  src,
SurfaceType  surfaceType 
)
inline

◆ set() [7/8]

void Slic3r::SurfaceCollection::set ( ExPolygons &&  src,
const Surface surfaceTempl 
)
inline

◆ set() [8/8]

void Slic3r::SurfaceCollection::set ( Surfaces &&  src)
inline

◆ simplify()

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

◆ size()

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

Member Data Documentation

◆ surfaces

Surfaces Slic3r::SurfaceCollection::surfaces

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