update slic3r

This commit is contained in:
QIDI TECH
2025-02-10 15:26:53 +08:00
parent e0c8038c88
commit 7529de7fe1
144 changed files with 9006 additions and 3997 deletions

View File

@@ -14,9 +14,9 @@
#include "libslic3r/GCode/GCodeProcessor.hpp"
#include "Jobs/Job.hpp"
#include "Jobs/Worker.hpp"
//y
#include "libslic3r/GCode/ThumbnailData.hpp"
#include "slic3r/GUI/Camera.hpp"
#include "slic3r/Utils/PrintHost.hpp"
class wxString;
@@ -43,6 +43,7 @@ namespace UndoRedo {
namespace GUI {
wxDECLARE_EVENT(EVT_SCHEDULE_BACKGROUND_PROCESS, SimpleEvent);
wxDECLARE_EVENT(EVT_REGENERATE_BED_THUMBNAILS, SimpleEvent);
class MainFrame;
class GLCanvas3D;
@@ -52,6 +53,7 @@ struct Camera;
class GLToolbar;
class UserAccount;
class PresetArchiveDatabase;
enum class ArrangeSelectionMode;
class Plater: public wxPanel
{
@@ -80,10 +82,17 @@ public:
Sidebar& sidebar();
const Model& model() const;
Model& model();
//y
const Print& fff_print() const;
Print& fff_print();
const SLAPrint& sla_print() const;
SLAPrint& sla_print();
Print& active_fff_print();
SLAPrint& active_sla_print();
std::vector<std::unique_ptr<Print>>& get_fff_prints();
const std::vector<GCodeProcessorResult>& get_gcode_results() const;
//B34
std::string double_to_str(const double value);
@@ -114,6 +123,8 @@ public:
void convert_gcode_to_ascii();
void convert_gcode_to_binary();
void reload_print();
void object_list_changed();
void generate_thumbnail(ThumbnailData& data, unsigned int w, unsigned int h, const ThumbnailsParams& thumbnail_params, Camera::EType camera_type);
std::vector<size_t> load_files(const std::vector<boost::filesystem::path>& input_files, bool load_model = true, bool load_config = true, bool imperial_units = false);
// To be called when providing a list of files to the GUI slic3r on command line.
@@ -207,9 +218,21 @@ public:
void apply_cut_object_to_model(size_t init_obj_idx, const ModelObjectPtrs& cut_objects);
void with_mocked_fff_background_process(
Print &print,
GCodeProcessorResult &result,
const int bed_index,
const std::function<void()> &callable
);
//B64
ThumbnailData get_thumbnailldate_send();
//y20
ThumbnailData get_thumbnailldate_from_bed(int num);
int get_beds_num();
int get_active_bed();
void export_gcode(bool prefer_removable);
void export_all_gcodes(bool prefer_removable);
void export_stl_obj(bool extended = false, bool selection_only = false);
bool export_3mf(const boost::filesystem::path& output_path = boost::filesystem::path());
void reload_from_disk();
@@ -235,7 +258,11 @@ public:
//y15
// void send_gcode_inner(DynamicPrintConfig* physical_printer_config);
void eject_drive();
std::optional<PrintHostJob> get_connect_print_host_job();
void connect_gcode();
void connect_gcode_all();
void printables_to_connect_gcode(const std::string& url);
std::string get_upload_filename();
void take_snapshot(const std::string &snapshot_name);
@@ -272,6 +299,7 @@ public:
void update_menus();
void show_action_buttons(const bool is_ready_to_slice) const;
void show_action_buttons() const;
void show_autoslicing_action_buttons() const;
wxString get_project_filename(const wxString& extension = wxEmptyString) const;
void set_project_filename(const wxString& filename);
@@ -286,9 +314,10 @@ public:
GLCanvas3D* get_current_canvas3D();
void render_sliders(GLCanvas3D& canvas);
void arrange();
void arrange(Worker &w, bool selected);
void arrange_current_bed();
void arrange(Worker &w, const ArrangeSelectionMode &selected);
void set_current_canvas_as_dirty();
void unbind_canvas_event_handlers();
@@ -368,9 +397,6 @@ public:
NotificationManager* get_notification_manager();
const NotificationManager* get_notification_manager() const;
PresetArchiveDatabase* get_preset_archive_database();
const PresetArchiveDatabase* get_preset_archive_database() const;
UserAccount* get_user_account();
const UserAccount* get_user_account() const;
@@ -451,6 +477,12 @@ public:
};
private:
std::optional<fs_path> get_default_output_file();
std::optional<wxString> check_output_path_has_error(const boost::filesystem::path& path) const;
std::optional<fs_path> get_output_path(const std::string &start_dir, const fs_path &default_output_file);
std::optional<fs_path> get_multiple_output_dir(const std::string &start_dir);
void export_gcode_to_path(const fs_path &output_path, const std::function<void(bool)> &export_callback);
void reslice_until_step_inner(int step, const ModelObject &object, bool postpone_error_messages);
struct priv;