Files
OrcaSlicer-bambulab/src/libslic3r/GCode/SpiralVase.hpp
T

36 lines
766 B
C++
Raw Normal View History

2017-04-26 14:24:31 +02:00
#ifndef slic3r_SpiralVase_hpp_
#define slic3r_SpiralVase_hpp_
2019-10-25 19:06:40 +02:00
#include "../libslic3r.h"
#include "../GCodeReader.hpp"
2017-04-26 14:24:31 +02:00
namespace Slic3r {
class SpiralVase {
2020-02-08 21:36:29 +01:00
public:
SpiralVase(const PrintConfig &config) : m_config(&config)
2017-04-26 14:24:31 +02:00
{
2020-02-08 21:36:29 +01:00
m_reader.z() = (float)m_config->z_offset;
m_reader.apply_config(*m_config);
2017-04-26 14:24:31 +02:00
};
void enable(bool en) {
m_transition_layer = en && ! m_enabled;
m_enabled = en;
}
2017-04-26 14:24:31 +02:00
std::string process_layer(const std::string &gcode);
2020-02-08 21:36:29 +01:00
private:
const PrintConfig *m_config;
GCodeReader m_reader;
bool m_enabled = false;
// First spiral vase layer. Layer height has to be ramped up from zero to the target layer height.
bool m_transition_layer = false;
2017-04-26 14:24:31 +02:00
};
}
#endif