mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
GCodeViewer -> Layers z slider wip
This commit is contained in:
parent
c76bf934f7
commit
a6ed1d817a
12 changed files with 104 additions and 30 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue