Files
OrcaSlicer-bambulab/src/slic3r/GUI/2DBed.hpp
T

37 lines
588 B
C++
Raw Normal View History

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