mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-25 17:51:10 -06:00
3DScene bed origin moved to c++
This commit is contained in:
parent
7519e34507
commit
75f1f832aa
8 changed files with 108 additions and 12 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue