mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 15:20:47 +08:00
Added bare-bones stubs for 3D plater and 3D preview.
This commit is contained in:
parent
7c96e56e07
commit
19c1811823
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include "Plater/PlaterObject.hpp"
|
#include "Plater/PlaterObject.hpp"
|
||||||
#include "Plater/Plate2D.hpp"
|
#include "Plater/Plate2D.hpp"
|
||||||
|
#include "Plater/Plate3D.hpp"
|
||||||
|
#include "Plater/Preview3D.hpp"
|
||||||
#include "Settings.hpp"
|
#include "Settings.hpp"
|
||||||
|
|
||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
@ -58,7 +60,10 @@ private:
|
|||||||
|
|
||||||
wxNotebook* preview_notebook {new wxNotebook(this, -1, wxDefaultPosition, wxSize(335,335), wxNB_BOTTOM)};
|
wxNotebook* preview_notebook {new wxNotebook(this, -1, wxDefaultPosition, wxSize(335,335), wxNB_BOTTOM)};
|
||||||
|
|
||||||
Plate2D* canvas2D {}; //< 2D plater canvas
|
Plate2D* canvas2D {nullptr}; //< 2D plater canvas
|
||||||
|
Plate3D* canvas3D {nullptr}; //< 3D plater canvas
|
||||||
|
|
||||||
|
Preview3D* preview3D {nullptr}; //< 3D Preview
|
||||||
|
|
||||||
/// Handles the actual load of the file from the dialog handoff.
|
/// Handles the actual load of the file from the dialog handoff.
|
||||||
std::vector<int> load_file(const std::string file, const int obj_idx_to_load = -1);
|
std::vector<int> load_file(const std::string file, const int obj_idx_to_load = -1);
|
||||||
|
16
src/GUI/Plater/Plate3D.hpp
Normal file
16
src/GUI/Plater/Plate3D.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef PLATE3D_HPP
|
||||||
|
#define PLATE3D_HPP
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/wx.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
|
class Plate3D : public wxPanel {
|
||||||
|
public:
|
||||||
|
void update() {};
|
||||||
|
};
|
||||||
|
|
||||||
|
} } // Namespace Slic3r::GUI
|
||||||
|
#endif
|
16
src/GUI/Plater/Preview3D.hpp
Normal file
16
src/GUI/Plater/Preview3D.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef PREVIEW3D_HPP
|
||||||
|
#define PREVIEW3D_HPP
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/wx.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
|
class Preview3D : public wxPanel {
|
||||||
|
public:
|
||||||
|
void reload_print() {};
|
||||||
|
};
|
||||||
|
|
||||||
|
} } // Namespace Slic3r::GUI
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user