#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/calib.hpp>
Public Member Functions | |
| CalibPressureAdvanceLine (GCode *gcodegen) | |
| ~CalibPressureAdvanceLine () | |
| BoundingBoxf | print_extents (const BoundingBoxf &bed_ext) const |
| std::string | generate_test (double start_pa=0, double step_pa=0.002, int count=50) |
| void | set_speed (double fast=100.0, double slow=20.0) |
| const double & | line_width () |
| const double & | height_layer () |
| bool | is_delta () const |
| bool & | draw_numbers () |
Static Public Member Functions | |
| static float | find_optimal_PA_speed (const DynamicPrintConfig &config, double line_width, double layer_height, int extruder_id=0, int filament_idx=0) |
Protected Types | |
| enum class | DrawDigitMode { Left_To_Right , Bottom_To_Top } |
Protected Member Functions | |
| void | delta_scale_bed_ext (BoundingBoxf &bed_ext) const |
| std::string | move_to (Vec2d pt, GCodeWriter &writer, std::string comment=std::string(), double z=0, double layer_height=-1) |
| double | e_per_mm (double line_width, double layer_height, float nozzle_diameter, float filament_diameter, float print_flow_ratio) const |
| double | speed_adjust (int speed) const |
| std::string | convert_number_to_string (double num, unsigned precision=0) const |
| double | number_spacing () const |
| std::string | draw_digit (double startx, double starty, char c, CalibPressureAdvance::DrawDigitMode mode, double line_width, double e_per_mm, GCodeWriter &writer) |
| std::string | draw_number (double startx, double starty, double value, CalibPressureAdvance::DrawDigitMode mode, double line_width, double e_per_mm, double speed, GCodeWriter &writer) |
| std::string | draw_line (GCodeWriter &writer, Vec2d to_pt, double line_width, double layer_height, double speed, const std::string &comment=std::string()) |
| std::string | draw_box (GCodeWriter &writer, double min_x, double min_y, double size_x, double size_y, DrawBoxOptArgs opt_args) |
| double | to_radians (double degrees) const |
| double | get_distance (Vec2d from, Vec2d to) const |
Protected Attributes | |
| Vec3d | m_last_pos |
| DynamicPrintConfig | m_config |
| const double | m_encroachment {1. / 3.} |
| DrawDigitMode | m_draw_digit_mode {DrawDigitMode::Left_To_Right} |
| const double | m_digit_segment_len {2} |
| const double | m_digit_gap_len {1} |
| const std::string::size_type | m_max_number_len {5} |
| std::string::size_type | m_number_len {m_max_number_len} |
Private Member Functions | |
| std::string | print_pa_lines (double start_x, double start_y, double start_pa, double step_pa, int num) |
| void | delta_modify_start (double &startx, double &starty, int count) |
Private Attributes | |
| GCode * | mp_gcodegen |
| double | m_nozzle_diameter |
| double | m_slow_speed |
| double | m_fast_speed |
| double | m_height_layer {0.2} |
| double | m_line_width {0.6} |
| double | m_thin_line_width {0.44} |
| double | m_number_line_width {0.48} |
| const double | m_space_y {3.5} |
| double | m_length_short {20.0} |
| double | m_length_long {40.0} |
| bool | m_draw_numbers {true} |
|
strongprotectedinherited |
| Slic3r::CalibPressureAdvanceLine::CalibPressureAdvanceLine | ( | GCode * | gcodegen | ) |
References Slic3r::CalibPressureAdvance::CalibPressureAdvance(), Slic3r::GCode::config(), Slic3r::initial_layer_print_height(), m_height_layer, m_line_width, m_nozzle_diameter, m_number_line_width, m_thin_line_width, mp_gcodegen, and Slic3r::nozzle_diameter().
|
inline |
|
protectedinherited |
Referenced by draw_number(), and Slic3r::CalibPressureAdvancePattern::max_numbering_length().
|
private |
|
inlineprotectedinherited |
References Slic3r::BoundingBoxBase< PointType, APointsType >::scale().
Referenced by Slic3r::CalibPressureAdvanceLine::generate_test(), and Slic3r::CalibPressureAdvanceLine::print_extents().
|
protectedinherited |
References draw_line(), Slic3r::DrawBoxOptArgs::height, Slic3r::DrawBoxOptArgs::is_filled, Slic3r::DrawBoxOptArgs::line_width, m_encroachment, M_PI, move_to(), Slic3r::DrawBoxOptArgs::num_perimeters, Slic3r::DrawBoxOptArgs::speed, and to_radians().
Referenced by Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
|
protectedinherited |
References Bottom_To_Top, e_per_mm(), Slic3r::GCodeWriter::extrude_to_xy(), m_digit_segment_len, and move_to().
Referenced by draw_number().
|
protectedinherited |
References e_per_mm(), Slic3r::GCodeWriter::extrude_to_xy(), get_distance(), Slic3r::layer_height(), Slic3r::length(), m_config, m_last_pos, and Slic3r::GCodeWriter::set_speed().
Referenced by draw_box(), and Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes().
|
protectedinherited |
References Bottom_To_Top, convert_number_to_string(), draw_digit(), e_per_mm(), m_number_len, number_spacing(), and Slic3r::GCodeWriter::set_speed().
Referenced by Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
|
inline |
References m_draw_numbers.
Referenced by Slic3r::GCode::_do_export().
|
protectedinherited |
References Slic3r::layer_height(), M_PI, Slic3r::Flow::mm3_per_mm(), Slic3r::nozzle_diameter(), and Slic3r::print_flow_ratio().
Referenced by draw_digit(), draw_line(), draw_number(), Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
|
staticinherited |
References Slic3r::Flow::auto_extrusion_width(), Slic3r::DynamicPrintConfig::def(), Slic3r::ConfigOptionDef::default_value, Slic3r::frPerimeter, Slic3r::ConfigDef::get(), Slic3r::ConfigOptionDef::get_default_value(), Slic3r::layer_height(), Slic3r::Flow::mm3_per_mm(), Slic3r::nozzle_diameter(), and Slic3r::ConfigBase::option().
Referenced by Slic3r::GUI::Plater::_calib_pa_pattern(), Slic3r::GCode::_do_export(), Slic3r::GUI::CalibUtils::calib_pa_pattern(), and Slic3r::GUI::CalibUtils::set_for_auto_pa_model_and_config().
| std::string Slic3r::CalibPressureAdvanceLine::generate_test | ( | double | start_pa = 0, |
| double | step_pa = 0.002, | ||
| int | count = 50 ) |
References count, Slic3r::CalibPressureAdvance::delta_scale_bed_ext(), Slic3r::get_extents(), is_delta(), m_length_long, m_length_short, m_space_y, Slic3r::BoundingBoxBase< PointType, APointsType >::min, mp_gcodegen, print_pa_lines(), and Slic3r::BoundingBoxBase< PointType, APointsType >::size().
Referenced by Slic3r::GCode::_do_export().
Referenced by draw_line().
|
inline |
References m_height_layer.
Referenced by Slic3r::GCode::_do_export().
| bool Slic3r::CalibPressureAdvanceLine::is_delta | ( | ) | const |
References mp_gcodegen.
Referenced by generate_test(), and print_extents().
|
inline |
References m_line_width.
Referenced by Slic3r::GCode::_do_export().
|
protectedinherited |
References EPSILON, Slic3r::layer_height(), m_last_pos, Slic3r::GCodeWriter::retract(), Slic3r::GCodeWriter::travel_to_xy(), Slic3r::GCodeWriter::travel_to_z(), and Slic3r::GCodeWriter::unretract().
Referenced by draw_box(), draw_digit(), Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
|
inlineprotectedinherited |
References m_digit_gap_len, and m_digit_segment_len.
Referenced by draw_number(), Slic3r::CalibPressureAdvanceLine::print_extents(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
| BoundingBoxf Slic3r::CalibPressureAdvanceLine::print_extents | ( | const BoundingBoxf & | bed_ext | ) | const |
References Slic3r::CalibPressureAdvance::delta_scale_bed_ext(), is_delta(), m_draw_numbers, m_length_short, m_line_width, Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBoxBase< PointType, APointsType >::min, Slic3r::CalibPressureAdvance::number_spacing(), and Slic3r::BoundingBoxBase< PointType, APointsType >::size().
Referenced by Slic3r::GCode::_do_export().
|
private |
References Slic3r::CalibPressureAdvance::draw_box(), Slic3r::CalibPressureAdvance::draw_number(), Slic3r::CalibPressureAdvance::e_per_mm(), Slic3r::GCodeProcessor::Height, Slic3r::DrawBoxOptArgs::is_filled, Slic3r::GCodeProcessor::Layer_Change, Slic3r::CalibPressureAdvance::m_draw_digit_mode, m_draw_numbers, m_fast_speed, m_height_layer, m_length_long, m_length_short, m_line_width, m_nozzle_diameter, m_number_line_width, m_slow_speed, m_space_y, m_thin_line_width, Slic3r::CalibPressureAdvance::move_to(), mp_gcodegen, Slic3r::CalibPressureAdvance::number_spacing(), Slic3r::print_flow_ratio(), Slic3r::GCodeProcessor::reserved_tag(), Slic3r::GCodeProcessor::Role, and Slic3r::CalibPressureAdvance::speed_adjust().
Referenced by generate_test().
|
inline |
References m_fast_speed, and m_slow_speed.
Referenced by Slic3r::GCode::_do_export().
|
inlineprotectedinherited |
Referenced by Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), and Slic3r::CalibPressureAdvanceLine::print_pa_lines().
|
inlineprotectedinherited |
References M_PI.
Referenced by Slic3r::CalibPressureAdvancePattern::_refresh_starting_point(), draw_box(), Slic3r::CalibPressureAdvancePattern::frame_size_y(), Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), Slic3r::CalibPressureAdvancePattern::line_spacing_angle(), Slic3r::CalibPressureAdvancePattern::object_size_x(), and Slic3r::CalibPressureAdvancePattern::object_size_y().
|
protectedinherited |
Referenced by CalibPressureAdvance(), CalibPressureAdvance(), Slic3r::CalibPressureAdvancePattern::_refresh_writer(), Slic3r::CalibPressureAdvancePattern::accel_perimeter(), draw_line(), Slic3r::CalibPressureAdvancePattern::flow_val(), Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes(), Slic3r::CalibPressureAdvancePattern::height_first_layer(), Slic3r::CalibPressureAdvancePattern::height_layer(), Slic3r::CalibPressureAdvancePattern::height_z_offset(), Slic3r::CalibPressureAdvancePattern::line_width(), Slic3r::CalibPressureAdvancePattern::line_width_first_layer(), Slic3r::CalibPressureAdvancePattern::refresh_setup(), Slic3r::CalibPressureAdvancePattern::speed_first_layer(), Slic3r::CalibPressureAdvancePattern::speed_perimeter(), and Slic3r::CalibPressureAdvancePattern::wall_count().
|
protectedinherited |
Referenced by Slic3r::CalibPressureAdvancePattern::max_numbering_height(), and number_spacing().
|
protectedinherited |
|
protectedinherited |
|
private |
Referenced by draw_numbers(), print_extents(), and print_pa_lines().
|
protectedinherited |
Referenced by draw_box(), and Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes().
|
private |
Referenced by print_pa_lines(), and set_speed().
|
private |
Referenced by CalibPressureAdvanceLine(), height_layer(), and print_pa_lines().
|
protectedinherited |
Referenced by draw_line(), and move_to().
|
private |
Referenced by generate_test(), and print_pa_lines().
|
private |
Referenced by generate_test(), print_extents(), and print_pa_lines().
|
private |
Referenced by CalibPressureAdvanceLine(), line_width(), print_extents(), and print_pa_lines().
|
protectedinherited |
Referenced by Slic3r::CalibPressureAdvancePattern::max_numbering_length().
|
private |
Referenced by CalibPressureAdvanceLine(), and print_pa_lines().
|
protectedinherited |
Referenced by draw_number(), and Slic3r::CalibPressureAdvancePattern::generate_custom_gcodes().
|
private |
Referenced by CalibPressureAdvanceLine(), and print_pa_lines().
|
private |
Referenced by print_pa_lines(), and set_speed().
|
private |
Referenced by delta_modify_start(), generate_test(), and print_pa_lines().
|
private |
Referenced by CalibPressureAdvanceLine(), and print_pa_lines().
|
private |
Referenced by CalibPressureAdvanceLine(), generate_test(), is_delta(), and print_pa_lines().