#ifndef PLATEROBJECT_HPP #define PLATEROBJECT_HPP #include #ifndef WX_PRECOMP #include #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 instance_thumbnails; Slic3r::ExPolygonCollection& make_thumbnail(const Slic3r::Model model, int obj_idx); Slic3r::ExPolygonCollection& make_thumbnail(const std::shared_ptr model, int obj_idx); Slic3r::ExPolygonCollection& transform_thumbnail(const Slic3r::Model model, int obj_idx); Slic3r::ExPolygonCollection& transform_thumbnail(const std::shared_ptr model, int obj_idx); protected: const std::string LogChannel {"PlaterObject"}; }; }} // Namespace Slic3r::GUI #endif