OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::DevConfig Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevConfig.h>

Collaboration diagram for Slic3r::DevConfig:

Public Member Functions

 DevConfig (MachineObject *obj)
 ~DevConfig ()=default
bool HasChamber () const
bool SupportChamberTempDisplay () const
bool SupportChamberEdit () const
int GetChamberTempEditMin () const
int GetChamberTempEditMax () const
int GetChamberTempSwitchHeat () const
bool SupportFirstLayerInspect () const
bool SupportSaveRemotePrintFileToStorage () const
bool SupportAIMonitor () const
bool SupportPrintWithoutSD () const
bool SupportPrintAllPlates () const
bool SupportCalibrationLidar () const
bool SupportCalibrationNozzleOffset () const
bool SupportCalibrationHighTempBed () const
bool SupportCaliClumpPos () const
bool SupportCalibrationPA_FlowAuto () const
void ParseConfig (const nlohmann::json &print_json)
void ParseChamberConfig (const nlohmann::json &print_json)
void ParsePrintOptionsConfig (const nlohmann::json &print_json)
void ParseCalibrationConfig (const nlohmann::json &print_json)

Private Attributes

MachineObject * m_obj
bool m_has_chamber = false
std::optional< bool > m_support_chamber_temp_display
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 = std::numeric_limits<int>::max()
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
bool m_support_calibration_lidar = false
bool m_support_calibration_nozzle_offset = false
bool m_support_calibration_high_temp_bed = false
bool m_support_calibration_clump_pos = false
bool m_support_calibration_pa_flow_auto = false

Detailed Description

Constructor & Destructor Documentation

◆ DevConfig()

Slic3r::DevConfig::DevConfig ( MachineObject * obj)
inline
20: m_obj(obj) {};
MachineObject * m_obj
Definition DevConfig.h:57

References m_obj.

◆ ~DevConfig()

Slic3r::DevConfig::~DevConfig ( )
default

Member Function Documentation

◆ GetChamberTempEditMax()

int Slic3r::DevConfig::GetChamberTempEditMax ( ) const
inline
int m_chamber_temp_edit_max
Definition DevConfig.h:65

References m_chamber_temp_edit_max.

Referenced by Slic3r::GUI::StatusPanel::update_temp_ctrl().

Here is the caller graph for this function:

◆ GetChamberTempEditMin()

int Slic3r::DevConfig::GetChamberTempEditMin ( ) const
inline
int m_chamber_temp_edit_min
Definition DevConfig.h:64

References m_chamber_temp_edit_min.

Referenced by Slic3r::GUI::StatusPanel::update_temp_ctrl().

Here is the caller graph for this function:

◆ GetChamberTempSwitchHeat()

int Slic3r::DevConfig::GetChamberTempSwitchHeat ( ) const
inline
int m_chamber_temp_switch_heat
Definition DevConfig.h:66

References m_chamber_temp_switch_heat.

◆ HasChamber()

bool Slic3r::DevConfig::HasChamber ( ) const
inline
25{ return m_has_chamber; }
bool m_has_chamber
Definition DevConfig.h:61

References m_has_chamber.

Referenced by Slic3r::GUI::SelectMachineDialog::update_show_status().

Here is the caller graph for this function:

◆ ParseCalibrationConfig()

void Slic3r::DevConfig::ParseCalibrationConfig ( const nlohmann::json & print_json)
61{
62 DevJsonValParser::ParseVal(print_json, "support_lidar_calibration", m_support_calibration_lidar);
63 DevJsonValParser::ParseVal(print_json, "support_nozzle_offset_calibration", m_support_calibration_nozzle_offset);
64 DevJsonValParser::ParseVal(print_json, "support_high_tempbed_calibration", m_support_calibration_high_temp_bed);
65 DevJsonValParser::ParseVal(print_json, "support_auto_flow_calibration", m_support_calibration_pa_flow_auto);
66 DevJsonValParser::ParseVal(print_json, "support_clump_position_calibration", m_support_calibration_clump_pos);
67}
bool m_support_calibration_lidar
Definition DevConfig.h:77
bool m_support_calibration_pa_flow_auto
Definition DevConfig.h:82
bool m_support_calibration_clump_pos
Definition DevConfig.h:80
bool m_support_calibration_high_temp_bed
Definition DevConfig.h:79
bool m_support_calibration_nozzle_offset
Definition DevConfig.h:78
static void ParseVal(const nlohmann::json &j, const std::string &key, T &val)
Definition DevUtil.h:76

References m_support_calibration_clump_pos, m_support_calibration_high_temp_bed, m_support_calibration_lidar, m_support_calibration_nozzle_offset, m_support_calibration_pa_flow_auto, and Slic3r::DevJsonValParser::ParseVal().

Referenced by ParseConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseChamberConfig()

