#include <cstddef>#include <cassert>#include <cmath>#include <algorithm>#include <deque>#include <map>#include <limits>#include <set>#include <string>#include <unordered_map>#include <unordered_set>#include <functional>#include <mutex>#include <optional>#include <boost/algorithm/string/predicate.hpp>#include <boost/filesystem/path.hpp>#include <boost/property_tree/ptree_fwd.hpp>#include <vector>#include <utility>#include "Config.hpp"#include "PrintConfig.hpp"#include "Semver.hpp"#include "ProjectTask.hpp"#include "libslic3r.h"Go to the source code of this file.
Classes | |
| class | Slic3r::VendorProfile |
| struct | Slic3r::VendorProfile::PrinterVariant |
| struct | Slic3r::VendorProfile::PrinterModel |
| struct | Slic3r::PresetWithVendorProfile |
| class | Slic3r::Preset |
| struct | Slic3r::PresetOrigin |
| struct | Slic3r::PresetConfigSubstitutions |
| struct | Slic3r::LegacyUserFilamentPreset |
| class | Slic3r::PresetCollection |
| struct | Slic3r::PresetCollection::PresetFilesOnDisk |
| struct | Slic3r::PresetCollection::UserPresetLoad |
| class | Slic3r::PrinterPresetCollection |
| class | Slic3r::PhysicalPrinter |
| class | Slic3r::PhysicalPrinterCollection |
Namespaces | |
| namespace | Slic3r |
| |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/ | |
| namespace | Slic3r::PresetUtils |
Typedefs | |
| typedef std::map< std::string, VendorProfile > | Slic3r::VendorMap |
| using | Slic3r::PresetsConfigSubstitutions = std::vector<PresetConfigSubstitutions> |
Variables | |
| static constexpr const char * | GENERIC_PREFIX = "Generic " |
| struct Slic3r::LegacyUserFilamentPreset |
| struct Slic3r::PresetCollection::UserPresetLoad |
| Class Members | ||
|---|---|---|
| bool | complete { false } | |
| bool | discard_file { false } | |
| vector< string > | errors | |
| string | info_file | |
| bool | install { false } | |
| PresetFilesOnDisk | on_disk | |
| Preset | preset | |
| bool | save_compatible_printers { false } | |
| PresetsConfigSubstitutions | substitutions | |
| #define BBL_JSON_KEY_BASE_ID "base_id" |
| #define BBL_JSON_KEY_BED_MODEL "bed_model" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_BED_TEXTURE "bed_texture" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_BOTTOM_TEXTURE_END_NAME "bottom_texture_end_name" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_BOTTOM_TEXTURE_RECT "bottom_texture_rect" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_BOTTOM_TEXTURE_RECT_LONGER "bottom_texture_rect_longer" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_DEFAULT_MATERIALS "default_materials" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_DESCRIPTION "description" |
| #define BBL_JSON_KEY_FAMILY "family" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_FILAMENT_ID "filament_id" |
Referenced by Slic3r::PresetCollection::get_differed_values_to_update(), Slic3r::PresetBundle::import_json_presets(), Slic3r::ConfigBase::load_from_json(), Slic3r::PresetCollection::load_user_preset(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::PresetCollection::resolve_user_preset(), Slic3r::CLI::run(), and Slic3r::Preset::save().
| #define BBL_JSON_KEY_FILAMENT_LIST "filament_list" |
Referenced by Slic3r::PresetBundle::find_preset_vendor(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_FORCE_UPDATE "force_update" |
Referenced by Slic3r::PresetUpdater::priv::get_config_updates().
| #define BBL_JSON_KEY_FROM "from" |
| #define BBL_JSON_KEY_HOTEND_MODEL "hotend_model" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_IMAGE_BED_TYPE "image_bed_type" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_INCLUDES "include" |
Referenced by Slic3r::ConfigBase::load_from_json(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_INHERITS "inherits" |
Referenced by Slic3r::GUI::GUI_App::add_pending_vendor_preset(), Slic3r::GUI::GUI_App::check_preset_parent_available(), Slic3r::GUI::CreateFilamentPresetDialog::get_filament_presets_by_machine(), Slic3r::PresetBundle::import_json_presets(), Slic3r::PresetCollection::legacy_user_filament_presets(), Slic3r::ConfigBase::load_from_json(), Slic3r::PresetCollection::load_project_embedded_presets(), Slic3r::PresetCollection::load_user_preset(), Slic3r::PresetBundle::load_user_presets(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::PresetCollection::resolve_user_preset(), Slic3r::CLI::run(), Slic3r::PresetCollection::set_custom_preset_alias(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetCollection::write_legacy_user_filament_preset().
| #define BBL_JSON_KEY_INSTANTIATION "instantiation" |
| #define BBL_JSON_KEY_IS_CUSTOM "is_custom_defined" |
Referenced by Slic3r::ConfigBase::load_from_json().
| #define BBL_JSON_KEY_MACHINE_LIST "machine_list" |
Referenced by Slic3r::PresetBundle::find_preset_vendor(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_MACHINE_MODEL_LIST "machine_model_list" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_MIDDLE_TEXTURE_RECT "middle_texture_rect" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_MODEL_ID "model_id" |
Referenced by load_key_values_from_json(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_NAME "name" |
Referenced by Slic3r::PresetBundle::find_preset_vendor(), Slic3r::GUI::get_config_json(), Slic3r::OrcaCloudServiceAgent::get_shared_bundle(), Slic3r::OrcaCloudServiceAgent::get_user_presets(), Slic3r::PresetBundle::import_json_presets(), Slic3r::ConfigBase::load_from_json(), load_key_values_from_json(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::CLI::run(), Slic3r::ConfigBase::save_to_json(), and Slic3r::GUI::GUI_App::start_sync_user_preset().
| #define BBL_JSON_KEY_NOT_SUPPORT_BED_TYPE "not_support_bed_type" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_NOZZLE_DIAMETER "nozzle_diameter" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_PRINTER_TECH "machine_tech" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_PROCESS_LIST "process_list" |
Referenced by Slic3r::PresetBundle::find_preset_vendor(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_SETTING_ID "setting_id" |
Referenced by Slic3r::OrcaCloudServiceAgent::get_shared_bundle(), Slic3r::OrcaCloudServiceAgent::get_user_presets(), Slic3r::ConfigBase::load_from_json(), Slic3r::PresetCollection::load_user_preset(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::GUI::GUI_App::start_sync_user_preset(), and Slic3r::PresetBundle::update_system_preset_setting_ids().
| #define BBL_JSON_KEY_SUB_PATH "sub_path" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_TYPE "type" |
Referenced by Slic3r::GUI::GUI_App::add_pending_vendor_preset(), Slic3r::GUI::GUI_App::check_preset_parent_available(), Slic3r::PresetCollection::get_differed_values_to_update(), Slic3r::ConfigBase::load_from_json(), Slic3r::PresetBundle::load_user_presets(), Slic3r::CLI::run(), Slic3r::GUI::GUI_App::start_sync_user_preset(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetBundle::update_system_preset_setting_ids().
| #define BBL_JSON_KEY_URL "url" |
Referenced by Slic3r::ConfigBase::load_from_json(), and Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_USE_DOUBLE_EXTRUDER_DEFAULT_TEXTURE "use_double_extruder_default_texture" |
Referenced by Slic3r::PresetBundle::parse_vendor_json().
| #define BBL_JSON_KEY_USER_ID "user_id" |
| #define BBL_JSON_KEY_VERSION "version" |
Referenced by Slic3r::_BBS_3MF_Importer::_extract_project_embedded_presets_from_archive(), Slic3r::GUI::get_config_json(), Slic3r::PresetUpdater::priv::get_config_updates(), Slic3r::PresetCollection::get_differed_values_to_update(), Slic3r::get_version_from_json(), Slic3r::PresetBundle::import_json_presets(), Slic3r::ConfigBase::load_from_json(), Slic3r::PresetCollection::load_user_preset(), Slic3r::PresetBundle::parse_vendor_json(), Slic3r::PresetCollection::resolve_user_preset(), and Slic3r::ConfigBase::save_to_json().
| #define ORCA_JSON_KEY_CREATED_TIME "created_time" |
Referenced by Slic3r::OrcaCloudServiceAgent::sync_pull().
| #define ORCA_JSON_KEY_RENAMED_FROM "renamed_from" |
Referenced by Slic3r::ConfigBase::load_from_json(), and Slic3r::PresetBundle::parse_vendor_json().
| #define ORCA_JSON_KEY_UPDATE_TIME "updated_time" |
Referenced by Slic3r::PresetCollection::get_differed_values_to_update(), Slic3r::OrcaCloudServiceAgent::get_shared_bundle(), Slic3r::OrcaCloudServiceAgent::get_user_presets(), Slic3r::PresetCollection::load_user_preset(), Slic3r::GUI::GUI_App::start_sync_user_preset(), Slic3r::GUI::GUI_App::sync_preset(), Slic3r::OrcaCloudServiceAgent::sync_pull(), and Slic3r::OrcaCloudServiceAgent::sync_push().
| #define PRESET_BUNDLE_METADATA "bundle_metadata.json" |
| #define PRESET_CUSTOM_VENDOR "Custom" |
| #define PRESET_FILAMENT_NAME "filament" |
Referenced by Slic3r::PresetBundle::copy_files(), Slic3r::GUI::Config::Snapshot::export_selections(), Slic3r::PresetBundle::export_selections(), generate_custom_presets(), Slic3r::PresetUpdater::priv::get_config_updates(), Slic3r::Preset::get_type_from_string(), Slic3r::Preset::get_type_string(), Slic3r::PresetBundle::import_json_presets(), Slic3r::load_bundle_presets(), Slic3r::GUI::Config::Snapshot::load_ini(), Slic3r::PresetBundle::load_project_embedded_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::PresetBundle::load_user_presets(), Slic3r::PresetCollection::name(), Slic3r::AppConfig::reset_selections(), Slic3r::PresetBundle::save_user_presets(), Slic3r::GUI::GUI_App::scan_orphaned_info_files(), Slic3r::PresetCollection::section_name(), Slic3r::GUI::Tab::set_type(), Slic3r::GUI::Config::SnapshotDB::take_snapshot(), Slic3r::PresetBundle::update_selections(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetBundle::update_user_presets_directory().
| #define PRESET_IOT_FILAMENT_TYPE "filament" |
| #define PRESET_IOT_PRINT_TYPE "print" |
| #define PRESET_IOT_PRINTER_TYPE "printer" |
Referenced by Slic3r::GUI::GUI_App::add_pending_vendor_preset(), Slic3r::GUI::GUI_App::check_preset_parent_available(), Slic3r::Preset::get_iot_type_string(), Slic3r::Preset::get_type_from_string(), Slic3r::PresetBundle::load_user_presets(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetBundle::update_system_preset_setting_ids().
| #define PRESET_LOCAL_DIR "_local" |
Referenced by Slic3r::check_local_bundle(), Slic3r::detect_origin_from_path(), Slic3r::get_preset_canonical_name(), Slic3r::PresetBundle::import_presets(), Slic3r::PresetBundle::list_local_bundle_ids(), Slic3r::PresetBundle::load_user_presets(), Slic3r::anonymous_namespace{Preset.cpp}::parse_preset_name(), and Slic3r::PresetBundle::reload_local_bundle().
| #define PRESET_PRINT_NAME "process" |
Referenced by Slic3r::PresetBundle::copy_files(), Slic3r::GUI::Config::Snapshot::export_selections(), Slic3r::PresetBundle::export_selections(), generate_custom_presets(), Slic3r::PresetUpdater::priv::get_config_updates(), Slic3r::Preset::get_type_from_string(), Slic3r::Preset::get_type_string(), Slic3r::PresetBundle::import_json_presets(), Slic3r::load_bundle_presets(), Slic3r::GUI::Config::Snapshot::load_ini(), Slic3r::PresetBundle::load_project_embedded_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::PresetBundle::load_user_presets(), Slic3r::PresetCollection::name(), Slic3r::AppConfig::reset_selections(), Slic3r::PresetBundle::save_user_presets(), Slic3r::GUI::GUI_App::scan_orphaned_info_files(), Slic3r::PresetCollection::section_name(), Slic3r::GUI::Tab::set_type(), Slic3r::GUI::Config::SnapshotDB::take_snapshot(), Slic3r::PresetBundle::update_selections(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetBundle::update_user_presets_directory().
| #define PRESET_PRINTER_NAME "machine" |
Referenced by Slic3r::PresetBundle::copy_files(), Slic3r::GUI::Config::Snapshot::export_selections(), Slic3r::PresetBundle::export_selections(), generate_custom_presets(), Slic3r::PresetUpdater::priv::get_config_updates(), Slic3r::Preset::get_type_from_string(), Slic3r::Preset::get_type_string(), Slic3r::PresetBundle::import_json_presets(), Slic3r::load_bundle_presets(), Slic3r::GUI::Config::Snapshot::load_ini(), Slic3r::PresetBundle::load_project_embedded_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::PresetBundle::load_user_presets(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::PresetCollection::name(), Slic3r::AppConfig::reset_selections(), Slic3r::PresetBundle::save_user_presets(), Slic3r::GUI::GUI_App::scan_orphaned_info_files(), Slic3r::PresetCollection::section_name(), Slic3r::GUI::Tab::set_type(), Slic3r::GUI::Config::SnapshotDB::take_snapshot(), Slic3r::GUI::Plater::priv::undo_redo_to(), Slic3r::PresetBundle::update_subscribed_presets(), and Slic3r::PresetBundle::update_user_presets_directory().
| #define PRESET_PROFILES_DIR "profiles" |
| #define PRESET_PROFILES_TEMOLATE_DIR "profiles_template" |
| #define PRESET_SLA_MATERIALS_NAME "sla_materials" |
| #define PRESET_SLA_PRINT_NAME "sla_print" |
| #define PRESET_SUBSCRIBED_DIR "_subscribed" |
| #define PRESET_SYSTEM_DIR "system" |
Referenced by Slic3r::PresetUpdater::priv::priv(), Slic3r::GUI::GuideFrame::init_guide_paths(), Slic3r::installed_vendor_version(), Slic3r::is_vendor_installed(), Slic3r::GUI::BundleMap::load(), Slic3r::GUI::CreatePrinterPresetDialog::load_system_and_user_presets_with_curr_model(), Slic3r::PresetBundle::load_system_presets_from_json(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::remove_installed_vendor(), Slic3r::PresetBundle::resolve_system_preset(), Slic3r::PresetBundle::resolve_vendor_preset(), and Slic3r::PresetBundle::setup_directories().
| #define PRESET_TEMPLATE_DIR "Template" |
| #define PRESET_USER_DIR "user" |
Referenced by Slic3r::GUI::ExportConfigsDialog::~ExportConfigsDialog(), Slic3r::PresetBundle::backup_user_folder(), Slic3r::PresetBundle::backup_user_folder_to_zip(), Slic3r::GUI::ExportConfigsDialog::data_init(), Slic3r::GUI::ExportConfigsDialog::earse_preset_fields_for_safe(), generate_custom_presets(), Slic3r::PresetBundle::import_presets(), Slic3r::GUI::ExportPresetBundleDialog::InitExportData(), Slic3r::PresetBundle::list_local_bundle_ids(), Slic3r::PresetBundle::load_user_presets(), main(), Slic3r::GUI::GUI_App::maybe_migrate_user_presets_on_login(), Slic3r::PresetBundle::reload_local_bundle(), Slic3r::PresetBundle::remove_user_presets_directory(), Slic3r::PresetBundle::save_user_presets(), Slic3r::GUI::GUI_App::scan_orphaned_info_files(), Slic3r::PresetBundle::setup_directories(), Slic3r::PresetBundle::update_subscribed_presets(), Slic3r::PresetBundle::update_user_presets_directory(), and Slic3r::user_presets_lock_path().
| #define UNKNOWN_FILAMENT_ID "__unknown__" |
|
staticconstexpr |
Referenced by Slic3r::PresetCollection::filament_preset_less().