mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-28 07:21:59 +08:00

Pwmx format is used by Anycubic Photon Mono X printers. File format structure and rle encoding implemented according to: https://github.com/sn4k3/UVtools https://github.com/ole00/pwmx_info
37 lines
983 B
C++
37 lines
983 B
C++
#ifndef _SLIC3R_FORMAT_PWMX_HPP_
|
|
#define _SLIC3R_FORMAT_PWMX_HPP_
|
|
|
|
#include <string>
|
|
|
|
#include "libslic3r/SLAPrint.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
class PwmxArchive: public SLAArchive {
|
|
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)) {}
|
|
|
|
void export_print(const std::string fname,
|
|
const SLAPrint &print,
|
|
ThumbnailsList &thumbnails,
|
|
const std::string &projectname = "") override;
|
|
bool uses_zipper_export() override {return false;}
|
|
};
|
|
|
|
|
|
} // namespace Slic3r::sla
|
|
|
|
#endif // _SLIC3R_FORMAT_PWMX_HPP_
|