Added bare-bones stubs for 3D plater and 3D preview.

This commit is contained in:
Joseph Lenox 2018-05-06 22:43:02 -05:00
parent 7c96e56e07
commit 19c1811823
3 changed files with 38 additions and 1 deletions

View File

@ -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);

View 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

View 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