Slic3r/src/GUI/Plater/PlaterObject.hpp
2018-05-07 21:30:28 -05:00

43 lines
1.1 KiB
C++

#ifndef PLATEROBJECT_HPP
#define PLATEROBJECT_HPP
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "ExPolygonCollection.hpp"
#include "Model.hpp"
namespace Slic3r { namespace GUI {
class PlaterObject {
public:
std::string name {""};
size_t identifier {0U};
std::string input_file {""};
int input_file_obj_idx {-1};
bool selected {false};
int selected_instance {-1};
Slic3r::ExPolygonCollection thumbnail;
Slic3r::ExPolygonCollection transformed_thumbnail;
// read only
std::vector<Slic3r::ExPolygonCollection> instance_thumbnails;
Slic3r::ExPolygonCollection& make_thumbnail(const Slic3r::Model model, int obj_idx);
Slic3r::ExPolygonCollection& make_thumbnail(const std::shared_ptr<Slic3r::Model> model, int obj_idx);
Slic3r::ExPolygonCollection& transform_thumbnail(const Slic3r::Model model, int obj_idx);
Slic3r::ExPolygonCollection& transform_thumbnail(const std::shared_ptr<Slic3r::Model> model, int obj_idx);
protected:
const std::string LogChannel {"PlaterObject"};
};
}} // Namespace Slic3r::GUI
#endif