403 Commits

Author SHA1 Message Date
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
Filip Sykala - NTB T15p
201e9d493f Remove side effects from setter for enable picking. 2023-03-20 15:32:21 +01:00
YuSanka
b71e0bfd34 Follow-up 8913fdf6ab
* Deleted/Temporary commented redundant call of app_config->save()
 * Use app_config->get_bool() function on all places
2023-02-13 17:23:49 +01:00
enricoturri1966
cf37f154ee Tech ENABLE_PROCESS_G2_G3_LINES set as default 2022-12-06 13:21:06 +01:00
Vojtech Bubnik
acbc60f3e3 Better const correctness 2022-10-19 16:27:15 +02:00
enricoturri1966
3513b800a0 Tech ENABLE_PREVIEW_LAYOUT set as default 2022-09-29 14:23:41 +02:00
enricoturri1966
174df56ec2 Tech ENABLE_PREVIEW_LAYER_TIME set as default 2022-09-27 12:39:24 +02:00
YuSanka
1d145bb359 Follow-up 9bb74d92c7 - Suppress to suggest of the "Automatic color change", if some color changes are already apply for the model 2022-09-02 15:22:24 +02:00
YuSanka
39788066e2 Fix for #8542 - MMU - Allow user to choose initial extruder but then also change extruder at layer height
1. Fix for detection of the DoubleSlicer mode => An extruder for the Height Range modifiers have to be ignored, if it's default.
2. OSX only: Extruder selection wasn't editable for Height Range modifiers
2022-09-02 14:36:40 +02:00
YuSanka
9bb74d92c7 Fix for #8380 - Disable/Remove "Sliced Object "*" looks like a logo or a sign
Preferences: Added option "Allow automatically color change"
2022-08-30 14:32:16 +02:00
André Althaus
559173c2a1 Don't change to color print view when no color change gcodes are set
When changing custom gcodes the view type is always changed to color view
when any custom gcode is set. This fix only changes to color view
when the custom gcodes contain at least one color change.

Fixes #8413 and #5837
2022-07-25 08:21:04 +02:00