![]() |
Prusa Slicer 2.6.0
|
#include <src/libnest2d/include/libnest2d/placers/placer_boilerplate.hpp>
Inheritance diagram for libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >:
Collaboration diagram for libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >:Classes | |
| class | PackResult |
Public Types | |
| using | ShapeType = RawShape |
| using | Item = _Item< RawShape > |
| using | Vertex = TPoint< RawShape > |
| using | Segment = _Segment< Vertex > |
| using | BinType = TBin |
| using | Coord = TCoord< Vertex > |
| using | Config = Cfg |
| using | ItemGroup = _ItemGroup< RawShape > |
| using | DefaultIter = typename ItemGroup::const_iterator |
Public Member Functions | |
| PlacerBoilerplate (const BinType &bin, unsigned cap=50) | |
| const BinType & | bin () const BP2D_NOEXCEPT |
| template<class TB > | |
| void | bin (TB &&b) |
| void | configure (const Config &config) BP2D_NOEXCEPT |
| template<class Range = ConstItemRange<DefaultIter>> | |
| bool | pack (Item &item, const Range &rem=Range()) |
| void | preload (const ItemGroup &packeditems) |
| void | accept (PackResult &r) |
| void | unpackLast () |
| const ItemGroup & | getItems () const |
| void | clearItems () |
| double | filledArea () const |
Protected Attributes | |
| BinType | bin_ |
| ItemGroup | items_ |
| Cfg | config_ |
Private Attributes | |
| bool | farea_valid_ = false |
| double | farea_ = 0.0 |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::BinType = TBin |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::Config = Cfg |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::Coord = TCoord<Vertex> |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::DefaultIter = typename ItemGroup::const_iterator |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::Item = _Item<RawShape> |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::ItemGroup = _ItemGroup<RawShape> |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::Segment = _Segment<Vertex> |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::ShapeType = RawShape |
| using libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::Vertex = TPoint<RawShape> |
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_.
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_valid_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::PackResult::item_ptr_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::PackResult::move_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::PackResult::rot_, libnest2d::_Item< RawShape >::rotation(), and libnest2d::_Item< RawShape >::translation().
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_valid_, and libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_.
Referenced by libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::clearItems().
Here is the caller graph for this function:
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::config_.
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_valid_, and libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_.
|
inline |
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_valid_, libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_, and libnest2d::rem().
Here is the call graph for this function:
|
inline |
References libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::farea_valid_, and libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::items_.
Referenced by libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::preload().
Here is the caller graph for this function:
|
inline |
|
protected |
|
protected |
|
mutableprivate |
|
mutableprivate |
Referenced by libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::accept(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::clearItems(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::filledArea(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::pack(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::preload(), and libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::unpackLast().
|
protected |
Referenced by libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::PlacerBoilerplate(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::accept(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::clearItems(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::filledArea(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::getItems(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::pack(), libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::preload(), and libnest2d::placers::PlacerBoilerplate< Subclass, RawShape, TBin, Cfg >::unpackLast().