![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/GCodeWriter.hpp>
Inheritance diagram for Slic3r::GCodeFormatter:
Collaboration diagram for Slic3r::GCodeFormatter:Public Member Functions | |
| GCodeFormatter () | |
| 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 (const std::string &axis, double v) |
| void | emit_f (double speed) |
| void | emit_string (const std::string &s) |
| void | emit_comment (bool allow_comments, const std::string &comment) |
| std::string | string () |
Static Public Member Functions | |
| static double | quantize (double v, size_t ndigits) |
| static double | quantize_xyzf (double v) |
| static double | quantize_e (double v) |
Static Public Attributes | |
| static constexpr const int | XYZF_EXPORT_DIGITS = 3 |
| static constexpr const int | E_EXPORT_DIGITS = 5 |
| 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 | |
| char | buf [buflen] |
| char * | buf_end |
| std::to_chars_result | ptr_err |
Static Protected Attributes | |
| static constexpr const size_t | buflen = 256 |
|
inline |
|
delete |
References buf, pow_10, and ptr_err.
Referenced by emit_e(), emit_f(), emit_xy(), emit_xyz(), emit_z(), and Slic3r::PressureEqualizer::push_line_to_output().
Here is the caller graph for this function:
|
inline |
References comment, emit_string(), and ptr_err.
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::GCodeWriter::set_speed(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_xyz(), and Slic3r::GCodeWriter::unretract().
Here is the call graph for this function:
Here is the caller graph for this function:References E_EXPORT_DIGITS, and emit_axis().
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::extrude_to_xy(), and Slic3r::GCodeWriter::unretract().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References emit_axis(), and XYZF_EXPORT_DIGITS.
Referenced by Slic3r::GCodeWriter::_retract(), 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().
Here is the call graph for this function:
Here is the caller graph for this function:References ptr_err.
Referenced by emit_comment(), Slic3r::PressureEqualizer::push_line_to_output(), and Slic3r::GCodeWriter::set_speed().
Here is the caller graph for this function:References emit_axis(), and XYZF_EXPORT_DIGITS.
Referenced by Slic3r::GCodeWriter::extrude_to_xy(), and Slic3r::GCodeWriter::travel_to_xy().
Here is the call graph for this function:
Here is the caller graph for this function:References emit_axis(), emit_z(), and XYZF_EXPORT_DIGITS.
Referenced by Slic3r::GCodeWriter::travel_to_xyz().
Here is the call graph for this function:
Here is the caller graph for this function:References emit_axis(), and XYZF_EXPORT_DIGITS.
Referenced by Slic3r::GCodeWriter::_travel_to_z(), and emit_xyz().
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
inlinestatic |
References pow_10, and pow_10_inv.
Referenced by quantize_e(), and quantize_xyzf().
Here is the caller graph for this function:
|
inlinestatic |
References E_EXPORT_DIGITS, and quantize().
Referenced by Slic3r::Extruder::extrude(), Slic3r::Extruder::retract_to_go(), and Slic3r::Wipe::wipe().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References quantize(), and XYZF_EXPORT_DIGITS.
Referenced by Slic3r::GCode::point_to_gcode_quantized().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Referenced by Slic3r::GCodeWriter::_retract(), Slic3r::GCodeWriter::_travel_to_z(), Slic3r::GCodeWriter::extrude_to_xy(), Slic3r::PressureEqualizer::push_to_output(), Slic3r::GCodeWriter::set_speed(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_xyz(), and Slic3r::GCodeWriter::unretract().
Here is the caller graph for this function:
|
protected |
Referenced by GCodeFormatter(), Slic3r::GCodeG1Formatter::GCodeG1Formatter(), emit_axis(), and string().
|
protected |
Referenced by GCodeFormatter(), and Slic3r::GCodeG1Formatter::GCodeG1Formatter().
|
staticconstexprprotected |
Referenced by GCodeFormatter(), and Slic3r::GCodeG1Formatter::GCodeG1Formatter().
|
staticconstexpr |
Referenced by emit_e(), Slic3r::PressureEqualizer::push_line_to_output(), and quantize_e().
|
staticconstexpr |
Referenced by emit_axis(), and quantize().
|
staticconstexpr |
Referenced by quantize().
|
protected |
Referenced by GCodeFormatter(), Slic3r::GCodeG1Formatter::GCodeG1Formatter(), emit_axis(), emit_comment(), emit_string(), and string().
|
staticconstexpr |
Referenced by emit_f(), emit_xy(), emit_xyz(), emit_z(), Slic3r::PressureEqualizer::push_line_to_output(), and quantize_xyzf().