2022-02-11 22:06:47 +00:00
|
|
|
#ifndef _SLIC3R_FORMAT_PWMX_HPP_
|
|
|
|
#define _SLIC3R_FORMAT_PWMX_HPP_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2022-04-20 09:04:11 +00:00
|
|
|
#include "SLAArchiveWriter.hpp"
|
2022-02-17 11:48:17 +00:00
|
|
|
|
|
|
|
#include "libslic3r/PrintConfig.hpp"
|
2022-02-11 22:06:47 +00:00
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2022-04-20 09:04:11 +00:00
|
|
|
class PwmxArchive: public SLAArchiveWriter {
|
2022-02-11 22:06:47 +00:00
|
|
|
SLAPrinterConfig m_cfg;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::unique_ptr<sla::RasterBase> create_raster() const override;
|
|
|
|
sla::RasterEncoder get_encoder() const override;
|
|
|
|
|
|
|
|
SLAPrinterConfig & cfg() { return m_cfg; }
|
|
|
|
const SLAPrinterConfig & cfg() const { return m_cfg; }
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
PwmxArchive() = default;
|
|
|
|
explicit PwmxArchive(const SLAPrinterConfig &cfg): m_cfg(cfg) {}
|
|
|
|
explicit PwmxArchive(SLAPrinterConfig &&cfg): m_cfg(std::move(cfg)) {}
|
2022-02-14 12:27:06 +00:00
|
|
|
|
|
|
|
void export_print(const std::string fname,
|
|
|
|
const SLAPrint &print,
|
|
|
|
const ThumbnailsList &thumbnails,
|
|
|
|
const std::string &projectname = "") override;
|
2022-02-11 22:06:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Slic3r::sla
|
|
|
|
|
|
|
|
#endif // _SLIC3R_FORMAT_PWMX_HPP_
|