void Slic3r::DevConfig::ParseChamberConfig ( const nlohmann::json & print_json)
28{
29 DevJsonValParser::ParseVal(print_json, "support_chamber", m_has_chamber);
30
31 if (print_json.contains("support_chamber_temp_display")) {
32 m_support_chamber_temp_display = DevJsonValParser::GetVal<bool>(print_json, "support_chamber_temp_display");
33 }
34
35 DevJsonValParser::ParseVal(print_json, "support_chamber_temp_edit", m_support_chamber_edit);
37 {
38 if (print_json.contains("support_chamber_temp_edit_range"))
39 {
40 const auto &support_champer_range = print_json["support_chamber_temp_edit_range"];
41 if (support_champer_range.is_array() && support_champer_range.size() > 1) {
42 m_chamber_temp_edit_min = support_champer_range[0];
43 m_chamber_temp_edit_max = support_champer_range[1];
44 }
45 }
46
47 DevJsonValParser::ParseVal(print_json, "support_chamber_temp_switch_heating", m_chamber_temp_switch_heat);
48 }
49}
bool m_support_chamber_edit
Definition DevConfig.h:63
std::optional< bool > m_support_chamber_temp_display
Definition DevConfig.h:62
static T GetVal(const nlohmann::json &j, const std::string &key, const T &default_val=T())
Definition DevUtil.h:60

References Slic3r::DevJsonValParser::GetVal(), m_chamber_temp_edit_max, m_chamber_temp_edit_min, m_chamber_temp_switch_heat, m_has_chamber, m_support_chamber_edit, m_support_chamber_temp_display, and Slic3r::DevJsonValParser::ParseVal().

Referenced by ParseConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseConfig()

void Slic3r::DevConfig::ParseConfig ( const nlohmann::json & print_json)
21{
22 ParseChamberConfig(print_json);
23 ParsePrintOptionsConfig(print_json);
24 ParseCalibrationConfig(print_json);
25}
void ParsePrintOptionsConfig(const nlohmann::json &print_json)
Definition DevConfig.cpp:51
void ParseCalibrationConfig(const nlohmann::json &print_json)
Definition DevConfig.cpp:60
void ParseChamberConfig(const nlohmann::json &print_json)
Definition DevConfig.cpp:27

References ParseCalibrationConfig(), ParseChamberConfig(), and ParsePrintOptionsConfig().

Here is the call graph for this function:

◆ ParsePrintOptionsConfig()

void Slic3r::DevConfig::ParsePrintOptionsConfig ( const nlohmann::json & print_json)
52{
53 DevJsonValParser::ParseVal(print_json, "support_first_layer_inspect", m_support_first_layer_inspect);
54 DevJsonValParser::ParseVal(print_json, "support_save_remote_print_file_to_storage", m_support_save_remote_print_file_to_storage);
55 DevJsonValParser::ParseVal(print_json, "support_ai_monitoring", m_support_ai_monitor);
56 DevJsonValParser::ParseVal(print_json, "support_print_without_sd", m_support_print_without_sd);
57 DevJsonValParser::ParseVal(print_json, "support_print_all", m_support_print_all);
58}
bool m_support_print_all
Definition DevConfig.h:74
bool m_support_ai_monitor
Definition DevConfig.h:71
bool m_support_print_without_sd
Definition DevConfig.h:73
bool m_support_save_remote_print_file_to_storage
Definition DevConfig.h:70
bool m_support_first_layer_inspect
Definition DevConfig.h:69

References m_support_ai_monitor, m_support_first_layer_inspect, m_support_print_all, m_support_print_without_sd, m_support_save_remote_print_file_to_storage, and Slic3r::DevJsonValParser::ParseVal().

Referenced by ParseConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SupportAIMonitor()

bool Slic3r::DevConfig::SupportAIMonitor ( ) const
inline
35{ return m_support_ai_monitor; }

References m_support_ai_monitor.

Referenced by Slic3r::GUI::StatusPanel::update(), Slic3r::GUI::CalibrationDialog::update_cali(), and Slic3r::GUI::PrintOptionsDialog::update_options().

Here is the caller graph for this function:

◆ SupportCalibrationHighTempBed()

bool Slic3r::DevConfig::SupportCalibrationHighTempBed ( ) const
inline

References m_support_calibration_high_temp_bed.

Referenced by Slic3r::GUI::CalibrationDialog::update_cali().

Here is the caller graph for this function:

◆ SupportCalibrationLidar()

bool Slic3r::DevConfig::SupportCalibrationLidar ( ) const
inline

References m_support_calibration_lidar.

Referenced by Slic3r::GUI::CalibrationDialog::update_cali().

Here is the caller graph for this function:

◆ SupportCalibrationNozzleOffset()

bool Slic3r::DevConfig::SupportCalibrationNozzleOffset ( ) const
inline

References m_support_calibration_nozzle_offset.

Referenced by Slic3r::GUI::CalibrationDialog::update_cali(), and Slic3r::GUI::SelectMachineDialog::update_option_opts().

