#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Preview.hpp>
Public Types | |
| enum class | OptionType : unsigned int { Travel , Wipe , Retractions , Unretractions , Seams , ToolChanges , ColorChanges , PausePrints , CustomGCodes , Shells , ToolMarker , Legend } |
Public Member Functions | |
| Preview (wxWindow *parent, Bed3D &bed, Model *model, DynamicPrintConfig *config, BackgroundSlicingProcess *process, GCodeProcessorResult *gcode_result, std::function< void()> schedule_background_process=[]() {}) | |
| virtual | ~Preview () |
| void | update_gcode_result (GCodeProcessorResult *gcode_result) |
| wxGLCanvas * | get_wxglcanvas () |
| GLCanvas3D * | get_canvas3d () |
| void | set_as_dirty () |
| void | bed_shape_changed () |
| void | select_view (const std::string &direction) |
| void | set_drop_target (wxDropTarget *target) |
| void | load_print (bool keep_z_range=false, bool only_gcode=false) |
| void | reload_print (bool only_gcode=false) |
| void | refresh_belt_view () |
| void | load_shells (const Print &print, bool force_previewing=false) |
| void | reset_shells () |
| void | msw_rescale () |
| void | sys_color_changed () |
| bool | is_loaded () const |
| void | on_tick_changed (CustomGCode::Type type) |
| void | show_sliders (bool show=true) |
| void | show_moves_sliders (bool show=true) |
| void | show_layers_sliders (bool show=true) |
| void | set_reload_paint_after_background_process_apply (bool flag) |
| bool | get_reload_paint_after_background_process_apply () |
Private Member Functions | |
| bool | init (wxWindow *parent, Bed3D &bed, Model *model) |
| void | bind_event_handlers () |
| void | unbind_event_handlers () |
| void | on_size (wxSizeEvent &evt) |
| void | check_layers_slider_values (std::vector< CustomGCode::Item > &ticks_from_model, const std::vector< double > &layers_z) |
| void | update_layers_slider (const std::vector< double > &layers_z, bool keep_z_range=false) |
| void | update_layers_slider_mode () |
| void | load_print_as_fff (bool keep_z_range=false, bool only_gcode=false) |
Private Attributes | |
| wxGLCanvas * | m_canvas_widget { nullptr } |
| GLCanvas3D * | m_canvas { nullptr } |
| DynamicPrintConfig * | m_config |
| BackgroundSlicingProcess * | m_process |
| GCodeProcessorResult * | m_gcode_result |
| std::function< void()> | m_schedule_background_process |
| unsigned int | m_number_extruders { 1 } |
| bool | m_keep_current_preview_type { false } |
| const Slic3r::PrintBase * | m_loaded_print { nullptr } |
| bool | m_only_gcode { false } |
| bool | m_reload_paint_after_background_process_apply {false} |
|
strong |
| Enumerator | |
|---|---|
| Travel | |
| Wipe | |
| Retractions | |
| Unretractions | |
| Seams | |
| ToolChanges | |
| ColorChanges | |
| PausePrints | |
| CustomGCodes | |
| Shells | |
| ToolMarker | |
| Legend | |
| Slic3r::GUI::Preview::Preview | ( | wxWindow * | parent, |
| Bed3D & | bed, | ||
| Model * | model, | ||
| DynamicPrintConfig * | config, | ||
| BackgroundSlicingProcess * | process, | ||
| GCodeProcessorResult * | gcode_result, | ||
| std::function< void()> | schedule_background_process = []() {} ) |
References init(), load_print(), m_config, m_gcode_result, m_process, and m_schedule_background_process.
|
virtual |
References m_canvas, m_canvas_widget, and unbind_event_handlers().
| void Slic3r::GUI::Preview::bed_shape_changed | ( | ) |
|
private |
|
private |
References m_schedule_background_process.
Referenced by update_layers_slider().
|
inline |
|
inline |
References m_reload_paint_after_background_process_apply.
|
inline |
References m_canvas_widget.
References bind_event_handlers(), Slic3r::GUI::OpenGLManager::can_multisample(), Slic3r::GUI::GLCanvas3D::CanvasPreview, Slic3r::GUI::OpenGLManager::create_wxglcanvas(), m_canvas, m_canvas_widget, m_config, and m_process.
Referenced by Preview().
|
inline |
References m_loaded_print.
| void Slic3r::GUI::Preview::load_print | ( | bool | keep_z_range = false, |
| bool | only_gcode = false ) |
References load_print_as_fff(), m_process, and Slic3r::ptFFF.
Referenced by Preview(), refresh_belt_view(), and reload_print().
|
private |
References _L, Slic3r::Print::extruders(), Slic3r::Print::is_step_done(), load_shells(), m_canvas, m_canvas_widget, m_gcode_result, m_keep_current_preview_type, m_loaded_print, m_process, Slic3r::Print::objects(), Slic3r::posSlice, Slic3r::posSupportMaterial, Slic3r::psGCodeExport, Slic3r::ptFFF, show_layers_sliders(), show_moves_sliders(), show_sliders(), and update_layers_slider().
Referenced by load_print().
| void Slic3r::GUI::Preview::load_shells | ( | const Print & | print, |
| bool | force_previewing = false ) |
References m_canvas.
Referenced by load_print_as_fff(), and Slic3r::GUI::Plater::priv::update_fff_scene_only_shells().
| void Slic3r::GUI::Preview::msw_rescale | ( | ) |
References get_canvas3d(), m_only_gcode, Slic3r::GUI::GLCanvas3D::msw_rescale(), and reload_print().
|
private |
Referenced by bind_event_handlers(), and unbind_event_handlers().
| void Slic3r::GUI::Preview::on_tick_changed | ( | CustomGCode::Type | type | ) |
References m_keep_current_preview_type, and reload_print().
| void Slic3r::GUI::Preview::refresh_belt_view | ( | ) |
References Slic3r::GUI::IMSlider::GetHigherValue(), Slic3r::GUI::IMSlider::GetLowerValue(), load_print(), m_canvas, m_loaded_print, m_only_gcode, and Slic3r::GUI::IMSlider::SetSelectionSpan().
| void Slic3r::GUI::Preview::reload_print | ( | bool | only_gcode = false | ) |
References load_print(), m_loaded_print, and m_only_gcode.
Referenced by msw_rescale(), Slic3r::GUI::Plater::priv::on_process_completed(), Slic3r::GUI::Plater::priv::on_slicing_update(), on_tick_changed(), Slic3r::GUI::Plater::priv::set_current_panel(), Slic3r::GUI::Plater::priv::update(), Slic3r::GUI::Plater::priv::update_fff_scene(), and Slic3r::GUI::Plater::priv::update_restart_background_process().
| void Slic3r::GUI::Preview::reset_shells | ( | ) |
| void Slic3r::GUI::Preview::select_view | ( | const std::string & | direction | ) |
| void Slic3r::GUI::Preview::set_as_dirty | ( | ) |
| void Slic3r::GUI::Preview::set_drop_target | ( | wxDropTarget * | target | ) |
|
inline |
References m_reload_paint_after_background_process_apply.
| void Slic3r::GUI::Preview::show_layers_sliders | ( | bool | show = true | ) |
Referenced by load_print_as_fff(), and show_sliders().
| void Slic3r::GUI::Preview::show_moves_sliders | ( | bool | show = true | ) |
Referenced by load_print_as_fff(), and show_sliders().
| void Slic3r::GUI::Preview::show_sliders | ( | bool | show = true | ) |
References show_layers_sliders(), and show_moves_sliders().
Referenced by load_print_as_fff().
| void Slic3r::GUI::Preview::sys_color_changed | ( | ) |
|
private |
References on_size().
Referenced by ~Preview().
| void Slic3r::GUI::Preview::update_gcode_result | ( | GCodeProcessorResult * | gcode_result | ) |
References m_gcode_result.
Referenced by Slic3r::GUI::Plater::priv::load_files(), Slic3r::GUI::Plater::priv::reload_from_disk(), Slic3r::GUI::Plater::priv::undo_redo_to(), and Slic3r::GUI::Plater::priv::update_background_process().
|
private |
References Slic3r::area(), Slic3r::ByObject, check_layers_slider_values(), Slic3r::GUI::epsilon(), Slic3r::GUI::equivalent_areas(), Slic3r::GUI::find_close_layer_idx(), Slic3r::CustomGCode::Info::gcodes, Slic3r::GUI::IMSlider::GetHigherValueD(), Slic3r::GUI::IMSlider::GetLowerValueD(), Slic3r::GUI::IMSlider::GetMaxValue(), Slic3r::GUI::IMSlider::GetMaxValueD(), Slic3r::GUI::IMSlider::GetMinValue(), Slic3r::GUI::IMSlider::is_higher_at_max(), Slic3r::GUI::IMSlider::is_lower_at_min(), Slic3r::GUI::IMSlider::IsNewPrint(), m_canvas, m_gcode_result, Slic3r::CustomGCode::Info::mode, Slic3r::Print::objects(), Slic3r::GUI::plater(), Slic3r::GUI::IMSlider::SetDrawMode(), Slic3r::GUI::IMSlider::SetExtruderColors(), Slic3r::GUI::IMSlider::SetLayersTimes(), Slic3r::GUI::IMSlider::SetMaxValue(), Slic3r::GUI::IMSlider::SetSelectionSpan(), Slic3r::GUI::IMSlider::SetSliderValues(), Slic3r::GUI::IMSlider::SetTicksValues(), Slic3r::CustomGCode::SingleExtruder, and update_layers_slider_mode().
Referenced by load_print_as_fff().
|
private |
References m_canvas, and Slic3r::GUI::IMSlider::SetModeAndOnlyExtruder().
Referenced by update_layers_slider().
|
private |
Referenced by ~Preview(), bed_shape_changed(), get_canvas3d(), init(), load_print_as_fff(), load_shells(), refresh_belt_view(), reset_shells(), select_view(), set_as_dirty(), update_layers_slider(), and update_layers_slider_mode().
|
private |
Referenced by ~Preview(), get_wxglcanvas(), init(), and load_print_as_fff().
|
private |
|
private |
Referenced by Preview(), load_print_as_fff(), update_gcode_result(), and update_layers_slider().
|
private |
Referenced by load_print_as_fff(), and on_tick_changed().
|
private |
Referenced by is_loaded(), load_print_as_fff(), refresh_belt_view(), and reload_print().
|
private |
|
private |
Referenced by msw_rescale(), refresh_belt_view(), and reload_print().
|
private |
Referenced by Preview(), init(), load_print(), and load_print_as_fff().
|
private |
Referenced by get_reload_paint_after_background_process_apply(), and set_reload_paint_after_background_process_apply().
|
private |
Referenced by Preview(), and check_layers_slider_values().