GCodeViewer -> Layers z slider wip

This commit is contained in:
enricoturri1966 2020-04-27 11:44:29 +02:00
parent c76bf934f7
commit a6ed1d817a
12 changed files with 104 additions and 30 deletions

View file

@ -2346,17 +2346,22 @@ void GLCanvas3D::set_toolpath_view_type(GCodeViewer::EViewType type)
{
m_gcode_viewer.set_view_type(type);
}
void GLCanvas3D::set_toolpaths_z_range(const std::array<double, 2>& range)
{
m_gcode_viewer.set_layers_z_range(range);
}
#else
std::vector<double> GLCanvas3D::get_current_print_zs(bool active_only) const
{
return m_volumes.get_current_print_zs(active_only);
}
#endif // ENABLE_GCODE_VIEWER
void GLCanvas3D::set_toolpaths_range(double low, double high)
{
m_volumes.set_range(low, high);
}
#endif // ENABLE_GCODE_VIEWER
std::vector<int> GLCanvas3D::load_object(const ModelObject& model_object, int obj_idx, std::vector<int> instance_idxs)
{