mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-28 19:42:00 +08:00
Small refactoring
This commit is contained in:
parent
72846bf0cd
commit
ee9ad49bbe
@ -171,7 +171,7 @@ public:
|
||||
// Set the current visible range.
|
||||
// values are clamped to the current view global range
|
||||
//
|
||||
void set_view_visible_range(uint32_t min, uint32_t max);
|
||||
void set_view_visible_range(Interval::value_type min, Interval::value_type max);
|
||||
|
||||
//
|
||||
// Return the count of vertices used to render the toolpaths
|
||||
|
@ -162,7 +162,7 @@ const Interval& Viewer::get_view_visible_range() const
|
||||
return m_impl->get_view_visible_range();
|
||||
}
|
||||
|
||||
void Viewer::set_view_visible_range(uint32_t min, uint32_t max)
|
||||
void Viewer::set_view_visible_range(Interval::value_type min, Interval::value_type max)
|
||||
{
|
||||
m_impl->set_view_visible_range(min, max);
|
||||
}
|
||||
|
@ -857,7 +857,7 @@ void ViewerImpl::toggle_extrusion_role_visibility(EGCodeExtrusionRole role)
|
||||
}
|
||||
}
|
||||
|
||||
void ViewerImpl::set_view_visible_range(uint32_t min, uint32_t max)
|
||||
void ViewerImpl::set_view_visible_range(Interval::value_type min, Interval::value_type max)
|
||||
{
|
||||
// force update of the full range, to avoid clamping the visible range with full old values
|
||||
// when calling m_view_range.set_visible()
|
||||
|
@ -105,7 +105,7 @@ public:
|
||||
const Interval& get_view_full_range() const { return m_view_range.get_full(); }
|
||||
const Interval& get_view_enabled_range() const { return m_view_range.get_enabled(); }
|
||||
const Interval& get_view_visible_range() const { return m_view_range.get_visible(); }
|
||||
void set_view_visible_range(uint32_t min, uint32_t max);
|
||||
void set_view_visible_range(Interval::value_type min, Interval::value_type max);
|
||||
|
||||
size_t get_vertices_count() const { return m_vertices.size(); }
|
||||
const PathVertex& get_current_vertex() const { return get_vertex_at(m_view_range.get_visible()[1]); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user