Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Registry Class Reference
+ Collaboration diagram for Slic3r::Registry:

Static Public Member Functions

static const Registryget_instance ()
 
static const std::set< ArchiveEntry > & get ()
 

Private Member Functions

 Registry ()
 

Private Attributes

std::set< ArchiveEntryentries
 

Static Private Attributes

static std::unique_ptr< Registryregistry = nullptr
 

Detailed Description

Constructor & Destructor Documentation

◆ Registry()

Slic3r::Registry::Registry ( )
inlineprivate

Supports only ANYCUBIC_SLA_VERSION_1 anycubic_sla_format_versioned("pws", "Photon / Photon S", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("pw0", "Photon Zero", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("pwx", "Photon X", ANYCUBIC_SLA_VERSION_1),

Supports ANYCUBIC_SLA_VERSION_1 and ANYCUBIC_SLA_VERSION_515 anycubic_sla_format_versioned("pwmo", "Photon Mono", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("pwms", "Photon Mono SE", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("dlp", "Photon Ultra", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("pwmx", "Photon Mono X", ANYCUBIC_SLA_VERSION_1), anycubic_sla_format_versioned("pmsq", "Photon Mono SQ", ANYCUBIC_SLA_VERSION_1),

Supports ANYCUBIC_SLA_VERSION_515 and ANYCUBIC_SLA_VERSION_516 anycubic_sla_format_versioned("pwma", "Photon Mono 4K", ANYCUBIC_SLA_VERSION_515), anycubic_sla_format_versioned("pm3", "Photon M3", ANYCUBIC_SLA_VERSION_515), anycubic_sla_format_versioned("pm3m", "Photon M3 Max", ANYCUBIC_SLA_VERSION_515),

Supports NYCUBIC_SLA_VERSION_515 and ANYCUBIC_SLA_VERSION_516 and ANYCUBIC_SLA_VERSION_517 anycubic_sla_format_versioned("pwmb", "Photon Mono X 6K / Photon M3 Plus", ANYCUBIC_SLA_VERSION_515), anycubic_sla_format_versioned("dl2p", "Photon Photon D2", ANYCUBIC_SLA_VERSION_515), anycubic_sla_format_versioned("pmx2", "Photon Mono X2", ANYCUBIC_SLA_VERSION_515), anycubic_sla_format_versioned("pm3r", "Photon M3 Premium", ANYCUBIC_SLA_VERSION_515),

20 {
21 entries = {
22 {
23 "SL1", // id
24 L("SL1 archive"), // description
25 "sl1", // main extension
26 {"sl1s", "zip"}, // extension aliases
27
28 // Writer factory
29 [] (const auto &cfg) { return std::make_unique<SL1Archive>(cfg); },
30
31 // Reader factory
32 [] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) {
33 return std::make_unique<SL1Reader>(fname, quality, progr);
34 }
35 },
36 {
37 "SL1SVG",
38 L("SL1 SVG archive"),
39 "sl1_svg",
40 {"zip"},
41 [] (const auto &cfg) { return std::make_unique<SL1_SVGArchive>(cfg); },
42 [] (const std::string &fname, SLAImportQuality quality, const ProgrFn &progr) {
43 return std::make_unique<SL1_SVGReader>(fname, quality, progr);
44 }
45 },
46 anycubic_sla_format("pwmo", "Photon Mono"),
47 anycubic_sla_format("pwmx", "Photon Mono X"),
48 anycubic_sla_format("pwms", "Photon Mono SE"),
49
74 };
75 }
std::set< ArchiveEntry > entries
Definition SLAArchiveFormatRegistry.cpp:17
std::function< bool(int)> ProgrFn
Definition SLAArchiveReader.hpp:24
Slic3r::ArchiveEntry anycubic_sla_format(const char *fileformat, const char *desc)
Definition AnycubicSLA.hpp:59
SLAImportQuality
Definition SLAArchiveReader.hpp:13
#define L(s)
Definition I18N.hpp:18

References Slic3r::anycubic_sla_format(), entries, and L.

Referenced by get_instance().

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

Member Function Documentation

◆ get()

static const std::set< ArchiveEntry > & Slic3r::Registry::get ( )
inlinestatic
88 {
89 return get_instance().entries;
90 }
static const Registry & get_instance()
Definition SLAArchiveFormatRegistry.cpp:79

References entries, and get_instance().

Referenced by Slic3r::get_archive_entry(), Slic3r::get_default_extension(), Slic3r::get_reader_factory(), Slic3r::get_writer_factory(), and Slic3r::registered_sla_archives().

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

◆ get_instance()

static const Registry & Slic3r::Registry::get_instance ( )
inlinestatic
80 {
81 if (!registry)
82 registry.reset(new Registry());
83
84 return *registry;
85 }
static std::unique_ptr< Registry > registry
Definition SLAArchiveFormatRegistry.cpp:15
Registry()
Definition SLAArchiveFormatRegistry.cpp:19

References Registry(), and registry.

Referenced by get().

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

Member Data Documentation

◆ entries

std::set<ArchiveEntry> Slic3r::Registry::entries
private

Referenced by Registry(), and get().

◆ registry

std::unique_ptr< Registry > Slic3r::Registry::registry = nullptr
staticprivate

Referenced by get_instance().


The documentation for this class was generated from the following file: