#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/GCodeWriter.hpp>
Public Types | |
| using | FirstLayerPointTest = std::function<bool(const Vec3d &point_logical)> |
Public Member Functions | |
| GCodeWriter () | |
| Extruder * | filament (size_t extruder_id) |
| const Extruder * | filament (size_t extruder_id) const |
| Extruder * | filament () |
| const Extruder * | filament () const |
| void | apply_print_config (const PrintConfig &print_config) |
| void | set_extruders (std::vector< unsigned int > extruder_ids) |
| const std::vector< Extruder > & | extruders () const |
| std::vector< unsigned int > | extruder_ids () const |
| std::string | preamble () |
| std::string | postamble () const |
| std::string | set_temperature (unsigned int temperature, bool wait=false, int tool=-1) const |
| std::string | set_bed_temperature (int temperature, bool wait=false) |
| std::string | set_chamber_temperature (int temperature, bool wait=false) |
| std::string | set_print_acceleration (unsigned int acceleration) |
| std::string | set_travel_acceleration (unsigned int acceleration) |
| std::string | set_jerk_xy (double jerk) |
| std::string | set_accel_and_jerk (unsigned int acceleration, double jerk) |
| std::string | set_junction_deviation (double junction_deviation) |
| std::string | set_pressure_advance (double pa, int tool=-1) const |
| std::string | set_input_shaping (char axis, float damp, float freq, std::string type) const |
| std::string | reset_e (bool force=false) |
| std::string | update_progress (unsigned int num, unsigned int tot, bool allow_100=false) const |
| std::string | enable_power_loss_recovery (PowerLossRecoveryMode mode) |
| bool | need_toolchange (unsigned int filament_id) const |
| std::string | set_extruder (unsigned int filament_id) |
| void | init_extruder (unsigned int filament_id) |
| double | get_extruder_retracted_length (const int filament_id) |
| std::string | toolchange_prefix () const |
| std::string | toolchange (unsigned int filament_id, int nozzle_id) |
| std::string | set_speed (double F, const std::string &comment=std::string(), const std::string &cooling_marker=std::string()) |
| double | get_current_speed () const |
| std::string | travel_to_xy (const Vec2d &point, const std::string &comment=std::string()) |
| std::string | travel_to_xyz (const Vec3d &point, const std::string &comment=std::string(), bool force_z=false) |
| std::pair< double, double > | planned_travel_z (const Vec3d &point, bool force_z=false) const |
| std::string | travel_to_z (double z, const std::string &comment=std::string(), bool force=false) |
| bool | will_move_z (double z) const |
| std::string | extrude_to_xy (const Vec2d &point, double dE, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| std::string | extrude_arc_to_xy (const Vec2d &point, const Vec2d ¢er_offset, double dE, const bool is_ccw, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| void | extrude_arc_as_polyline (std::string &out, const Vec2d &point, const Vec2d ¢er_offset, double dE, const bool is_ccw, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| std::string | extrude_to_xyz (const Vec3d &point, double dE, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| void | set_speed (std::string &out, double F, const std::string &comment=std::string(), const std::string &cooling_marker=std::string()) |
| void | extrude_to_xy (std::string &out, const Vec2d &point, double dE, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| void | extrude_arc_to_xy (std::string &out, const Vec2d &point, const Vec2d ¢er_offset, double dE, const bool is_ccw, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| void | extrude_to_xyz (std::string &out, const Vec3d &point, double dE, const std::string &comment=std::string(), bool force_no_extrusion=false) |
| std::string | retract (bool before_wipe=false, double retract_length=0) |
| std::string | retract_for_toolchange (bool before_wipe=false, double retract_length=0) |
| std::string | unretract (float extra_retract=0.f) |
| std::string | eager_lift (const LiftType type) |
| std::string | lazy_lift (LiftType lift_type=LiftType::NormalLift, bool spiral_vase=false) |
| std::string | unlift () |
| const Vec3d & | get_position () const |
| Vec3d & | get_position () |
| void | set_position (const Vec3d &in) |
| double | get_zhop () const |
| void | set_xy_offset (double x, double y) |
| Vec2f | get_xy_offset () |
| std::string | set_fan (unsigned int speed) const |
| void | set_object_start_str (std::string start_string) |
| bool | is_object_start_str_empty () |
| void | set_object_end_str (std::string end_string) |
| bool | is_object_end_str_empty () |
| void | add_object_start_labels (std::string &gcode) |
| void | add_object_end_labels (std::string &gcode) |
| void | add_object_change_labels (std::string &gcode) |
| void | set_current_position_clear (bool clear) |
| bool | is_current_position_clear () const |
| void | set_is_bbl_machine (bool bval) |
| const bool | is_bbl_printers () const |
| void | set_is_first_layer (bool bval) |
| GCodeFlavor | get_gcode_flavor () const |
| void | invalidate_acceleration () |
| void | invalidate_jerk () |
| void | set_axis_remap (int rx, int ry, int rz) |
| void | set_build_volume_max (const Vec3d &max) |
| bool | has_axis_remap () const |
| void | set_kinematics (std::unique_ptr< MachineKinematics > kinematics) |
| const MachineKinematics & | kinematics () const |
| void | set_first_layer_point_test (FirstLayerPointTest test) |
| void | set_force_normal_lift (bool force) |
| bool | high_precision () const |
| bool | force_standard_precision (bool force) |
Static Public Member Functions | |
| static std::string | set_temperature (unsigned int temperature, GCodeFlavor flavor, bool wait=false, int tool=-1, std::string comment=std::string()) |
| static void | append_klipper_accel_to_decel (std::string &gcode, unsigned int acceleration, double accel_to_decel_factor) |
| static std::string | set_fan (const GCodeFlavor gcode_flavor, unsigned int speed, unsigned int part_cooling_fan_min_pwm=0) |
| static std::string | set_additional_fan (unsigned int speed) |
| static std::string | set_exhaust_fan (int speed) |
| static bool | supports_separate_travel_acceleration (GCodeFlavor flavor) |
Public Attributes | |
| GCodeConfig | config |
| bool | multiple_extruders |
Static Public Attributes | |
| static bool | full_gcode_comment = true |
Protected Member Functions | |
| std::string | _travel_to_z (double z, const std::string &comment) |
| bool | point_on_first_layer (const Vec3d &point_logical) const |
| bool | must_skip_lift_now () const |
| bool | uses_pointwise_travel_speed () const |
| Vec3d | apply_axis_remap (const Vec3d &pos) const |
Protected Attributes | |
| Vec3d | m_pos = Vec3d::Zero() |
| double | m_x_offset { 0 } |
| double | m_y_offset { 0 } |
| double | m_lifted |
| double | m_to_lift |
| LiftType | m_to_lift_type |
| bool | m_is_first_layer = true |
| bool | m_is_current_pos_clear = false |
| double | m_current_speed |
| FirstLayerPointTest | m_first_layer_point_test |
| bool | m_force_normal_lift = false |
| bool | m_force_standard_precision = false |
| std::unique_ptr< MachineKinematics > | m_kinematics |
| int | m_remap_x = 0 |
| int | m_remap_y = 1 |
| int | m_remap_z = 2 |
| Vec3d | m_build_vol_max = Vec3d::Zero() |
| size_t | m_cached_extruder_idx |
Private Types | |
| enum class | Acceleration { Travel , Print } |
Private Member Functions | |
| std::string | _spiral_travel_to_z (double z, const Vec2d &ij_offset, const std::string &comment) |
| const Polygon * | active_printable_area () const |
| bool | spiral_lift_fits_printable_area (const Vec2d ¢er, double radius) const |
| std::string | _retract (double length, double restart_extra, const std::string &comment) |
| std::string | set_acceleration_internal (Acceleration type, unsigned int acceleration) |
Private Attributes | |
| std::vector< Extruder > | m_filament_extruders |
| bool | m_single_extruder_multi_material |
| std::vector< Extruder * > | m_curr_filament_extruder |
| int | m_curr_extruder_id |
| unsigned int | m_last_acceleration |
| unsigned int | m_last_travel_acceleration |
| std::vector< unsigned int > | m_max_travel_acceleration |
| std::vector< unsigned int > | m_max_acceleration |
| std::vector< double > | m_max_jerk_x |
| std::vector< double > | m_max_jerk_y |
| double | m_last_jerk |
| std::vector< double > | m_max_jerk_z |
| std::vector< double > | m_max_jerk_e |
| std::vector< double > | m_max_junction_deviation |
| int | m_last_bed_temperature |
| bool | m_last_bed_temperature_reached |
| double | m_resolution = 0.01 |
| Polygon | m_bed_printable_area |
| std::vector< Polygon > | m_extruder_printable_areas |
| std::string | m_gcode_label_objects_start |
| std::string | m_gcode_label_objects_end |
| bool | m_is_bbl_printers = false |
| using Slic3r::GCodeWriter::FirstLayerPointTest = std::function<bool(const Vec3d &point_logical)> |
|
strongprivate |
| Enumerator | |
|---|---|
| Travel | |
|
inline |
References m_cached_extruder_idx, m_curr_extruder_id, m_curr_filament_extruder, m_current_speed, m_is_first_layer, m_kinematics, m_last_acceleration, m_last_bed_temperature, m_last_bed_temperature_reached, m_last_jerk, m_last_travel_acceleration, m_lifted, m_max_acceleration, m_max_jerk_x, m_max_jerk_y, m_max_travel_acceleration, m_single_extruder_multi_material, m_to_lift, m_to_lift_type, Slic3r::make_unique(), MAXIMUM_EXTRUDER_NUMBER, multiple_extruders, and Slic3r::NormalLift.
|
private |
References config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_e(), Slic3r::GCodeFormatter::emit_f(), filament(), FLAVOR_IS, full_gcode_comment, Slic3r::gcfMachinekit, Slic3r::gcfMakerWare, high_precision(), Slic3r::is_zero(), Slic3r::length(), retract(), and Slic3r::GCodeFormatter::string().
Referenced by retract(), and retract_for_toolchange().
|
private |
References _travel_to_z(), Slic3r::Geometry::ArcWelder::arc_discretization_steps(), config, Slic3r::Disabled, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_f(), Slic3r::GCodeFormatter::emit_ij(), Slic3r::GCodeFormatter::emit_string(), Slic3r::GCodeFormatter::emit_xyz(), Slic3r::GCodeFormatter::emit_z(), full_gcode_comment, has_axis_remap(), m_cached_extruder_idx, m_is_first_layer, M_PI, m_pos, m_resolution, m_x_offset, m_y_offset, and Slic3r::GCodeFormatter::string().
Referenced by eager_lift(), and travel_to_xyz().
|
protected |
References apply_axis_remap(), config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_f(), Slic3r::GCodeFormatter::emit_xyz(), Slic3r::GCodeFormatter::emit_z(), full_gcode_comment, has_axis_remap(), m_cached_extruder_idx, m_pos, m_x_offset, m_y_offset, point_on_first_layer(), and Slic3r::GCodeFormatter::string().
Referenced by _spiral_travel_to_z(), eager_lift(), lazy_lift(), travel_to_xyz(), travel_to_z(), and unlift().
|
private |
References filament(), m_bed_printable_area, and m_extruder_printable_areas.
Referenced by spiral_lift_fits_printable_area().
| void Slic3r::GCodeWriter::add_object_change_labels | ( | std::string & | gcode | ) |
References add_object_end_labels(), and add_object_start_labels().
| void Slic3r::GCodeWriter::add_object_end_labels | ( | std::string & | gcode | ) |
References config, m_gcode_label_objects_end, and reset_e().
Referenced by add_object_change_labels(), and Slic3r::WipeTowerIntegration::append_tcr().
| void Slic3r::GCodeWriter::add_object_start_labels | ( | std::string & | gcode | ) |
References m_gcode_label_objects_start.
Referenced by add_object_change_labels().
|
static |
References Slic3r::float_to_string_decimal_point().
Referenced by set_accel_and_jerk(), Slic3r::WipeTowerWriter::set_acceleration_impl(), and set_acceleration_internal().
References m_kinematics.
Referenced by _travel_to_z(), extrude_to_xy(), extrude_to_xyz(), travel_to_xy(), and travel_to_xyz().
| void Slic3r::GCodeWriter::apply_print_config | ( | const PrintConfig & | print_config | ) |
References config, Slic3r::gcfKlipper, Slic3r::gcfMarlinFirmware, Slic3r::gcfMarlinLegacy, Slic3r::gcfRepRapFirmware, Slic3r::intersection(), LIMITS, LIMITS_UINT, m_bed_printable_area, m_extruder_printable_areas, m_max_acceleration, m_max_jerk_e, m_max_jerk_x, m_max_jerk_y, m_max_jerk_z, m_max_junction_deviation, m_max_travel_acceleration, m_resolution, m_single_extruder_multi_material, Slic3r::offset(), Slic3r::printer_options_with_variant_2, scale_, and supports_separate_travel_acceleration().
| std::string Slic3r::GCodeWriter::eager_lift | ( | const LiftType | type | ) |
References _spiral_travel_to_z(), _travel_to_z(), config, Slic3r::Extruder::extruder_id(), filament(), Slic3r::Extruder::id(), is_current_position_clear(), m_force_normal_lift, m_lifted, m_pos, m_to_lift, m_x_offset, m_y_offset, must_skip_lift_now(), Slic3r::NormalLift, PI, spiral_lift_fits_printable_area(), Slic3r::SpiralLift, and Slic3r::travel_slope().
| std::string Slic3r::GCodeWriter::enable_power_loss_recovery | ( | PowerLossRecoveryMode | mode | ) |
References Slic3r::Enable, FLAVOR_IS, full_gcode_comment, Slic3r::gcfMarlinFirmware, m_is_bbl_printers, and Slic3r::PrinterConfiguration.
| void Slic3r::GCodeWriter::extrude_arc_as_polyline | ( | std::string & | out, |
| const Vec2d & | point, | ||
| const Vec2d & | center_offset, | ||
| double | dE, | ||
| const bool | is_ccw, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References EPSILON, extrude_to_xy(), Slic3r::Geometry::is_ccw(), m_pos, and PI.
Referenced by extrude_arc_to_xy().
| std::string Slic3r::GCodeWriter::extrude_arc_to_xy | ( | const Vec2d & | point, |
| const Vec2d & | center_offset, | ||
| double | dE, | ||
| const bool | is_ccw, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References extrude_arc_to_xy(), and Slic3r::Geometry::is_ccw().
Referenced by extrude_arc_to_xy().
| void Slic3r::GCodeWriter::extrude_arc_to_xy | ( | std::string & | out, |
| const Vec2d & | point, | ||
| const Vec2d & | center_offset, | ||
| double | dE, | ||
| const bool | is_ccw, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References Slic3r::GCodeFormatter::append_to(), Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_e(), Slic3r::GCodeFormatter::emit_ij(), Slic3r::GCodeFormatter::emit_xy(), Slic3r::Extruder::extrude(), extrude_arc_as_polyline(), filament(), full_gcode_comment, high_precision(), Slic3r::Geometry::is_ccw(), m_kinematics, m_pos, m_x_offset, and m_y_offset.
| std::string Slic3r::GCodeWriter::extrude_to_xy | ( | const Vec2d & | point, |
| double | dE, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References extrude_to_xy().
Referenced by Slic3r::CalibPressureAdvance::draw_digit(), Slic3r::CalibPressureAdvance::draw_line(), extrude_arc_as_polyline(), extrude_to_xy(), and Slic3r::Wipe::wipe().
| void Slic3r::GCodeWriter::extrude_to_xy | ( | std::string & | out, |
| const Vec2d & | point, | ||
| double | dE, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References Slic3r::GCodeFormatter::append_to(), apply_axis_remap(), Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_e(), Slic3r::GCodeFormatter::emit_xy(), Slic3r::GCodeFormatter::emit_xyz(), Slic3r::Extruder::extrude(), filament(), full_gcode_comment, has_axis_remap(), high_precision(), m_pos, m_x_offset, and m_y_offset.
| std::string Slic3r::GCodeWriter::extrude_to_xyz | ( | const Vec3d & | point, |
| double | dE, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References extrude_to_xyz().
Referenced by extrude_to_xyz().
| void Slic3r::GCodeWriter::extrude_to_xyz | ( | std::string & | out, |
| const Vec3d & | point, | ||
| double | dE, | ||
| const std::string & | comment = std::string(), | ||
| bool | force_no_extrusion = false ) |
References Slic3r::GCodeFormatter::append_to(), apply_axis_remap(), Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_e(), Slic3r::GCodeFormatter::emit_xy(), Slic3r::GCodeFormatter::emit_xyz(), Slic3r::Extruder::extrude(), filament(), full_gcode_comment, has_axis_remap(), high_precision(), m_lifted, m_pos, m_x_offset, m_y_offset, and Slic3r::GCodeFormatter::quantize_xyz().
|
inline |
References m_filament_extruders.
Referenced by set_extruders().
|
inline |
References m_filament_extruders.
Referenced by Slic3r::CoolingBuffer::CoolingBuffer().
|
inline |
References m_curr_extruder_id, and m_curr_filament_extruder.
Referenced by _retract(), active_printable_area(), eager_lift(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), lazy_lift(), need_toolchange(), retract(), retract_for_toolchange(), travel_to_xyz(), and unretract().
|
inline |
References m_curr_extruder_id, and m_curr_filament_extruder.
|
inline |
References m_curr_filament_extruder.
Referenced by Slic3r::OozePrevention::_get_temp(), Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), Slic3r::Wipe::calculateWipeRetractionLengths(), Slic3r::need_wipe(), Slic3r::OozePrevention::post_toolchange(), Slic3r::OozePrevention::pre_toolchange(), and Slic3r::Wipe::wipe().
|
inline |
References m_curr_filament_extruder.
|
inline |
References m_force_standard_precision.
|
inline |
References m_current_speed.
Referenced by Slic3r::Wipe::wipe().
| double Slic3r::GCodeWriter::get_extruder_retracted_length | ( | const int | filament_id | ) |
References Slic3r::lower_bound_by_predicate(), and m_filament_extruders.
Referenced by Slic3r::WipeTowerIntegration::append_tcr().
|
inline |
|
inline |
References m_pos.
Referenced by Slic3r::CoolingBuffer::CoolingBuffer(), Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), Slic3r::WipeTowerIntegration::finalize(), and Slic3r::OozePrevention::pre_toolchange().
|
inline |
References m_x_offset, and m_y_offset.
| bool Slic3r::GCodeWriter::has_axis_remap | ( | ) | const |
References m_kinematics.
Referenced by _spiral_travel_to_z(), _travel_to_z(), extrude_to_xy(), extrude_to_xyz(), travel_to_xy(), and travel_to_xyz().
|
inline |
References config, and m_force_standard_precision.
Referenced by _retract(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), travel_to_xy(), and unretract().
| void Slic3r::GCodeWriter::init_extruder | ( | unsigned int | filament_id | ) |
References config, Slic3r::get_extruder_index(), Slic3r::lower_bound_by_predicate(), m_cached_extruder_idx, m_curr_extruder_id, m_curr_filament_extruder, and m_filament_extruders.
|
inline |
References m_last_acceleration, and m_last_travel_acceleration.
|
inline |
References m_last_jerk.
|
inline |
References m_is_bbl_printers.
Referenced by toolchange().
|
inline |
References m_is_current_pos_clear.
Referenced by Slic3r::WipeTowerIntegration::append_tcr2(), eager_lift(), must_skip_lift_now(), planned_travel_z(), and travel_to_xyz().
|
inline |
References m_gcode_label_objects_end.
|
inline |
References m_gcode_label_objects_start.
|
inline |
References m_kinematics.
Referenced by set_kinematics().
| std::string Slic3r::GCodeWriter::lazy_lift | ( | LiftType | lift_type = LiftType::NormalLift, |
| bool | spiral_vase = false ) |
References _travel_to_z(), config, Slic3r::Extruder::extruder_id(), filament(), Slic3r::Extruder::id(), m_force_normal_lift, m_lifted, m_pos, m_to_lift, m_to_lift_type, must_skip_lift_now(), and Slic3r::NormalLift.
|
protected |
References is_current_position_clear(), and m_kinematics.
Referenced by eager_lift(), lazy_lift(), and travel_to_xyz().
| bool Slic3r::GCodeWriter::need_toolchange | ( | unsigned int | filament_id | ) | const |
References filament(), and Slic3r::Extruder::id().
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), Slic3r::WipeTowerIntegration::is_empty_wipe_tower_gcode(), set_extruder(), and Slic3r::WipeTowerIntegration::tool_change().
| std::pair< double, double > Slic3r::GCodeWriter::planned_travel_z | ( | const Vec3d & | point, |
| bool | force_z = false ) const |
References EPSILON, is_current_position_clear(), m_pos, m_to_lift, and will_move_z().
|
protected |
References m_first_layer_point_test, and m_is_first_layer.
Referenced by _travel_to_z(), travel_to_xy(), and travel_to_xyz().
| std::string Slic3r::GCodeWriter::postamble | ( | ) | const |
References FLAVOR_IS, and Slic3r::gcfMachinekit.
| std::string Slic3r::GCodeWriter::preamble | ( | ) |
References config, FLAVOR_IS, FLAVOR_IS_NOT, Slic3r::gcfKlipper, Slic3r::gcfMakerWare, Slic3r::gcfMarlinFirmware, Slic3r::gcfMarlinLegacy, Slic3r::gcfRepetier, Slic3r::gcfRepRapFirmware, Slic3r::gcfRepRapSprinter, Slic3r::gcfSmoothie, Slic3r::gcfTeacup, and reset_e().
| std::string Slic3r::GCodeWriter::reset_e | ( | bool | force = false | ) |
References config, Slic3r::E, FLAVOR_IS, full_gcode_comment, Slic3r::gcfMach3, Slic3r::gcfMakerWare, Slic3r::gcfSailfish, Slic3r::is_zero(), m_curr_extruder_id, and m_curr_filament_extruder.
Referenced by add_object_end_labels(), preamble(), toolchange(), and unretract().
| std::string Slic3r::GCodeWriter::retract | ( | bool | before_wipe = false, |
| double | retract_length = 0 ) |
References _retract(), EPSILON, filament(), Slic3r::Extruder::retract_before_wipe(), and Slic3r::retract_restart_extra().
Referenced by _retract(), Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), and Slic3r::CalibPressureAdvance::move_to().
| std::string Slic3r::GCodeWriter::retract_for_toolchange | ( | bool | before_wipe = false, |
| double | retract_length = 0 ) |
References _retract(), EPSILON, filament(), Slic3r::Extruder::retract_before_wipe(), and Slic3r::retract_length_toolchange().
| std::string Slic3r::GCodeWriter::set_accel_and_jerk | ( | unsigned int | acceleration, |
| double | jerk ) |
References _u8L, append_klipper_accel_to_decel(), config, EXTRUDER_LIMIT, FLAVOR_IS_NOT, Slic3r::float_to_string_decimal_point(), full_gcode_comment, Slic3r::gcfKlipper, Slic3r::is_approx(), m_last_acceleration, m_last_jerk, m_max_acceleration, m_max_jerk_x, and m_max_jerk_y.
|
private |
References append_klipper_accel_to_decel(), config, EXTRUDER_LIMIT, FLAVOR_IS, full_gcode_comment, Slic3r::gcfKlipper, Slic3r::gcfMarlinFirmware, Slic3r::gcfRepetier, Slic3r::gcfRepRapFirmware, m_last_acceleration, m_last_travel_acceleration, m_max_acceleration, m_max_travel_acceleration, Print, supports_separate_travel_acceleration(), and Travel.
Referenced by set_print_acceleration(), and set_travel_acceleration().
|
static |
References full_gcode_comment.
Referenced by Slic3r::CoolingBuffer::apply_layer_cooldown().
| void Slic3r::GCodeWriter::set_axis_remap | ( | int | rx, |
| int | ry, | ||
| int | rz ) |
References m_kinematics, m_remap_x, m_remap_y, and m_remap_z.
| std::string Slic3r::GCodeWriter::set_bed_temperature | ( | int | temperature, |
| bool | wait = false ) |
References m_last_bed_temperature, and m_last_bed_temperature_reached.
| void Slic3r::GCodeWriter::set_build_volume_max | ( | const Vec3d & | max | ) |
References m_build_vol_max, and m_kinematics.
| std::string Slic3r::GCodeWriter::set_chamber_temperature | ( | int | temperature, |
| bool | wait = false ) |
References config.
|
inline |
References m_is_current_pos_clear.
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), travel_to_xy(), and travel_to_xyz().
|
static |
References full_gcode_comment.
| std::string Slic3r::GCodeWriter::set_extruder | ( | unsigned int | filament_id | ) |
References Slic3r::lower_bound_by_predicate(), m_filament_extruders, need_toolchange(), and toolchange().
| void Slic3r::GCodeWriter::set_extruders | ( | std::vector< unsigned int > | extruder_ids | ) |
References config, Slic3r::Extruder, extruder_ids(), m_cached_extruder_idx, m_curr_extruder_id, m_curr_filament_extruder, m_filament_extruders, and multiple_extruders.
|
static |
References full_gcode_comment, Slic3r::gcfMach3, Slic3r::gcfMachinekit, Slic3r::gcfMakerWare, Slic3r::gcfSailfish, Slic3r::gcfTeacup, Slic3r::gcode_flavor(), and Slic3r::part_cooling_fan_min_pwm().
Referenced by Slic3r::FanMover::_set_fan(), Slic3r::CoolingBuffer::apply_layer_cooldown(), and set_fan().
| std::string Slic3r::GCodeWriter::set_fan | ( | unsigned int | speed | ) | const |
References config, and set_fan().
|
inline |
References m_first_layer_point_test.
|
inline |
References m_force_normal_lift.
| std::string Slic3r::GCodeWriter::set_input_shaping | ( | char | axis, |
| float | damp, | ||
| float | freq, | ||
| std::string | type ) const |
References _u8L, config, full_gcode_comment, Slic3r::gcfKlipper, Slic3r::gcfMarlinFirmware, Slic3r::gcfMarlinLegacy, and Slic3r::gcfRepRapFirmware.
Referenced by Slic3r::GCode::process_layer().
|
inline |
References m_is_bbl_printers.
|
inline |
References m_is_first_layer.
| std::string Slic3r::GCodeWriter::set_jerk_xy | ( | double | jerk | ) |
References EXTRUDER_LIMIT, FLAVOR_IS, full_gcode_comment, Slic3r::gcfKlipper, Slic3r::gcfRepetier, Slic3r::is_approx(), m_is_bbl_printers, m_last_jerk, m_max_jerk_e, m_max_jerk_x, m_max_jerk_y, and m_max_jerk_z.
Referenced by Slic3r::GCode::process_layer().
| std::string Slic3r::GCodeWriter::set_junction_deviation | ( | double | junction_deviation | ) |
References EXTRUDER_LIMIT, FLAVOR_IS, full_gcode_comment, Slic3r::gcfMarlinFirmware, and m_max_junction_deviation.
Referenced by Slic3r::GCode::process_layer().
| void Slic3r::GCodeWriter::set_kinematics | ( | std::unique_ptr< MachineKinematics > | kinematics | ) |
References kinematics(), m_build_vol_max, m_kinematics, m_remap_x, m_remap_y, and m_remap_z.
Referenced by Slic3r::install_belt_kinematics().
|
inline |
References m_gcode_label_objects_end.
|
inline |
References m_gcode_label_objects_start.
|
inline |
References m_pos.
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), and Slic3r::WipeTowerIntegration::append_tcr2().
| std::string Slic3r::GCodeWriter::set_pressure_advance | ( | double | pa, |
| int | tool = -1 ) const |
References FLAVOR_IS, Slic3r::gcfKlipper, Slic3r::gcfMarlinFirmware, Slic3r::gcfRepetier, Slic3r::gcfRepRapFirmware, and m_is_bbl_printers.
Referenced by Slic3r::GCode::process_layer().
|
inline |
References Print, and set_acceleration_internal().
| std::string Slic3r::GCodeWriter::set_speed | ( | double | F, |
| const std::string & | comment = std::string(), | ||
| const std::string & | cooling_marker = std::string() ) |
References Slic3r::F, and set_speed().
Referenced by Slic3r::CalibPressureAdvance::draw_line(), Slic3r::CalibPressureAdvance::draw_number(), set_speed(), and Slic3r::Wipe::wipe().
| void Slic3r::GCodeWriter::set_speed | ( | std::string & | out, |
| double | F, | ||
| const std::string & | comment = std::string(), | ||
| const std::string & | cooling_marker = std::string() ) |
References Slic3r::GCodeFormatter::append_to(), config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_f(), Slic3r::GCodeFormatter::emit_string(), Slic3r::F, full_gcode_comment, and m_current_speed.
| std::string Slic3r::GCodeWriter::set_temperature | ( | unsigned int | temperature, |
| bool | wait = false, | ||
| int | tool = -1 ) const |
References config, Slic3r::imex_physical_heater_for(), m_single_extruder_multi_material, multiple_extruders, and set_temperature().
|
static |
References Slic3r::gcfMach3, Slic3r::gcfMachinekit, Slic3r::gcfMakerWare, Slic3r::gcfRepRapFirmware, Slic3r::gcfSailfish, and Slic3r::gcfTeacup.
Referenced by Slic3r::OozePrevention::post_toolchange(), Slic3r::OozePrevention::pre_toolchange(), Slic3r::GCode::process_layer(), Slic3r::GCodeProcessor::run_post_process(), and set_temperature().
|
inline |
|
inline |
References m_x_offset, and m_y_offset.
|
private |
References active_printable_area(), Slic3r::area(), Slic3r::center(), Slic3r::Line::distance_to_squared(), Slic3r::Point::new_scale(), and scale_.
Referenced by eager_lift(), and travel_to_xyz().
|
static |
References Slic3r::gcfMarlinFirmware, Slic3r::gcfRepetier, and Slic3r::gcfRepRapFirmware.
Referenced by Slic3r::GCodeProcessor::apply_config(), apply_print_config(), and set_acceleration_internal().
| std::string Slic3r::GCodeWriter::toolchange | ( | unsigned int | filament_id, |
| int | nozzle_id ) |
References config, full_gcode_comment, Slic3r::get_extruder_index(), is_bbl_printers(), Slic3r::lower_bound_by_predicate(), m_cached_extruder_idx, m_curr_extruder_id, m_curr_filament_extruder, m_filament_extruders, m_is_bbl_printers, multiple_extruders, reset_e(), and toolchange_prefix().
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), and set_extruder().
| std::string Slic3r::GCodeWriter::toolchange_prefix | ( | ) | const |
References config, FLAVOR_IS, Slic3r::gcfMakerWare, Slic3r::gcfSailfish, Slic3r::GCodeProcessor::Manual_Tool_Change, and Slic3r::GCodeProcessor::reserved_tag().
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), and toolchange().
| std::string Slic3r::GCodeWriter::travel_to_xy | ( | const Vec2d & | point, |
| const std::string & | comment = std::string() ) |
References apply_axis_remap(), config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_f(), Slic3r::GCodeFormatter::emit_xy(), Slic3r::GCodeFormatter::emit_xyz(), full_gcode_comment, has_axis_remap(), high_precision(), m_cached_extruder_idx, m_pos, m_x_offset, m_y_offset, point_on_first_layer(), set_current_position_clear(), and Slic3r::GCodeFormatter::string().
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), Slic3r::CalibPressureAdvance::move_to(), and travel_to_xyz().
| std::string Slic3r::GCodeWriter::travel_to_xyz | ( | const Vec3d & | point, |
| const std::string & | comment = std::string(), | ||
| bool | force_z = false ) |
References _spiral_travel_to_z(), _travel_to_z(), apply_axis_remap(), config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_f(), Slic3r::GCodeFormatter::emit_xy(), Slic3r::GCodeFormatter::emit_xyz(), EPSILON, filament(), full_gcode_comment, has_axis_remap(), is_current_position_clear(), m_cached_extruder_idx, m_lifted, m_pos, m_to_lift, m_to_lift_type, m_x_offset, m_y_offset, must_skip_lift_now(), Slic3r::NormalLift, PI, point_on_first_layer(), set_current_position_clear(), Slic3r::SlopeLift, spiral_lift_fits_printable_area(), Slic3r::SpiralLift, Slic3r::GCodeFormatter::string(), Slic3r::to_2d(), Slic3r::travel_slope(), Slic3r::travel_speed(), travel_to_xy(), uses_pointwise_travel_speed(), and will_move_z().
| std::string Slic3r::GCodeWriter::travel_to_z | ( | double | z, |
| const std::string & | comment = std::string(), | ||
| bool | force = false ) |
References _travel_to_z(), EPSILON, m_lifted, m_pos, and will_move_z().
Referenced by Slic3r::GCode::_extrude(), Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), and Slic3r::CalibPressureAdvance::move_to().
| std::string Slic3r::GCodeWriter::unlift | ( | ) |
References _travel_to_z(), m_lifted, m_pos, and m_to_lift.
Referenced by Slic3r::WipeTowerIntegration::append_tcr2().
| std::string Slic3r::GCodeWriter::unretract | ( | float | extra_retract = 0.f | ) |
References config, Slic3r::GCodeFormatter::emit_comment(), Slic3r::GCodeFormatter::emit_e(), Slic3r::GCodeFormatter::emit_f(), filament(), FLAVOR_IS, full_gcode_comment, Slic3r::gcfMachinekit, Slic3r::gcfMakerWare, high_precision(), Slic3r::is_zero(), reset_e(), Slic3r::GCodeFormatter::string(), and unretract().
Referenced by Slic3r::WipeTowerIntegration::append_tcr(), Slic3r::WipeTowerIntegration::append_tcr2(), Slic3r::ProcessLayer::emit_custom_gcode_per_print_z(), Slic3r::CalibPressureAdvance::move_to(), and unretract().
| std::string Slic3r::GCodeWriter::update_progress | ( | unsigned int | num, |
| unsigned int | tot, | ||
| bool | allow_100 = false ) const |
References config, FLAVOR_IS_NOT, full_gcode_comment, Slic3r::gcfMakerWare, and Slic3r::gcfSailfish.
|
inlineprotected |
References m_first_layer_point_test.
Referenced by travel_to_xyz().
| bool Slic3r::GCodeWriter::will_move_z | ( | double | z | ) | const |
References EPSILON, m_lifted, and m_pos.
Referenced by planned_travel_z(), travel_to_xyz(), and travel_to_z().
| GCodeConfig Slic3r::GCodeWriter::config |
Referenced by Slic3r::FanMover::FanMover(), _retract(), _spiral_travel_to_z(), _travel_to_z(), add_object_end_labels(), apply_print_config(), eager_lift(), get_gcode_flavor(), high_precision(), init_extruder(), lazy_lift(), preamble(), Slic3r::GCode::process_layer(), reset_e(), set_accel_and_jerk(), set_acceleration_internal(), set_chamber_temperature(), set_extruders(), set_fan(), set_input_shaping(), set_speed(), set_temperature(), toolchange(), toolchange_prefix(), travel_to_xy(), travel_to_xyz(), unretract(), and update_progress().
|
static |
Referenced by _retract(), _spiral_travel_to_z(), _travel_to_z(), Slic3r::GCode::do_export(), enable_power_loss_recovery(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), reset_e(), set_accel_and_jerk(), set_acceleration_internal(), set_additional_fan(), set_exhaust_fan(), set_fan(), set_input_shaping(), set_jerk_xy(), set_junction_deviation(), set_speed(), toolchange(), travel_to_xy(), travel_to_xyz(), unretract(), and update_progress().
|
private |
Referenced by active_printable_area(), and apply_print_config().
|
protected |
Referenced by set_build_volume_max(), and set_kinematics().
|
protected |
Referenced by GCodeWriter(), _spiral_travel_to_z(), _travel_to_z(), init_extruder(), set_extruders(), toolchange(), travel_to_xy(), and travel_to_xyz().
|
private |
Referenced by GCodeWriter(), filament(), filament(), init_extruder(), reset_e(), set_extruders(), and toolchange().
|
private |
Referenced by GCodeWriter(), filament(), filament(), filament(), filament(), init_extruder(), reset_e(), set_extruders(), and toolchange().
|
protected |
Referenced by GCodeWriter(), get_current_speed(), and set_speed().
|
private |
Referenced by active_printable_area(), and apply_print_config().
|
private |
Referenced by extruder_ids(), extruders(), get_extruder_retracted_length(), init_extruder(), set_extruder(), set_extruders(), and toolchange().
|
protected |
Referenced by point_on_first_layer(), set_first_layer_point_test(), and uses_pointwise_travel_speed().
|
protected |
Referenced by eager_lift(), lazy_lift(), and set_force_normal_lift().
|
protected |
Referenced by force_standard_precision(), and high_precision().
|
private |
Referenced by add_object_end_labels(), is_object_end_str_empty(), and set_object_end_str().
|
private |
Referenced by add_object_start_labels(), is_object_start_str_empty(), and set_object_start_str().
|
private |
Referenced by enable_power_loss_recovery(), is_bbl_printers(), set_is_bbl_machine(), set_jerk_xy(), set_pressure_advance(), and toolchange().
|
protected |
Referenced by is_current_position_clear(), and set_current_position_clear().
|
protected |
Referenced by GCodeWriter(), _spiral_travel_to_z(), point_on_first_layer(), and set_is_first_layer().
|
protected |
|
private |
Referenced by GCodeWriter(), invalidate_acceleration(), set_accel_and_jerk(), and set_acceleration_internal().
|
private |
Referenced by GCodeWriter(), and set_bed_temperature().
|
private |
Referenced by GCodeWriter(), and set_bed_temperature().
|
private |
Referenced by GCodeWriter(), invalidate_jerk(), set_accel_and_jerk(), and set_jerk_xy().
|
private |
Referenced by GCodeWriter(), invalidate_acceleration(), and set_acceleration_internal().
|
protected |
Referenced by GCodeWriter(), eager_lift(), extrude_to_xyz(), get_zhop(), lazy_lift(), travel_to_xyz(), travel_to_z(), unlift(), and will_move_z().
|
private |
Referenced by GCodeWriter(), apply_print_config(), set_accel_and_jerk(), and set_acceleration_internal().
|
private |
Referenced by apply_print_config(), and set_jerk_xy().
|
private |
Referenced by GCodeWriter(), apply_print_config(), set_accel_and_jerk(), and set_jerk_xy().
|
private |
Referenced by GCodeWriter(), apply_print_config(), set_accel_and_jerk(), and set_jerk_xy().
|
private |
Referenced by apply_print_config(), and set_jerk_xy().
|
private |
Referenced by apply_print_config(), and set_junction_deviation().
|
private |
Referenced by GCodeWriter(), apply_print_config(), and set_acceleration_internal().
|
protected |
Referenced by _spiral_travel_to_z(), _travel_to_z(), eager_lift(), extrude_arc_as_polyline(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), get_position(), get_position(), lazy_lift(), planned_travel_z(), set_position(), travel_to_xy(), travel_to_xyz(), travel_to_z(), unlift(), and will_move_z().
|
protected |
Referenced by set_axis_remap(), and set_kinematics().
|
protected |
Referenced by set_axis_remap(), and set_kinematics().
|
protected |
Referenced by set_axis_remap(), and set_kinematics().
|
private |
Referenced by _spiral_travel_to_z(), and apply_print_config().
|
private |
Referenced by GCodeWriter(), apply_print_config(), and set_temperature().
|
protected |
Referenced by GCodeWriter(), eager_lift(), lazy_lift(), planned_travel_z(), travel_to_xyz(), and unlift().
|
protected |
Referenced by GCodeWriter(), lazy_lift(), and travel_to_xyz().
|
protected |
Referenced by _spiral_travel_to_z(), _travel_to_z(), eager_lift(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), get_xy_offset(), set_xy_offset(), travel_to_xy(), and travel_to_xyz().
|
protected |
Referenced by _spiral_travel_to_z(), _travel_to_z(), eager_lift(), extrude_arc_to_xy(), extrude_to_xy(), extrude_to_xyz(), get_xy_offset(), set_xy_offset(), travel_to_xy(), and travel_to_xyz().
| bool Slic3r::GCodeWriter::multiple_extruders |
Referenced by GCodeWriter(), set_extruders(), set_temperature(), and toolchange().