Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2017-12-11 11:06:29 +0300
committerEnrico Turri <enricoturri@seznam.cz>2017-12-11 11:06:29 +0300
commita0a503e4a884775d21404afd0d2acc019a27a88d (patch)
treef4822eb3040d5f98948fc24e89861acb88f32b69 /xs/src/libslic3r/GCode.hpp
parent092d271fa2a01f94a54620fc688ca8fea6ea3af3 (diff)
integration of time estimator into gcode export - save time estimation into gcode file
Diffstat (limited to 'xs/src/libslic3r/GCode.hpp')
-rw-r--r--xs/src/libslic3r/GCode.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/xs/src/libslic3r/GCode.hpp b/xs/src/libslic3r/GCode.hpp
index e68cf49c7..ba5270785 100644
--- a/xs/src/libslic3r/GCode.hpp
+++ b/xs/src/libslic3r/GCode.hpp
@@ -1,6 +1,8 @@
#ifndef slic3r_GCode_hpp_
#define slic3r_GCode_hpp_
+#define ENABLE_TIME_ESTIMATOR 1
+
#include "libslic3r.h"
#include "ExPolygon.hpp"
#include "GCodeWriter.hpp"
@@ -15,6 +17,9 @@
#include "GCode/SpiralVase.hpp"
#include "GCode/ToolOrdering.hpp"
#include "GCode/WipeTower.hpp"
+#if ENABLE_TIME_ESTIMATOR
+#include "GCodeTimeEstimator.hpp"
+#endif // ENABLE_TIME_ESTIMATOR
#include "EdgeGrid.hpp"
#include <memory>
@@ -267,6 +272,11 @@ protected:
// Index of a last object copy extruded.
std::pair<const PrintObject*, Point> m_last_obj_copy;
+#if ENABLE_TIME_ESTIMATOR
+ // Time estimator
+ GCodeTimeEstimator m_time_estimator;
+#endif // ENABLE_TIME_ESTIMATOR
+
std::string _extrude(const ExtrusionPath &path, std::string description = "", double speed = -1);
void _print_first_layer_extruder_temperatures(FILE *file, Print &print, unsigned int first_printing_extruder_id, bool wait);
// this flag triggers first layer speeds