PrusaSlicer-NonPlainar/src/slic3r/GUI/2DBed.hpp

34 lines
590 B
C++
Raw Normal View History

2018-04-20 10:58:07 +00:00
#ifndef slic3r_2DBed_hpp_
#define slic3r_2DBed_hpp_
#include <wx/wx.h>
#include "libslic3r/Config.hpp"
namespace Slic3r {
namespace GUI {
class Bed_2D : public wxPanel
{
2019-06-12 08:00:51 +00:00
static const int Border = 10;
bool m_user_drawn_background = true;
2019-06-12 08:00:51 +00:00
double m_scale_factor;
Vec2d m_shift = Vec2d::Zero();
Vec2d m_pos = Vec2d::Zero();
Point to_pixels(const Vec2d& point, int height);
void set_pos(const Vec2d& pos);
public:
explicit Bed_2D(wxWindow* parent);
void repaint(const std::vector<Vec2d>& shape);
};
} // GUI
} // Slic3r
2018-04-20 10:58:07 +00:00
#endif /* slic3r_2DBed_hpp_ */