#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/GCodeWriter.hpp>
Public Member Functions | |
| GCodeFormatter (bool high_precision) | |
| GCodeFormatter (const GCodeFormatter &)=delete | |
| GCodeFormatter & | operator= (const GCodeFormatter &)=delete |
| void | emit_axis (const char axis, const double v, size_t digits) |
| void | emit_xy (const Vec2d &point) |
| void | emit_xyz (const Vec3d &point) |
| void | emit_z (const double z) |
| void | emit_e (double v) |
| void | emit_f (double speed) |
| void | emit_ij (const Vec2d &point) |
| void | emit_string (const std::string &s) |
| void | emit_comment (bool allow_comments, const std::string &comment) |
| std::string | string () |
| void | append_to (std::string &out) |
Static Public Member Functions | |
| static constexpr int | xyz_digits (bool high_precision) |
| static constexpr int | e_digits (bool high_precision) |
| static double | quantize (double v, size_t ndigits) |
| static double | quantize_xyz (double v, bool high_precision) |
| static double | quantize_e (double v, bool high_precision) |
Static Public Attributes | |
| static constexpr const int | F_EXPORT_DIGITS = 3 |
| static constexpr const std::array< double, 10 > | pow_10 { 1., 10., 100., 1000., 10000., 100000., 1000000., 10000000., 100000000., 1000000000. } |
| static constexpr const std::array< double, 10 > | pow_10_inv { 1. / 1., 1. / 10., 1. / 100., 1. / 1000., 1. / 10000., 1. / 100000., 1. / 1000000., 1. / 10000000., 1. / 100000000., 1. / 1000000000. } |
Protected Attributes | |
| const bool | m_high_precision |
| char | buf [buflen] |
| char * | buf_end |
| std::to_chars_result | ptr_err |
Static Protected Attributes | |
| static constexpr const size_t | buflen = 256 |
|
inlineexplicit |
References buf, buf_end, buflen, m_high_precision, and ptr_err.
Referenced by GCodeFormatter(), Slic3r::GCodeG1Formatter::GCodeG1Formatter(), Slic3r::GCodeG2G3Formatter::GCodeG2G3Formatter(), and operator=().
|
delete |
|
inline |
Referenced by Slic3r::GCodeWriter::extrude_arc_to_xy(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::GCodeWriter::set_speed(), and string().
|
inlinestaticconstexpr |
Referenced by Slic3r::FanMover::_print_in_middle_G1(), Slic3r::FanMover::_put_in_middle_G1(), emit_e(), Slic3r::SpiralVase::process_layer(), and quantize_e().
| void Slic3r::GCodeFormatter::emit_axis | ( | const char | axis, |
| const double | v, | ||
| size_t | digits ) |
References buf, pow_10, and ptr_err.
Referenced by emit_e(), emit_f(), emit_ij(), emit_xy(), emit_xyz(), emit_z(), and Slic3r::PressureEqualizer::push_line_to_output().
|
inline |
References emit_string(), and ptr_err.
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::_spiral_travel_to_z(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::GCodeWriter::extrude_arc_to_xy(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::GCodeWriter::set_speed(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_xyz(), and Slic3r::GCodeWriter::unretract().
|
inline |
References e_digits(), emit_axis(), and m_high_precision.
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::extrude_arc_to_xy(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::PressureEqualizer::push_line_to_output(), and Slic3r::GCodeWriter::unretract().
|
inline |
References emit_axis(), and F_EXPORT_DIGITS.
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::_spiral_travel_to_z(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::PressureEqualizer::push_line_to_output(), Slic3r::GCodeWriter::set_speed(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_xyz(), and Slic3r::GCodeWriter::unretract().
|
inline |
References emit_axis(), m_high_precision, and xyz_digits().
Referenced by Slic3r::GCodeWriter::_spiral_travel_to_z(), and Slic3r::GCodeWriter::extrude_arc_to_xy().
|
inline |
References ptr_err.
Referenced by Slic3r::GCodeWriter::_spiral_travel_to_z(), emit_comment(), Slic3r::PressureEqualizer::push_line_to_output(), and Slic3r::GCodeWriter::set_speed().
|
inline |
References emit_axis(), m_high_precision, and xyz_digits().
Referenced by Slic3r::GCodeWriter::extrude_arc_to_xy(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::GCodeWriter::travel_to_xy(), and Slic3r::GCodeWriter::travel_to_xyz().
|
inline |
References emit_axis(), emit_z(), m_high_precision, and xyz_digits().
Referenced by Slic3r::GCodeWriter::_spiral_travel_to_z(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::GCodeWriter::travel_to_xy(), and Slic3r::GCodeWriter::travel_to_xyz().
|
inline |
References emit_axis(), m_high_precision, and xyz_digits().
Referenced by Slic3r::GCodeWriter::_spiral_travel_to_z(), Slic3r::GCodeWriter::_travel_to_z(), and emit_xyz().
|
delete |
|
inlinestatic |
References pow_10, and pow_10_inv.
Referenced by quantize_e(), and quantize_xyz().
|
inlinestatic |
References e_digits(), and quantize().
Referenced by Slic3r::Extruder::E_to_emit().
|
inlinestatic |
References quantize(), and xyz_digits().
Referenced by Slic3r::GCode::_extrude(), Slic3r::GCodeWriter::extrude_to_xyz(), Slic3r::GCode::point_to_gcode_quantized(), and Slic3r::GCode::point_to_gcode_quantized().
|
inline |
References append_to().
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::_spiral_travel_to_z(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::PressureEqualizer::push_to_output(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_xyz(), and Slic3r::GCodeWriter::unretract().
|
inlinestaticconstexpr |
Referenced by Slic3r::FanMover::_print_in_middle_G1(), Slic3r::FanMover::_put_in_middle_G1(), emit_ij(), emit_xy(), emit_xyz(), emit_z(), Slic3r::SpiralVase::process_layer(), Slic3r::PressureEqualizer::push_line_to_output(), and quantize_xyz().
|
protected |
|
protected |
|
staticconstexprprotected |
|
staticconstexpr |
Referenced by emit_f().
|
protected |
Referenced by GCodeFormatter(), emit_e(), emit_ij(), emit_xy(), emit_xyz(), and emit_z().
|
staticconstexpr |
Referenced by emit_axis(), and quantize().
|
staticconstexpr |
Referenced by quantize().
|
protected |