mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 20:02:02 +08:00
36 lines
884 B
C++
36 lines
884 B
C++
#ifndef SLIC3R_HPP
|
|
#define SLIC3R_HPP
|
|
|
|
#include "ConfigBase.hpp"
|
|
#include "IO.hpp"
|
|
#include "Model.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
class CLI {
|
|
public:
|
|
int run(int argc, char **argv);
|
|
|
|
const FullPrintConfig& full_print_config_ref() { return this->full_print_config; }
|
|
|
|
private:
|
|
ConfigDef config_def;
|
|
DynamicConfig config;
|
|
DynamicPrintConfig print_config;
|
|
FullPrintConfig full_print_config;
|
|
t_config_option_keys input_files, actions, transforms;
|
|
std::vector<Model> models;
|
|
|
|
/// Prints usage of the CLI.
|
|
void print_help(bool include_print_options = false) const;
|
|
|
|
/// Exports loaded models to a file of the specified format, according to the options affecting output filename.
|
|
void export_models(IO::ExportFormat format);
|
|
|
|
std::string output_filepath(const Model &model, IO::ExportFormat format) const;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|