diff options
author | bubnikv <bubnikv@gmail.com> | 2016-09-13 14:30:00 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-09-13 14:30:00 +0300 |
commit | 620c6c7378c4799980f63794669548c104b9bcea (patch) | |
tree | fc7aea3342539018bb19d27abd1144956eb00b4d /xs/src/libslic3r/PrintConfig.cpp | |
parent | a5b7f14dfa291039fd6971a356efd011fab84440 (diff) |
Ported from the playground branch. Various documentation and optimization.
Diffstat (limited to 'xs/src/libslic3r/PrintConfig.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintConfig.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp index 47609aaff..e3bc4bad9 100644 --- a/xs/src/libslic3r/PrintConfig.cpp +++ b/xs/src/libslic3r/PrintConfig.cpp @@ -885,11 +885,37 @@ PrintConfigDef::PrintConfigDef() def->enum_values.push_back("random"); def->enum_values.push_back("nearest"); def->enum_values.push_back("aligned"); +// def->enum_values.push_back("preferred"); def->enum_labels.push_back("Random"); def->enum_labels.push_back("Nearest"); def->enum_labels.push_back("Aligned"); +// def->enum_labels.push_back("Preferred Direction"); def->default_value = new ConfigOptionEnum<SeamPosition>(spAligned); +#if 0 + def = this->add("seam_preferred_direction", coFloat); +// def->gui_type = "slider"; + def->label = "Direction"; + def->sidetext = "°"; + def->full_label = "Preferred direction of the seam"; + def->tooltip = "Seam preferred direction"; + def->cli = "seam-preferred-direction=f"; + def->min = 0; + def->max = 360; + def->default_value = new ConfigOptionFloat(0); + + def = this->add("seam_preferred_direction_jitter", coFloat); +// def->gui_type = "slider"; + def->label = "Jitter"; + def->sidetext = "°"; + def->full_label = "Seam preferred direction jitter"; + def->tooltip = "Preferred direction of the seam - jitter"; + def->cli = "seam-preferred-direction-jitter=f"; + def->min = 0; + def->max = 360; + def->default_value = new ConfigOptionFloat(30); +#endif + def = this->add("serial_port", coString); def->gui_type = "select_open"; def->label = ""; |