mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-07 07:36:34 +08:00
43 lines
1.1 KiB
C++
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
|