Rename SLAPrinter interface to SLAArchive as it makes more sense.

This commit is contained in:
tamasmeszaros 2021-09-21 14:26:50 +02:00
parent 117df134f6
commit 33eba4aea6
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
namespace Slic3r { namespace Slic3r {
class SL1Archive: public SLAPrinter { class SL1Archive: public SLAArchive {
SLAPrinterConfig m_cfg; SLAPrinterConfig m_cfg;
protected: protected:

View File

@ -670,7 +670,7 @@ std::string SLAPrint::validate(std::string*) const
return ""; return "";
} }
void SLAPrint::set_printer(SLAPrinter *arch) void SLAPrint::set_printer(SLAArchive *arch)
{ {
invalidate_step(slapsRasterize); invalidate_step(slapsRasterize);
m_printer = arch; m_printer = arch;

View File

@ -387,7 +387,7 @@ struct SLAPrintStatistics
} }
}; };
class SLAPrinter { class SLAArchive {
protected: protected:
std::vector<sla::EncodedRaster> m_layers; std::vector<sla::EncodedRaster> m_layers;
@ -395,7 +395,7 @@ protected:
virtual sla::RasterEncoder get_encoder() const = 0; virtual sla::RasterEncoder get_encoder() const = 0;
public: public:
virtual ~SLAPrinter() = default; virtual ~SLAArchive() = default;
virtual void apply(const SLAPrinterConfig &cfg) = 0; virtual void apply(const SLAPrinterConfig &cfg) = 0;
@ -526,7 +526,7 @@ public:
// TODO: use this structure for the preview in the future. // TODO: use this structure for the preview in the future.
const std::vector<PrintLayer>& print_layers() const { return m_printer_input; } const std::vector<PrintLayer>& print_layers() const { return m_printer_input; }
void set_printer(SLAPrinter *archiver); void set_printer(SLAArchive *archiver);
private: private:
@ -548,7 +548,7 @@ private:
std::vector<PrintLayer> m_printer_input; std::vector<PrintLayer> m_printer_input;
// The archive object which collects the raster images after slicing // The archive object which collects the raster images after slicing
SLAPrinter *m_printer = nullptr; SLAArchive *m_printer = nullptr;
// Estimated print time, material consumed. // Estimated print time, material consumed.
SLAPrintStatistics m_print_statistics; SLAPrintStatistics m_print_statistics;