3DScene bed origin moved to c++

This commit is contained in:
Enrico Turri 2018-05-15 11:07:32 +02:00
parent 7519e34507
commit 75f1f832aa
8 changed files with 108 additions and 12 deletions

View file

@ -64,6 +64,7 @@ public:
{
Pointfs m_shape;
BoundingBoxf3 m_bounding_box;
Pointf m_origin;
public:
const Pointfs& get_shape() const;
@ -71,6 +72,9 @@ public:
const BoundingBoxf3& get_bounding_box() const;
const Pointf& get_origin() const;
void set_origin(const Pointf& origin);
private:
void _calc_bounding_box();
};
@ -103,6 +107,9 @@ public:
void set_bed_shape(const Pointfs& shape);
const Pointf& get_bed_origin() const;
void set_bed_origin(const Pointf& origin);
bool is_dirty() const;
void set_dirty(bool dirty);