mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
init
This commit is contained in:
parent
dc1fcf7ed6
commit
d9e9fb2206
13 changed files with 475 additions and 154 deletions
25
src/libslic3r/calib.hpp
Normal file
25
src/libslic3r/calib.hpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "Point.hpp"
|
||||
namespace Slic3r {
|
||||
|
||||
class GCode;
|
||||
class calib_pressure_advance
|
||||
{
|
||||
public:
|
||||
calib_pressure_advance(GCode* gcodegen);
|
||||
~calib_pressure_advance() {}
|
||||
|
||||
std::string generate_test(double start_pa = 0, double step_pa = 0.005, int count = 20);
|
||||
|
||||
private:
|
||||
std::string move_to(Vec2d pt);
|
||||
std::string print_pa_lines(double start_x, double start_y, double start_pa, double step_pa, int num);
|
||||
std::string draw_digit(double startx, double starty, char c);
|
||||
std::string draw_number(double startx, double starty, double value);
|
||||
private:
|
||||
GCode* mp_gcodegen;
|
||||
double m_length_short, m_length_long;
|
||||
};
|
||||
} // namespace Slic3r
|
Loading…
Add table
Add a link
Reference in a new issue