mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 11:52:05 +00:00
ENH: clean codes about device
JIRA: [STUDIO-13609] Change-Id: I591de7033360b9570600006cfbce2148a8d031d5 (cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
77
src/slic3r/GUI/DeviceCore/DevConfig.h
Normal file
77
src/slic3r/GUI/DeviceCore/DevConfig.h
Normal file
@@ -0,0 +1,77 @@
|
||||
#pragma once
|
||||
#include "libslic3r/CommonDefs.hpp"
|
||||
|
||||
#include "slic3r/Utils/json_diff.hpp"
|
||||
#include <wx/string.h>
|
||||
|
||||
|
||||
namespace Slic3r
|
||||
{
|
||||
|
||||
//Previous definitions
|
||||
class MachineObject;
|
||||
|
||||
|
||||
class DevConfig
|
||||
{
|
||||
public:
|
||||
DevConfig(MachineObject* obj) : m_obj(obj) {};
|
||||
~DevConfig() = default;
|
||||
|
||||
public:
|
||||
// chamber
|
||||
bool SupportChamberEdit() const { return m_support_chamber_edit; }
|
||||
int GetChamberTempEditMin() const { return m_chamber_temp_edit_min; }
|
||||
int GetChamberTempEditMax() const { return m_chamber_temp_edit_max; }
|
||||
int GetChamberTempSwitchHeat() const { return m_chamber_temp_switch_heat; }
|
||||
|
||||
// print options
|
||||
bool SupportFirstLayerInspect() const { return m_support_first_layer_inspect; }
|
||||
bool SupportSaveRemotePrintFileToStorage() const { return m_support_save_remote_print_file_to_storage; }
|
||||
bool SupportAIMonitor() const { return m_support_ai_monitor; }
|
||||
|
||||
bool SupportPrintWithoutSD() const { return m_support_print_without_sd; }
|
||||
bool SupportPrintAllPlates() const { return m_support_print_all; }
|
||||
|
||||
// calibration options
|
||||
bool SupportCalibrationLidar() const { return m_support_calibration_lidar; }
|
||||
bool SupportCalibrationNozzleOffset() const { return m_support_calibration_nozzle_offset; }
|
||||
bool SupportCalibrationHighTempBed() const { return m_support_calibration_high_temp_bed; }
|
||||
|
||||
bool SupportCalibrationPA_FlowAuto() const { return m_support_calibration_pa_flow_auto; }
|
||||
|
||||
public:
|
||||
/*Setters*/
|
||||
void ParseConfig(const json& print_json);
|
||||
|
||||
void ParseChamberConfig(const json& print_json); // chamber
|
||||
void ParsePrintOptionsConfig(const json& print_json); // print options
|
||||
void ParseCalibrationConfig(const json& print_json); //cali
|
||||
|
||||
private:
|
||||
MachineObject* m_obj;
|
||||
|
||||
/*configure vals*/
|
||||
// chamber
|
||||
bool m_support_chamber_edit = false;
|
||||
int m_chamber_temp_edit_min = 0;
|
||||
int m_chamber_temp_edit_max = 60;
|
||||
int m_chamber_temp_switch_heat = LONG_MAX; /* the min temp to start heating, default to LONG_MAX */
|
||||
|
||||
// print options
|
||||
bool m_support_first_layer_inspect = false;
|
||||
bool m_support_save_remote_print_file_to_storage = false;
|
||||
bool m_support_ai_monitor = false;
|
||||
|
||||
bool m_support_print_without_sd = false;
|
||||
bool m_support_print_all = false;
|
||||
|
||||
// calibration options
|
||||
bool m_support_calibration_lidar = false;
|
||||
bool m_support_calibration_nozzle_offset = false;
|
||||
bool m_support_calibration_high_temp_bed = false; // High-temperature Heatbed Calibration
|
||||
|
||||
bool m_support_calibration_pa_flow_auto = false;// PA flow calibration. used in SendPrint
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user