OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
PresetBundle.hpp File Reference
#include "Config.hpp"
#include "Preset.hpp"
#include "PresetCacheFormat.hpp"
#include "AppConfig.hpp"
#include "PrintConfig.hpp"
#include "PublishSettings.hpp"
#include "Semver.hpp"
#include "enum_bitmask.hpp"
#include <climits>
#include <functional>
#include <cstddef>
#include <memory>
#include <map>
#include <set>
#include <shared_mutex>
#include <string>
#include <tuple>
#include <unordered_map>
#include <optional>
#include <array>
#include <atomic>
#include <boost/filesystem/path.hpp>
#include <unordered_set>
#include <vector>
#include <utility>
Include dependency graph for PresetBundle.hpp:

Go to the source code of this file.

Classes

struct  Slic3r::AMSMapInfo
struct  Slic3r::AMSComboInfo
struct  Slic3r::MergeFilamentInfo
struct  Slic3r::FilamentBaseInfo
struct  Slic3r::PublishedConfig
class  Slic3r::PresetBundle
struct  Slic3r::PresetBundle::PresetPreferences
struct  Slic3r::PresetBundle::LegacyUserFilamentPresetMigration
struct  Slic3r::PresetBundle::Selection
struct  Slic3r::PresetBundle::Selection::Collection
class  Slic3r::PresetBundle::SelectionExportBlocker
struct  Slic3r::PresetBundle::ObsoletePresets
struct  Slic3r::PresetBundle::VendorSource
struct  Slic3r::PresetBundle::EntryParse
struct  Slic3r::PresetBundle::VendorParse
struct  Slic3r::PresetBundle::VendorRead
struct  Slic3r::PresetBundle::VendorInstall
struct  Slic3r::PresetBundle::PresetInstall

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/

Macros

#define DEFAULT_USER_FOLDER_NAME   "default"
#define BUNDLE_STRUCTURE_JSON_NAME   "bundle_structure.json"
#define VALIDATE_PRESETS_SUCCESS   0
#define VALIDATE_PRESETS_PRINTER_NOT_FOUND   1
#define VALIDATE_PRESETS_FILAMENTS_NOT_FOUND   2
#define VALIDATE_PRESETS_MODIFIED_GCODES   3

Enumerations

enum class  VendorType {
  Unknown = 0 , Klipper , Marlin , Marlin_BBL ,
  Klipper_Qidi
}
enum  Slic3r::BundleType { Slic3r::Default = 0 , Slic3r::Local , Slic3r::Subscribed }

Class Documentation

◆ Slic3r::AMSMapInfo

struct Slic3r::AMSMapInfo
Collaboration diagram for Slic3r::AMSMapInfo:
Class Members
string ams_id {""}
string slot_id {""}

◆ Slic3r::PublishedConfig

struct Slic3r::PublishedConfig
Collaboration diagram for Slic3r::PublishedConfig:
Class Members
vector< PublishedMaterialEntry > material_keys
vector< string > material_replacements
map< int, int > mixed_slot_relocations
bool published = false
vector< string > published_keys
vector< string > skipped_keys

◆ Slic3r::PresetBundle::PresetPreferences

struct Slic3r::PresetBundle::PresetPreferences
Collaboration diagram for Slic3r::PresetBundle::PresetPreferences:
Class Members
string filament
string printer_model_id
string printer_variant
string sla_material

◆ Slic3r::PresetBundle::LegacyUserFilamentPresetMigration

struct Slic3r::PresetBundle::LegacyUserFilamentPresetMigration
Collaboration diagram for Slic3r::PresetBundle::LegacyUserFilamentPresetMigration:
Class Members
string backup
vector< string > failed
bool locked {false}

◆ Slic3r::PresetBundle::Selection

struct Slic3r::PresetBundle::Selection
Collaboration diagram for Slic3r::PresetBundle::Selection:
Class Members
vector< map< int, int > > extruder_ams_counts
vector< string > filament_presets
Collection filaments
Collection printers
Collection prints
DynamicPrintConfig project_config

◆ Slic3r::PresetBundle::Selection::Collection

struct Slic3r::PresetBundle::Selection::Collection
Collaboration diagram for Slic3r::PresetBundle::Selection::Collection:
Class Members
DynamicPrintConfig edited
DynamicPrintConfig saved
string selected
vector< bool > visible

