#ifndef _SLIC3R_FORMAT_PWMX_HPP_ #define _SLIC3R_FORMAT_PWMX_HPP_ #include #include "SLAArchiveWriter.hpp" #include "libslic3r/PrintConfig.hpp" namespace Slic3r { class PwmxArchive: public SLAArchiveWriter { SLAPrinterConfig m_cfg; protected: std::unique_ptr 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)) {} void export_print(const std::string fname, const SLAPrint &print, const ThumbnailsList &thumbnails, const std::string &projectname = "") override; }; } // namespace Slic3r::sla #endif // _SLIC3R_FORMAT_PWMX_HPP_