PrusaSlicer completely rework : WIP

* read cli arguments into separate DynamicPrintConfigs
* CLI::run : All separate code blocks are extracted into free functions
This commit is contained in:
YuSanka 2025-01-14 09:58:07 +01:00 committed by Lukas Matena
parent 42d4f5c775
commit 253abbfa78
2 changed files with 1016 additions and 837 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,49 +1,9 @@
#ifndef SLIC3R_HPP
#define SLIC3R_HPP
#include "libslic3r/Config.hpp"
#include "libslic3r/Model.hpp"
namespace Slic3r {
namespace IO {
enum ExportFormat : int {
OBJ,
STL,
// SVG,
TMF,
Gcode
};
}
struct CliInParams
namespace Slic3r::CLI
{
DynamicPrintAndCLIConfig config;
std::vector<std::string> input_files;
std::vector<std::string> actions;
std::vector<std::string> transforms;
std::vector<std::string> profiles_sharing;
};
struct CliOutParams
{
DynamicPrintConfig print_config;
PrinterTechnology printer_technology;
ForwardCompatibilitySubstitutionRule config_substitution_rule;
std::vector<Model> models;
bool user_center_specified { false };
bool delete_after_load { false };
};
class CLI {
public:
int run(int argc, char **argv);
private:
bool setup(int argc, char **argv, CliInParams& in);
};
}
#endif