Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@fr.fr>2019-03-18 17:22:23 +0300
committersupermerill <merill@fr.fr>2019-03-25 19:29:57 +0300
commit8b6ab8930bc9b1d7a149577cdd54b5532bcd6047 (patch)
tree4c75fdc02eacff8d20545f1e3cac05344774b49d
parent6b8f973ac586540aefba1cde1def8f45aa37765b (diff)
add chamber_temperature (expert, filament setting)masterPE
It doesn't do anything, but can be used to write custom g-code. Ex: M191 S[chamber_temperature]
-rw-r--r--src/libslic3r/Print.cpp1
-rw-r--r--src/libslic3r/PrintConfig.cpp15
-rw-r--r--src/libslic3r/PrintConfig.hpp6
-rw-r--r--src/slic3r/GUI/Preset.cpp3
-rw-r--r--src/slic3r/GUI/Tab.cpp2
5 files changed, 24 insertions, 3 deletions
diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp
index 477286875..5e16aa96d 100644
--- a/src/libslic3r/Print.cpp
+++ b/src/libslic3r/Print.cpp
@@ -98,6 +98,7 @@ bool Print::invalidate_state_by_config_options(const std::vector<t_config_option
"avoid_crossing_perimeters",
"bed_shape",
"bed_temperature",
+ "chamber_temperature",
"before_layer_gcode",
"between_objects_gcode",
"bridge_acceleration",
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 64479f365..086e533a8 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -96,6 +96,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Bed temperature for layers after the first one. "
"Set this to zero to disable bed temperature control commands in the output.");
def->cli = "bed-temperature=i@";
+ def->sidetext = L("°C");
def->min = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
@@ -237,6 +238,17 @@ void PrintConfigDef::init_fff_params()
def->max = 180;
def->default_value = new ConfigOptionFloat(125);
+ def = this->add("chamber_temperature", coInts);
+ def->label = L("Chamber");
+ def->full_label = L("Chamber temperature");
+ def->tooltip = L("Chamber temperature0. Note that this setting doesn't do anything, but you can access it in Start G-code, Tool change G-code and the other ones, like for other temperature settings.");
+ def->cli = "chamber-temperature=i@";
+ def->sidetext = L("°C");
+ def->min = 0;
+ def->max = 300;
+ def->mode = comExpert;
+ def->default_value = new ConfigOptionInts{ 0 };
+
def = this->add("clip_multipart_objects", coBool);
def->label = L("Clip multi-part objects");
def->tooltip = L("When printing multi-material objects, this settings will make slic3r "
@@ -1074,6 +1086,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Heated build plate temperature for the first layer. Set this to zero to disable "
"bed temperature control commands in the output.");
def->cli = "first-layer-bed-temperature=i@";
+ def->sidetext = L("°C");
def->max = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
@@ -1138,6 +1151,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Extruder temperature for first layer. If you want to control temperature manually "
"during print, set this to zero to disable temperature control commands in the output file.");
def->cli = "first-layer-temperature=i@";
+ def->sidetext = L("°C");
def->min = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts{ 200 };
@@ -2603,6 +2617,7 @@ void PrintConfigDef::init_fff_params()
"temperature control commands in the output.");
def->cli = "temperature=i@";
def->full_label = L("Temperature");
+ def->sidetext = L("°C");
def->min = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts { 200 };
diff --git a/src/libslic3r/PrintConfig.hpp b/src/libslic3r/PrintConfig.hpp
index 4696d5e3c..35c80e612 100644
--- a/src/libslic3r/PrintConfig.hpp
+++ b/src/libslic3r/PrintConfig.hpp
@@ -895,10 +895,10 @@ public:
ConfigOptionInts bed_temperature;
ConfigOptionFloat bridge_acceleration;
ConfigOptionInts bridge_fan_speed;
- ConfigOptionInts top_fan_speed;
ConfigOptionFloat brim_width;
ConfigOptionBool brim_ears;
ConfigOptionFloat brim_ears_max_angle;
+ ConfigOptionInts chamber_temperature;
ConfigOptionBool complete_objects;
ConfigOptionFloats colorprint_heights;
ConfigOptionBools cooling;
@@ -947,6 +947,7 @@ public:
ConfigOptionInt standby_temperature_delta;
ConfigOptionInts temperature;
ConfigOptionInt threads;
+ ConfigOptionInts top_fan_speed;
ConfigOptionBools wipe;
ConfigOptionBool wipe_tower;
ConfigOptionFloat wipe_tower_x;
@@ -976,10 +977,10 @@ protected:
OPT_PTR(bed_temperature);
OPT_PTR(bridge_acceleration);
OPT_PTR(bridge_fan_speed);
- OPT_PTR(top_fan_speed);
OPT_PTR(brim_width);
OPT_PTR(brim_ears);
OPT_PTR(brim_ears_max_angle);
+ OPT_PTR(chamber_temperature);
OPT_PTR(complete_objects);
OPT_PTR(colorprint_heights);
OPT_PTR(cooling);
@@ -1028,6 +1029,7 @@ protected:
OPT_PTR(standby_temperature_delta);
OPT_PTR(temperature);
OPT_PTR(threads);
+ OPT_PTR(top_fan_speed);
OPT_PTR(wipe);
OPT_PTR(wipe_tower);
OPT_PTR(wipe_tower_x);
diff --git a/src/slic3r/GUI/Preset.cpp b/src/slic3r/GUI/Preset.cpp
index b99eda92e..67779113c 100644
--- a/src/slic3r/GUI/Preset.cpp
+++ b/src/slic3r/GUI/Preset.cpp
@@ -440,7 +440,8 @@ const std::vector<std::string>& Preset::filament_options()
"min_print_speed", "start_filament_gcode", "end_filament_gcode",
"compatible_prints", "compatible_prints_condition",
"compatible_printers", "compatible_printers_condition", "inherits"
- , "filament_wipe_advanced_pigment"
+ , "filament_wipe_advanced_pigment",
+ "chamber_temperature"
};
return s_opts;
}
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index 87560efd6..7b2b55743 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -1544,6 +1544,8 @@ void TabFilament::build()
line.append_option(optgroup->get_option("first_layer_bed_temperature"));
line.append_option(optgroup->get_option("bed_temperature"));
optgroup->append_line(line);
+
+ optgroup->append_single_option_line("chamber_temperature");
page = add_options_page(_(L("Cooling")), "hourglass.png");
optgroup = page->new_optgroup(_(L("Enable")));