Here is the caller graph for this function:

◆ SupportCalibrationPA_FlowAuto()

bool Slic3r::DevConfig::SupportCalibrationPA_FlowAuto ( ) const
inline

References m_support_calibration_pa_flow_auto.

Referenced by Slic3r::GUI::SelectMachineDialog::update_option_opts().

Here is the caller graph for this function:

◆ SupportCaliClumpPos()

bool Slic3r::DevConfig::SupportCaliClumpPos ( ) const
inline

References m_support_calibration_clump_pos.

Referenced by Slic3r::GUI::CalibrationDialog::update_cali().

Here is the caller graph for this function:

◆ SupportChamberEdit()

bool Slic3r::DevConfig::SupportChamberEdit ( ) const
inline
27{ return m_support_chamber_edit; }

References m_support_chamber_edit.

Referenced by Slic3r::GUI::StatusPanel::update_temp_ctrl().

Here is the caller graph for this function:

◆ SupportChamberTempDisplay()

bool Slic3r::DevConfig::SupportChamberTempDisplay ( ) const
12{
13 if (!m_support_chamber_temp_display.has_value()) {
14 return m_has_chamber;
15 }
16
17 return m_support_chamber_temp_display.value();
18}

References m_has_chamber, and m_support_chamber_temp_display.

◆ SupportFirstLayerInspect()

bool Slic3r::DevConfig::SupportFirstLayerInspect ( ) const
inline

References m_support_first_layer_inspect.

Referenced by Slic3r::GUI::StatusPanel::update(), and Slic3r::GUI::PrintOptionsDialog::update_options().

Here is the caller graph for this function:

◆ SupportPrintAllPlates()

bool Slic3r::DevConfig::SupportPrintAllPlates ( ) const
inline
38{ return m_support_print_all; }

References m_support_print_all.

Referenced by Slic3r::GUI::SelectMachineDialog::update_show_status(), and Slic3r::GUI::SyncAmsInfoDialog::update_show_status().

Here is the caller graph for this function:

◆ SupportPrintWithoutSD()

bool Slic3r::DevConfig::SupportPrintWithoutSD ( ) const
inline

References m_support_print_without_sd.

Referenced by Slic3r::GUI::CalibUtils::send_to_print(), Slic3r::GUI::CalibUtils::send_to_print(), Slic3r::GUI::CalibrationPresetPage::update_show_status(), Slic3r::GUI::SelectMachineDialog::update_show_status(), and Slic3r::GUI::SyncAmsInfoDialog::update_show_status().

Here is the caller graph for this function:

◆ SupportSaveRemotePrintFileToStorage()

bool Slic3r::DevConfig::SupportSaveRemotePrintFileToStorage ( ) const
inline

Member Data Documentation

◆ m_chamber_temp_edit_max

int Slic3r::DevConfig::m_chamber_temp_edit_max = 60
private

◆ m_chamber_temp_edit_min

int Slic3r::DevConfig::m_chamber_temp_edit_min = 0
private

◆ m_chamber_temp_switch_heat

int Slic3r::DevConfig::m_chamber_temp_switch_heat = std::numeric_limits<int>::max()
private

◆ m_has_chamber

bool Slic3r::DevConfig::m_has_chamber = false
private

◆ m_obj

MachineObject* Slic3r::DevConfig::m_obj
private

Referenced by DevConfig().

◆ m_support_ai_monitor

bool Slic3r::DevConfig::m_support_ai_monitor = false
private

◆ m_support_calibration_clump_pos

bool Slic3r::DevConfig::m_support_calibration_clump_pos = false
private

◆ m_support_calibration_high_temp_bed

bool Slic3r::DevConfig::m_support_calibration_high_temp_bed = false
private

◆ m_support_calibration_lidar

bool Slic3r::DevConfig::m_support_calibration_lidar = false
private

◆ m_support_calibration_nozzle_offset

bool Slic3r::DevConfig::m_support_calibration_nozzle_offset = false
private

◆ m_support_calibration_pa_flow_auto

bool Slic3r::DevConfig::m_support_calibration_pa_flow_auto = false
private

◆ m_support_chamber_edit

bool Slic3r::DevConfig::m_support_chamber_edit = false
private

◆ m_support_chamber_temp_display

std::optional<bool> Slic3r::DevConfig::m_support_chamber_temp_display
private

◆ m_support_first_layer_inspect

bool Slic3r::DevConfig::m_support_first_layer_inspect = false
private

◆ m_support_print_all

bool Slic3r::DevConfig::m_support_print_all = false
private

◆ m_support_print_without_sd

bool Slic3r::DevConfig::m_support_print_without_sd = false
private

◆ m_support_save_remote_print_file_to_storage

bool Slic3r::DevConfig::m_support_save_remote_print_file_to_storage = false
private

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevConfig.h
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevConfig.cpp