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

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

Collaboration diagram for Slic3r::DevBed:

Public Member Functions

 DevBed (MachineObject *obj)
float GetBedTemp ()
float GetBedTempTarget ()

Static Public Member Functions

static void ParseV1_0 (const nlohmann::json &print_json, DevBed *system)
static void ParseV2_0 (const nlohmann::json &print_json, DevBed *system)

Private Attributes

float bed_temp
float bed_temp_target
MachineObject * m_owner = nullptr

Detailed Description

Constructor & Destructor Documentation

◆ DevBed()

Slic3r::DevBed::DevBed ( MachineObject * obj)
inline
11: m_owner(obj), bed_temp(0.0f), bed_temp_target(0.0f) {}
float bed_temp
Definition DevBed.h:23
float bed_temp_target
Definition DevBed.h:24
MachineObject * m_owner
Definition DevBed.h:26

References bed_temp, bed_temp_target, and m_owner.

Referenced by ParseV1_0(), and ParseV2_0().

Here is the caller graph for this function:

Member Function Documentation

◆ GetBedTemp()

float Slic3r::DevBed::GetBedTemp ( )
inline
13{ return bed_temp; };

References bed_temp.

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

Here is the caller graph for this function:

◆ GetBedTempTarget()

float Slic3r::DevBed::GetBedTempTarget ( )
inline
14{ return bed_temp_target; };

References bed_temp_target.

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

Here is the caller graph for this function:

◆ ParseV1_0()

void Slic3r::DevBed::ParseV1_0 ( const nlohmann::json & print_json,
DevBed * system )
static
10{
11 if (print_json.contains("bed_temper")) {
12 if (print_json["bed_temper"].is_number()) { system->bed_temp = print_json["bed_temper"].get<float>(); }
13 }
14 if (print_json.contains("bed_target_temper")) {
15 if (print_json["bed_target_temper"].is_number()) { system->bed_temp_target = print_json["bed_target_temper"].get<float>(); }
16 }
17}

References DevBed(), bed_temp, and bed_temp_target.

Referenced by Slic3r::MachineObject::parse_json().

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

◆ ParseV2_0()

void Slic3r::DevBed::ParseV2_0 ( const nlohmann::json & print_json,
DevBed * system )
static
20{
21 if (print_json.contains("bed_temp") && print_json["bed_temp"].is_number()) {
22 int bed_temp_bits = print_json["bed_temp"].get<int>();
23 system->bed_temp = system->m_owner->get_flag_bits(bed_temp_bits, 0, 16);
24 system->bed_temp_target = system->m_owner->get_flag_bits(bed_temp_bits, 16, 16);
25 }
26}

References DevBed(), bed_temp, bed_temp_target, Slic3r::MachineObject::get_flag_bits(), and m_owner.

Referenced by Slic3r::MachineObject::parse_new_info().

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

Member Data Documentation

◆ bed_temp

float Slic3r::DevBed::bed_temp
private

◆ bed_temp_target

float Slic3r::DevBed::bed_temp_target
private

◆ m_owner

MachineObject* Slic3r::DevBed::m_owner = nullptr
private

Referenced by DevBed(), and ParseV2_0().


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