mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Generate M73 lines for silent mode only for MK3 printers
This commit is contained in:
parent
ee67b2c7c3
commit
75cf4e0947
7 changed files with 7 additions and 330 deletions
|
@ -19,10 +19,7 @@ namespace Slic3r {
|
|||
public:
|
||||
enum EMode : unsigned char
|
||||
{
|
||||
//#######################################################################################################################################################################
|
||||
Normal,
|
||||
// Default,
|
||||
//#######################################################################################################################################################################
|
||||
Silent
|
||||
};
|
||||
|
||||
|
@ -79,11 +76,8 @@ namespace Slic3r {
|
|||
float additional_time; // s
|
||||
float minimum_feedrate; // mm/s
|
||||
float minimum_travel_feedrate; // mm/s
|
||||
float extrude_factor_override_percentage;
|
||||
//#################################################################################################################
|
||||
bool remaining_times_enabled;
|
||||
float extrude_factor_override_percentage;
|
||||
unsigned int g1_line_id;
|
||||
//#################################################################################################################
|
||||
};
|
||||
|
||||
public:
|
||||
|
@ -146,9 +140,7 @@ namespace Slic3r {
|
|||
|
||||
FeedrateProfile feedrate;
|
||||
Trapezoid trapezoid;
|
||||
//#################################################################################################################
|
||||
float elapsed_time;
|
||||
//#################################################################################################################
|
||||
|
||||
bool st_synchronized;
|
||||
|
||||
|
@ -244,25 +236,12 @@ namespace Slic3r {
|
|||
// Calculates the time estimate from the gcode contained in given list of gcode lines
|
||||
void calculate_time_from_lines(const std::vector<std::string>& gcode_lines);
|
||||
|
||||
//############################################################################################################3
|
||||
// // Calculates the time estimate from the gcode lines added using add_gcode_line() or add_gcode_block()
|
||||
// // and returns it in a formatted string
|
||||
// std::string get_elapsed_time_string();
|
||||
//############################################################################################################3
|
||||
|
||||
//############################################################################################################3
|
||||
// // Converts elapsed time lines, contained in the gcode saved with the given filename, into remaining time commands
|
||||
// static bool post_process_elapsed_times(const std::string& filename, float default_time, float silent_time);
|
||||
//############################################################################################################3
|
||||
|
||||
//#################################################################################################################
|
||||
// Process the gcode contained in the file with the given filename,
|
||||
// placing in it new lines (M73) containing the remaining time, at the given interval in seconds
|
||||
// and saving the result back in the same file
|
||||
// This time estimator should have been already used to calculate the time estimate for the gcode
|
||||
// contained in the given file before to call this method
|
||||
bool post_process_remaining_times(const std::string& filename, float interval_sec);
|
||||
//#################################################################################################################
|
||||
|
||||
// Set current position on the given axis with the given value
|
||||
void set_axis_position(EAxis axis, float position);
|
||||
|
@ -308,14 +287,9 @@ namespace Slic3r {
|
|||
void set_e_local_positioning_type(EPositioningType type);
|
||||
EPositioningType get_e_local_positioning_type() const;
|
||||
|
||||
//#################################################################################################################
|
||||
bool are_remaining_times_enabled() const;
|
||||
void set_remaining_times_enabled(bool enable);
|
||||
|
||||
int get_g1_line_id() const;
|
||||
void increment_g1_line_id();
|
||||
void reset_g1_line_id();
|
||||
//#################################################################################################################
|
||||
|
||||
void add_additional_time(float timeSec);
|
||||
void set_additional_time(float timeSec);
|
||||
|
@ -340,10 +314,7 @@ namespace Slic3r {
|
|||
void _reset_time();
|
||||
void _reset_blocks();
|
||||
|
||||
//############################################################################################################3
|
||||
void _set_default_as_normal();
|
||||
// void _set_default_as_default();
|
||||
//############################################################################################################3
|
||||
void _set_default_as_silent();
|
||||
|
||||
void _set_blocks_st_synchronize(bool state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue