mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-25 01:49:22 -07:00
Moved the newly added GUI_Preview files.
This commit is contained in:
37
src/slic3r/GUI/GUI_PreviewIface.hpp
Normal file
37
src/slic3r/GUI/GUI_PreviewIface.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef slic3r_GUI_PreviewIface_hpp_
|
||||
#define slic3r_GUI_PreviewIface_hpp_
|
||||
|
||||
#include "../../libslic3r/Point.hpp"
|
||||
|
||||
class wxGLCanvas;
|
||||
class wxDropTarget;
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
namespace GUI {
|
||||
class Preview;
|
||||
} // namespace GUI
|
||||
|
||||
class PreviewIface
|
||||
{
|
||||
GUI::Preview* m_preview;
|
||||
|
||||
public:
|
||||
explicit PreviewIface(GUI::Preview* preview) : m_preview(preview) {}
|
||||
|
||||
void register_on_viewport_changed_callback(void* callback);
|
||||
void set_number_extruders(unsigned int number_extruders);
|
||||
void reset_gcode_preview_data();
|
||||
void reload_print(bool force = false);
|
||||
void set_canvas_as_dirty();
|
||||
void set_enabled(bool enabled);
|
||||
void set_bed_shape(const Pointfs& shape);
|
||||
void select_view(const std::string& direction);
|
||||
void set_viewport_from_scene(wxGLCanvas* canvas);
|
||||
void set_viewport_into_scene(wxGLCanvas* canvas);
|
||||
void set_drop_target(wxDropTarget* target);
|
||||
};
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif // slic3r_GUI_PreviewIface_hpp_
|
||||
Reference in New Issue
Block a user