mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 21:01:50 +08:00
43 lines
835 B
C++
43 lines
835 B
C++
#ifndef SLAIMPORTJOB_HPP
|
|
#define SLAIMPORTJOB_HPP
|
|
|
|
#include "Job.hpp"
|
|
|
|
#include "libslic3r/Point.hpp"
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
|
|
class SLAImportJobView {
|
|
public:
|
|
enum Sel { modelAndProfile, profileOnly, modelOnly};
|
|
|
|
virtual ~SLAImportJobView() = default;
|
|
|
|
virtual Sel get_selection() const = 0;
|
|
virtual Vec2i get_marchsq_windowsize() const = 0;
|
|
virtual std::string get_path() const = 0;
|
|
};
|
|
|
|
class Plater;
|
|
|
|
class SLAImportJob : public Job {
|
|
class priv;
|
|
|
|
std::unique_ptr<priv> p;
|
|
using Sel = SLAImportJobView::Sel;
|
|
|
|
public:
|
|
void prepare();
|
|
void process(Ctl &ctl) override;
|
|
void finalize(bool canceled, std::exception_ptr &) override;
|
|
|
|
SLAImportJob(const SLAImportJobView *);
|
|
~SLAImportJob();
|
|
|
|
void reset();
|
|
};
|
|
|
|
}} // namespace Slic3r::GUI
|
|
|
|
#endif // SLAIMPORTJOB_HPP
|