![]() |
Prusa Slicer 2.6.0
|
#include <src/libnest2d/tools/svgtools.hpp>
Collaboration diagram for libnest2d::svg::SVGWriter< RawShape >:Classes | |
| struct | Config |
Public Types | |
| enum | OrigoLocation { TOPLEFT , BOTTOMLEFT } |
Public Member Functions | |
| SVGWriter (const Config &conf=Config()) | |
| void | setSize (const Box &box) |
| void | writeShape (RawShape tsh) |
| void | writeItem (const Item &item) |
| void | writePackGroup (const PackGroup &result) |
| template<class ItemIt > | |
| void | writeItems (ItemIt from, ItemIt to) |
| void | addLayer () |
| void | finishLayer () |
| void | save (const std::string &filepath) |
Private Types | |
| using | Item = _Item< RawShape > |
| using | Coord = TCoord< TPoint< RawShape > > |
| using | Box = _Box< TPoint< RawShape > > |
| using | PackGroup = _PackGroup< RawShape > |
Private Member Functions | |
| std::string & | currentLayer () |
| const std::string | header () const |
Private Attributes | |
| Config | conf_ |
| std::vector< std::string > | svg_layers_ |
| bool | finished_ = false |
|
private |
|
private |
|
private |
|
private |
| enum libnest2d::svg::SVGWriter::OrigoLocation |
| Enumerator | |
|---|---|
| TOPLEFT | |
| BOTTOMLEFT | |
|
inline |
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::finished_, libnest2d::svg::SVGWriter< RawShape >::header(), and libnest2d::svg::SVGWriter< RawShape >::svg_layers_.
Referenced by libnest2d::svg::SVGWriter< RawShape >::writePackGroup(), and libnest2d::svg::SVGWriter< RawShape >::writeShape().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References libnest2d::svg::SVGWriter< RawShape >::svg_layers_.
Referenced by libnest2d::svg::SVGWriter< RawShape >::finishLayer(), and libnest2d::svg::SVGWriter< RawShape >::writeShape().
Here is the caller graph for this function:
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::currentLayer(), and libnest2d::svg::SVGWriter< RawShape >::finished_.
Referenced by libnest2d::svg::SVGWriter< RawShape >::writePackGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References libnest2d::svg::SVGWriter< RawShape >::conf_, libnest2d::svg::SVGWriter< RawShape >::Config::height, and libnest2d::svg::SVGWriter< RawShape >::Config::width.
Referenced by libnest2d::svg::SVGWriter< RawShape >::addLayer().
Here is the caller graph for this function:
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::finished_, and libnest2d::svg::SVGWriter< RawShape >::svg_layers_.
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::conf_, libnest2d::_Box< P >::height(), libnest2d::svg::SVGWriter< RawShape >::Config::height, libnest2d::svg::SVGWriter< RawShape >::Config::mm_in_coord_units, libnest2d::_Box< P >::width(), and libnest2d::svg::SVGWriter< RawShape >::Config::width.
Here is the call graph for this function:
|
inline |
References libnest2d::_Item< RawShape >::transformedShape(), and libnest2d::svg::SVGWriter< RawShape >::writeShape().
Referenced by libnest2d::svg::SVGWriter< RawShape >::writePackGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References libnest2d::BIN_ID_UNSET, and libnest2d::svg::SVGWriter< RawShape >::writePackGroup().
Here is the call graph for this function:
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::addLayer(), libnest2d::svg::SVGWriter< RawShape >::finishLayer(), and libnest2d::svg::SVGWriter< RawShape >::writeItem().
Referenced by libnest2d::svg::SVGWriter< RawShape >::writeItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References libnest2d::svg::SVGWriter< RawShape >::addLayer(), libnest2d::svg::SVGWriter< RawShape >::BOTTOMLEFT, libnest2d::svg::SVGWriter< RawShape >::conf_, libnest2d::shapelike::contour(), libnest2d::svg::SVGWriter< RawShape >::currentLayer(), libnest2d::getY(), libnest2d::svg::SVGWriter< RawShape >::Config::height, libnest2d::shapelike::holes(), libnest2d::svg::SVGWriter< RawShape >::Config::mm_in_coord_units, libnest2d::svg::SVGWriter< RawShape >::Config::origo_location, libnest2d::setY(), and libnest2d::svg::SVGWriter< RawShape >::svg_layers_.
Referenced by libnest2d::svg::SVGWriter< RawShape >::writeItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |