mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	1st installment of preview ported in c++
This commit is contained in:
		
							parent
							
								
									5fa99fd903
								
							
						
					
					
						commit
						e3e5948982
					
				
					 13 changed files with 718 additions and 10 deletions
				
			
		
							
								
								
									
										37
									
								
								xs/src/slic3r/GUI/GUI_PreviewIface.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								xs/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_
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri