#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevFan.h>
Public Types | |
| enum | FanType { COOLING_FAN = 1 , BIG_COOLING_FAN = 2 , CHAMBER_FAN = 3 , EXHAUST_FAN , FILTER_FAN } |
Public Member Functions | |
| DevFan (MachineObject *obj) | |
| bool | is_at_heating_mode () const |
| bool | is_at_cooling_mode () const |
| void | SetSupportCoolingFilter (bool enable) |
| AirDuctData | GetAirDuctData () |
| void | converse_to_duct (bool is_suppt_part_fun, bool is_suppt_aux_fun, bool is_suppt_cham_fun) |
| int | command_handle_response (const nlohmann::json &response) |
| int | command_control_fan (int fan_type, int val) |
| int | command_control_fan_new (int fan_id, int val) |
| int | command_control_air_duct (int mode_id, int submode, const CommandCallBack &cb) |
| void | ParseV1_0 (const nlohmann::json &print_json) |
| void | ParseV2_0 (const nlohmann::json &print_json) |
| void | ParseV3_0 (const nlohmann::json &print_json) |
| bool | GetSupportAirduct () |
| bool | GetSupportAuxFanData () |
| bool | GetSupportChamberFan () |
| int | GetHeatBreakFanSpeed () |
| int | GetCoolingFanSpeed () |
| int | GetBigFan1Speed () |
| int | GetBigFan2Speed () |
| uint32_t | GetFanGear () |
Private Attributes | |
| AirDuctData | m_air_duct_data |
| bool | is_support_aux_fan {false} |
| bool | is_support_chamber_fan {false} |
| bool | is_support_airduct {false} |
| int | heatbreak_fan_speed = 0 |
| int | cooling_fan_speed = 0 |
| int | big_fan1_speed = 0 |
| int | big_fan2_speed = 0 |
| uint32_t | fan_gear = 0 |
| std::map< std::string, CommandCallBack > | m_callback_list |
| MachineObject * | m_owner = nullptr |
| Enumerator | |
|---|---|
| COOLING_FAN | |
| BIG_COOLING_FAN | |
| CHAMBER_FAN | |
| EXHAUST_FAN | |
| FILTER_FAN | |
|
inline |
| int Slic3r::DevFan::command_control_air_duct | ( | int | mode_id, |
| int | submode, | ||
| const CommandCallBack & | cb ) |
References m_callback_list, m_owner, and Slic3r::MachineObject::m_sequence_id.
| int Slic3r::DevFan::command_control_fan | ( | int | fan_type, |
| int | val ) |
References m_owner.
| int Slic3r::DevFan::command_control_fan_new | ( | int | fan_id, |
| int | val ) |
References m_owner, and Slic3r::MachineObject::m_sequence_id.
| int Slic3r::DevFan::command_handle_response | ( | const nlohmann::json & | response | ) |
References m_callback_list.
| void Slic3r::DevFan::converse_to_duct | ( | bool | is_suppt_part_fun, |
| bool | is_suppt_aux_fun, | ||
| bool | is_suppt_cham_fun ) |
References Slic3r::AIR_FAN_TYPE, Slic3r::FAN_CHAMBER_0_IDX, Slic3r::FAN_COOLING_0_AIRDOOR, Slic3r::FAN_REMOTE_COOLING_0_IDX, Slic3r::AirParts::func, Slic3r::AirParts::id, m_air_duct_data, Slic3r::AirParts::range_end, Slic3r::AirParts::range_start, Slic3r::AirParts::state, and Slic3r::AirParts::type.
|
inline |
References m_air_duct_data.
Referenced by Slic3r::GUI::FanControlPopupNew::update_fan_data(), and Slic3r::GUI::PrintOptionsDialog::update_purify_air_at_print_end().
|
inline |
References big_fan1_speed.
Referenced by Slic3r::GUI::FanControlPopupNew::update_fan_data().
|
inline |
References big_fan2_speed.
Referenced by Slic3r::GUI::FanControlPopupNew::update_fan_data().
|
inline |
References cooling_fan_speed.
Referenced by Slic3r::GUI::FanControlPopupNew::update_fan_data().
|
inline |
References fan_gear.
|
inline |
References heatbreak_fan_speed.
|
inline |
References is_support_airduct.
|
inline |
References is_support_aux_fan.
|
inline |
References is_support_aux_fan.
|
inline |
References Slic3r::AIR_DUCT_COOLING_FILT, and m_air_duct_data.
|
inline |
References Slic3r::AIR_DUCT_HEATING_INTERNAL_FILT, and m_air_duct_data.
| void Slic3r::DevFan::ParseV1_0 | ( | const nlohmann::json & | print_json | ) |
References big_fan1_speed, big_fan2_speed, cooling_fan_speed, fan_gear, and heatbreak_fan_speed.
| void Slic3r::DevFan::ParseV2_0 | ( | const nlohmann::json & | print_json | ) |
References is_support_aux_fan, and is_support_chamber_fan.
| void Slic3r::DevFan::ParseV3_0 | ( | const nlohmann::json & | print_json | ) |
References Slic3r::AIR_DUCT_EXHAUST, Slic3r::AirMode::ctrl, Slic3r::AirMode::id, is_support_airduct, m_air_duct_data, m_owner, Slic3r::AirMode::off, Slic3r::range(), and Slic3r::AirParts::type.
|
inline |
References m_air_duct_data.
|
private |
Referenced by GetBigFan1Speed(), and ParseV1_0().
|
private |
Referenced by GetBigFan2Speed(), and ParseV1_0().
|
private |
Referenced by GetCoolingFanSpeed(), and ParseV1_0().
|
private |
Referenced by GetFanGear(), and ParseV1_0().
|
private |
Referenced by GetHeatBreakFanSpeed(), and ParseV1_0().
|
private |
Referenced by GetSupportAirduct(), and ParseV3_0().
|
private |
Referenced by GetSupportAuxFanData(), GetSupportChamberFan(), and ParseV2_0().
|
private |
Referenced by ParseV2_0().
|
private |
Referenced by converse_to_duct(), GetAirDuctData(), is_at_cooling_mode(), is_at_heating_mode(), ParseV3_0(), and SetSupportCoolingFilter().
|
private |
Referenced by command_control_air_duct(), and command_handle_response().
|
private |
Referenced by DevFan(), command_control_air_duct(), command_control_fan(), command_control_fan_new(), and ParseV3_0().