◆ Slic3r::PresetBundle::ObsoletePresets

struct Slic3r::PresetBundle::ObsoletePresets
Collaboration diagram for Slic3r::PresetBundle::ObsoletePresets:
Class Members
vector< string > filaments
vector< string > printers
vector< string > prints
vector< string > sla_materials
vector< string > sla_prints

◆ Slic3r::PresetBundle::VendorSource

struct Slic3r::PresetBundle::VendorSource
Collaboration diagram for Slic3r::PresetBundle::VendorSource:
Class Members
path dir
string name

◆ Slic3r::PresetBundle::EntryParse

struct Slic3r::PresetBundle::EntryParse
Collaboration diagram for Slic3r::PresetBundle::EntryParse:
Class Members
vector< string > errors
ConfigSubstitutions substitutions
vector< string > warnings

◆ Slic3r::PresetBundle::VendorParse

struct Slic3r::PresetBundle::VendorParse
Collaboration diagram for Slic3r::PresetBundle::VendorParse:
Class Members
vector< EntryParse > filament_entries
vector< EntryParse > machine_entries
vector< EntryParse > process_entries

◆ Slic3r::PresetBundle::VendorRead

struct Slic3r::PresetBundle::VendorRead
Collaboration diagram for Slic3r::PresetBundle::VendorRead:
Class Members
string cache_path
bool cacheable { false }
ForwardCompatibilitySubstitutionRule compatibility_rule
VendorCacheData data
string dir
int errors_at_entry { 0 }
vector< string > failed_errors
const char * failed_kind { nullptr }
string failed_subfile
LoadConfigBundleAttributes flags
bool from_cache { false }
VendorParse parsed
string reason
string vendor_name
bool vendor_only { false }
string version
bool will_cache { false }

◆ Slic3r::PresetBundle::VendorInstall

struct Slic3r::PresetBundle::VendorInstall
Collaboration diagram for Slic3r::PresetBundle::VendorInstall:
Class Members
const PresetBundle * base_bundle
map< string, DynamicPrintConfig > config_maps
size_t count { 0 }
map< string, string > filament_id_maps
LoadConfigBundleAttributes flags
map< string, DynamicPrintConfig > include_maps
set< string > included
set< string > inherited
unordered_set< string > installed_names
bool is_from_lib
string path
PresetCollection * presets
PresetsConfigSubstitutions * substitutions
string vendor_name
const VendorProfile * vendor_profile

◆ Slic3r::PresetBundle::PresetInstall

struct Slic3r::PresetBundle::PresetInstall
Collaboration diagram for Slic3r::PresetBundle::PresetInstall:
Class Members
string alias
DynamicPrintConfig config
bool config_only { false }
vector< string > errors
string filament_id
string file_path
optional< DynamicPrintConfig > included
string reason
vector< string > renamed_from
optional< DynamicPrintConfig > retained

Macro Definition Documentation

◆ BUNDLE_STRUCTURE_JSON_NAME

◆ DEFAULT_USER_FOLDER_NAME

◆ VALIDATE_PRESETS_FILAMENTS_NOT_FOUND

#define VALIDATE_PRESETS_FILAMENTS_NOT_FOUND   2

◆ VALIDATE_PRESETS_MODIFIED_GCODES

#define VALIDATE_PRESETS_MODIFIED_GCODES   3

◆ VALIDATE_PRESETS_PRINTER_NOT_FOUND

#define VALIDATE_PRESETS_PRINTER_NOT_FOUND   1

◆ VALIDATE_PRESETS_SUCCESS

#define VALIDATE_PRESETS_SUCCESS   0

Enumeration Type Documentation

◆ VendorType

enum class VendorType
strong
Enumerator
Unknown 
Klipper 
Marlin 
Marlin_BBL 
Klipper_Qidi 
41 {
42 Unknown = 0,
43 Klipper,
44 Marlin,
47};
@ Klipper_Qidi
Definition PresetBundle.hpp:46
@ Klipper
Definition PresetBundle.hpp:43
@ Marlin_BBL
Definition PresetBundle.hpp:45
@ Unknown
Definition PresetBundle.hpp:42
@ Marlin
Definition PresetBundle.hpp:44