#include <src/libslic3r/Format/SLAArchiveWriter.hpp>
◆ ~SLAArchiveWriter()
| virtual Slic3r::SLAArchiveWriter::~SLAArchiveWriter |
( |
| ) |
|
|
virtualdefault |
◆ create()
8{
9 std::unique_ptr<SLAArchiveWriter> ret;
11
12 if (factory)
13 ret = factory(cfg);
14
15 return ret;
16}
ArchiveWriterFactory get_writer_factory(const char *formatid)
Definition SLAArchiveFormatRegistry.cpp:111
References Slic3r::get_writer_factory().
Referenced by Slic3r::SLAPrint::apply().
◆ create_raster()
| virtual std::unique_ptr< sla::RasterBase > Slic3r::SLAArchiveWriter::create_raster |
( |
| ) |
const |
|
protectedpure virtual |
◆ draw_layers()
template<class Fn , class CancelFn , class EP = ExecutionTBB>
| void Slic3r::SLAArchiveWriter::draw_layers |
( |
size_t |
layer_num, |
|
|
Fn && |
drawfn, |
|
|
CancelFn |
cancelfn = []() { return false; }, |
|
|
const EP & |
ep = {} |
|
) |
| |
|
inline |
30 { return false; },
31 const EP & ep = {})
32 {
36 [this, &drawfn, &cancelfn](size_t idx) {
37 if (cancelfn()) return;
38
39 sla::EncodedRaster &enc = m_layers[idx];
40 auto rst = create_raster();
41 drawfn(*rst, idx);
42 enc = rst->encode(get_encoder());
43 },
45 }
std::vector< sla::EncodedRaster > m_layers
Definition SLAArchiveWriter.hpp:17
void for_each(const EP &ep, It from, It to, Fn &&fn, size_t granularity=1)
Definition Execution.hpp:46
size_t max_concurrency(const EP &ep)
Definition Execution.hpp:38
◆ export_print()
◆ get_encoder()
◆ m_layers
The documentation for this class was generated from the following files: