mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 22:12:01 +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
|
#ifndef SLIC3R_HPP
|
||||||
#define SLIC3R_HPP
|
#define SLIC3R_HPP
|
||||||
|
|
||||||
#include "libslic3r/Config.hpp"
|
namespace Slic3r::CLI
|
||||||
#include "libslic3r/Model.hpp"
|
|
||||||
|
|
||||||
namespace Slic3r {
|
|
||||||
|
|
||||||
namespace IO {
|
|
||||||
enum ExportFormat : int {
|
|
||||||
OBJ,
|
|
||||||
STL,
|
|
||||||
// SVG,
|
|
||||||
TMF,
|
|
||||||
Gcode
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CliInParams
|
|
||||||
{
|
{
|
||||||
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);
|
int run(int argc, char **argv);
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
bool setup(int argc, char **argv, CliInParams& in);
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user