mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 00:22:00 +08:00
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:
parent
42d4f5c775
commit
253abbfa78
1811
src/PrusaSlicer.cpp
1811
src/PrusaSlicer.cpp
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user