1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /**
- * UBL Tools and Mesh Viewer for Pro UI
- * Version: 1.0.0
- * Date: 2022/04/13
- *
- * Original Author: Henri-J-Norden (https://github.com/Henri-J-Norden)
- * Original Source: https://github.com/Jyers/Marlin/pull/135
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
- */
- #pragma once
-
- #include "../../../inc/MarlinConfigPre.h"
-
- //#define USE_UBL_VIEWER 1
-
- #define UBL_Z_OFFSET_MIN -3.0
- #define UBL_Z_OFFSET_MAX 3.0
-
- class UBLMeshToolsClass {
- public:
- #if ENABLED(USE_UBL_VIEWER)
- static bool viewer_asymmetric_range;
- static bool viewer_print_value;
- #endif
- static bool goto_mesh_value;
- static uint8_t tilt_grid;
-
- #if ENABLED(AUTO_BED_LEVELING_UBL)
- static void manual_value_update(const uint8_t mesh_x, const uint8_t mesh_y, bool undefined=false);
- static bool create_plane_from_mesh();
- #else
- static void manual_value_update(const uint8_t mesh_x, const uint8_t mesh_y);
- #endif
- static void manual_move(const uint8_t mesh_x, const uint8_t mesh_y, bool zmove=false);
- static float get_max_value();
- static float get_min_value();
- static bool validate();
- #if ENABLED(USE_UBL_VIEWER)
- static void Draw_Bed_Mesh(int16_t selected = -1, uint8_t gridline_width = 1, uint16_t padding_x = 8, uint16_t padding_y_top = 40 + 53 - 7);
- static void Set_Mesh_Viewer_Status();
- #endif
- };
-
- extern UBLMeshToolsClass ubl_tools;
-
- void Goto_MeshViewer();
|