Added a tooltip overlay for the variable layer height edit tool.

Short methods of PrintState made inline.
Added layer height profile to a Model class.
This commit is contained in:
bubnikv 2017-02-07 18:17:12 +01:00
parent aceb87d188
commit 43ac693900
8 changed files with 98 additions and 56 deletions

View file

@ -8,43 +8,6 @@
namespace Slic3r {
template <class StepClass>
bool
PrintState<StepClass>::is_started(StepClass step) const
{
return this->started.find(step) != this->started.end();
}
template <class StepClass>
bool
PrintState<StepClass>::is_done(StepClass step) const
{
return this->done.find(step) != this->done.end();
}
template <class StepClass>
void
PrintState<StepClass>::set_started(StepClass step)
{
this->started.insert(step);
}
template <class StepClass>
void
PrintState<StepClass>::set_done(StepClass step)
{
this->done.insert(step);
}
template <class StepClass>
bool
PrintState<StepClass>::invalidate(StepClass step)
{
bool invalidated = this->started.erase(step) > 0;
this->done.erase(step);
return invalidated;
}
template class PrintState<PrintStep>;
template class PrintState<PrintObjectStep>;