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

@ -119,6 +119,16 @@ const BoundingBoxf3& GLCanvas3D::Bed::get_bounding_box() const
return m_bounding_box;
}
const Pointf& GLCanvas3D::Bed::get_origin() const
{
return m_origin;
}
void GLCanvas3D::Bed::set_origin(const Pointf& origin)
{
m_origin = origin;
}
void GLCanvas3D::Bed::_calc_bounding_box()
{
m_bounding_box = BoundingBoxf3();
@ -235,6 +245,16 @@ void GLCanvas3D::set_bed_shape(const Pointfs& shape)
m_bed.set_shape(shape);
}
const Pointf& GLCanvas3D::get_bed_origin() const
{
return m_bed.get_origin();
}
void GLCanvas3D::set_bed_origin(const Pointf& origin)
{
m_bed.set_origin(origin);
}
bool GLCanvas3D::is_dirty() const
{
return m_dirty;