mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-04 11:14:17 +08:00
Rename SLAPrinter interface to SLAArchive as it makes more sense.
This commit is contained in:
parent
117df134f6
commit
33eba4aea6
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
class SL1Archive: public SLAPrinter {
|
class SL1Archive: public SLAArchive {
|
||||||
SLAPrinterConfig m_cfg;
|
SLAPrinterConfig m_cfg;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user