413 Commits

Author SHA1 Message Date
Martin Šach
b4ab9883c2 Reload even empty preview
When Preview::load_print is called and even if the print
has no layers, call load_gcode_preview to show an
empty bed for print with no layers.
2024-12-13 12:34:20 +01:00
YuSanka
b732a5b744 Fixed position of the "Statistics" window and added horizontal scroll-bar to it.
+ Fixed scaling, size and position of the bed selector and notifications, when auto-slicing is on
2024-12-13 10:36:27 +01:00
enricoturri1966
75274707c9 SPE-2595 - Fixed update of shells in preview 2024-12-06 10:56:13 +01:00
YuSanka
324763a90e Nicer bed selector dialog 2024-11-20 16:04:15 +01:00
Lukas Matena
da13a0a80e Vectorization of customgcode 2024-11-20 16:04:15 +01:00
Lukas Matena
7da3ce6961 Multiple beds (part 2):
- Vectorizing Print, SLAPrint and GCodeProcessorResult
- Connect multiple beds to background slicing process
- TODO: A lot of code (notifications, etc.) commented-out.
2024-11-20 13:36:12 +01:00
YuSanka
a55c85ecef Follow-up 785ad4ce: DoubleSlider: Fixed a check of the Custom G-code
(this code was temporary commented and forgotten to uncomment)
SPE-2445
2024-08-27 12:58:38 +02:00
Martin Šach
96e3e77fef Prepare fe for include optimization.
- Add pragmas to keep necessary headers with symbols not explicitly
stated in the file.
- Use include paths that IWYU understands.
2024-07-08 15:37:02 +02:00
YuSanka
1c0cb70faa Fix for #12877 - Color Change Added After Moving Slider
+ Fixed update of the ruler, when it was hidden and than shown
+ Added messed include in RulerForDoubleSlider.cpp (#12882)
+ Fixed some warnings
2024-06-24 19:58:39 +02:00
enricoturri1966
bafd65d55b SPE-2344: Fix performance hit on MAC in GCodeViewer:
squashed et_spe2344_bis (5c6bba6)
2024-06-24 19:45:08 +02:00
YuSanka
97d82a0d57 DoubleSliderForLayers Improvements:
* Set "Show estimated print time on mouse moving" on true by default
* Back ported Ruler
* Fix for "Add" button
* Show move line on ruler
2024-06-21 14:12:28 +02:00
enricoturri1966
93a47c971a Port of b2627055e34d1d42b86b32613e3fd0c07051ee63 from branch et_spe2109 2024-06-12 19:11:05 +02:00
YuSanka
6ee8901338 ImGuiDoubleSlider: Implemented Freeze/Thaw functions to avoid redundant call of the process_thumb_move();
+ Use SetSelectionSpan instead of SetHigherPos and SetLowerPos at the same time
2024-06-10 10:46:12 +02:00
Lukas Matena
226b20fa17 Added a 'layer statistics' legend for SLA 2024-06-06 12:17:44 +02:00
enricoturri1966
2eeca737ea Technology ENABLE_OPENGL_AUTO_AA_SAMPLES set as default 2024-05-02 13:23:26 +02:00
YuSanka
35e736a8e5 ImGuiDoubleSlider: Fixed flickering on moving of the overlapped thumbs
+ Hide sliders after theirs creation
2024-04-30 16:02:31 +02:00
YuSanka
0bb9233da7 ImguiDoubleSlider: Respect to "Collapse sidebar" button
+ use scale from canvas Size
2024-04-24 10:54:12 +02:00
YuSanka
b02e0e6fd1 ImguiDoubleSlider: Notifications placement to avoid overlapping with sliders 2024-04-24 10:54:12 +02:00
YuSanka
785ad4ce95 ImguiDoubleSlider: WIP: Functions which was related to manipulate with ticks are moved into TickCodeInfo
* TickCodeInfo is renamed to TickCodesManager and moved to separate files
 * Added more callbacks to avoid use of wxWidgets
 * Added function for color picker rendering

 * For string formatting is used Slic3r::format instead of GUI::format (To avoid including wx/string)
 * All code related to DoubleSlider extracted from Slic3r name space
2024-04-24 10:54:12 +02:00
YuSanka
6b83f135c9 ImguiDoubleSlider: WIP: Slider Manager is moved to ImGuiDoubleSlider and some values and methods are renamed
+ "DoubleSlider: file is split to DoubleSliderForGcode and DoubleSliderForLayers in separate files
 + Suppress to add/delete ticks on update layers_slider from canvas when an application is a GCodeViewer
 + epsilon() is moved from DoubleSlider name space to CustomGCode
2024-04-24 10:54:12 +02:00
YuSanka
56a3740fe4 ImguiDoubleSlider: WIP: Control is split to DSManagerForGcode and DSManagerForLayers (both are derived from template class)
+ GLCanvas3D: refactoring for handle of events related to the manipulation with sliders
 + use callbacks to process navigation in sliders instead of wxEvents
2024-04-24 10:54:12 +02:00
YuSanka
6ea3dc6c27 ImguiDoubleSlider: WIP: All data, related to Slider are in ImGuiControl now
+ code cleaning to avoid of use wxWidgets to render DoubleSlider
2024-04-24 10:54:12 +02:00
YuSanka
d06ef37df9 ImguiDoubleSlider: WIP: Set scale in respect to Retina displays
+ request one more frame for redraw, if value was changed with mouse wheel
 + some code cleaning
2024-04-24 10:54:12 +02:00
YuSanka
ab9923eee6 ImguiDoubleSlider: WIP: Implemented "pure" ImGuiControl
+ For ImGuiControl implemented adding of callbacks for get_label and draw_scroll_line
2024-04-24 10:54:12 +02:00
YuSanka
a26d17d689 ImguiDoubleSliser: WIP: Some of code is ported from BambuStudio (state of 96707fc4b4b40c30b7e5610d2489ef283fe952a4)
* Code improvements :
    + added render_button()
    + added draw_hexagon()
2024-04-24 10:54:12 +02:00
YuSanka
a5322ef970 DoubleSlider: ImGui rendering (WIP) 2024-04-24 10:54:12 +02:00
enricoturri1966
04d916a351 Fixed debug export of gcode data to be configuration indipendent 2024-03-26 14:41:56 +01:00
enricoturri1966
539c155c59 Code cleanup and techs removal - completed 2024-03-26 14:41:55 +01:00
enricoturri1966
82001626dd SPE-2124: Added command line option 'opengl-aa' to allow the user to turn on the automatic selection of max number of supported samples for OpenGL antialising 2024-03-26 14:27:01 +01:00
enricoturri1966
6529f28f26 New gcode visualization library - Separation of tool colors and color changes colors to simplify client code 2024-03-26 14:26:59 +01:00
enricoturri1966
028888bea5 New gcode visualization integration - Follow-up of 35ee55e29bb231fd01a2eb71ae293832a37ca65d - Better fix for toolpaths visible range when toggling options' visibility 2024-03-26 14:15:39 +01:00
enricoturri1966
eaa1920bac New gcode visualization integration - Fixed toolpaths visible range when toggling options' visibility 2024-03-26 14:15:39 +01:00
enricoturri1966
13f9d6f28e New gcode visualization integration - Fixed management of gcode preview view type 2024-03-26 14:15:38 +01:00
enricoturri1966
55b674ca3b Code cleanup 2024-03-26 14:15:37 +01:00
enricoturri1966
044dbf983b New gcode visualization integration - Tool position properties data window 2024-03-26 14:14:52 +01:00
enricoturri1966
f11fdf4432 Refactoring 2024-03-26 14:14:52 +01:00
enricoturri1966
bcfec2ae1a New gcode visualization integration - Customizable extrusion roles colors 2024-03-26 14:13:57 +01:00
enricoturri1966
00a19fe4eb New gcode visualization integration - Fixed pre-gcode preview layers times 2024-03-26 14:12:32 +01:00
enricoturri1966
160d9b0187 New gcode visualization integration - Modify pre-gcode preview to use the new toolpaths renderer, objects WIP 2024-03-26 14:12:32 +01:00
enricoturri1966
a2b9104567 New gcode visualization - Modify pre-gcode preview to use the new toolpaths renderer, WIP (brim/skirt/wipe tower) 2024-03-26 14:12:32 +01:00
enricoturri1966
0faaf6b683 New gcode visualization integration - Do not reset visible range when toggling options/roles visibility 2024-03-26 14:12:32 +01:00
enricoturri1966
1d6fb321af New gcode visualization integration - Removal of old visualization 2024-03-26 14:12:32 +01:00
enricoturri1966
560263ea05 New gcode visualization integration - View ranges management moved to new visualizer 2024-03-26 14:12:32 +01:00
enricoturri1966
d3fd11dad9 New gcode visualization integration - Layers times 2024-03-26 14:04:08 +01:00
enricoturri1966
285a274ff7 SPE-1982: Tech ENABLE_NEW_GCODE_VIEWER - 1st installment of new toolpaths rendering code (WIP) 2024-03-26 14:04:05 +01:00
enricoturri1966
f6027deca9 SPE-1814: Fixed legend not automatically switching to color print view when color change is set in layer height bar for mmu printers 2024-02-09 11:09:49 +01:00
Lukáš Hejl
76435e7add SPE-1840: Rework multi-material segmentation to work directly on the Voronoi diagram without creating a copy of it.
Previous algorithms assume that they can get an invalid Voronoi diagram. Because of that, during the multi-material segmentation, a copy of the Voronoi diagram was created, and there were several attempts to fix missing vertices and edges. But as it shows, this wasn't a good enough approach and sometimes led to several issues like bleeding layers.

After generalization, our approach for detection and repairs of invalid Voronoi diagrams from Arachne, we could assume that multi-material segmentation gets non-invalid Voronoi diagrams.
With this assumption, we reimplement multi-materials segmentation to work directly on the Voronoi diagram. That should make multi-material segmentation more stable.

So, this should fix several issues like bleeding layers. Also, memory consumption should decrease by a lot. Also, there should be some speedup of multi-materials segmentation.
2024-02-08 15:40:20 +01:00
ps_copyright
f32859c302 final copyright headers 2023-09-01 14:49:07 +02:00
enricoturri1966
b809996d30 SPE-1761: Show part shells in pre-gcode preview 2023-08-21 09:42:00 +02:00
enricoturri1966
cc55bcbf5e Conflict checker: automatically set the gcode preview at the layer shown in the notification when hitting the action text in it 2023-05-31 13:34:03 +02:00