![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/PrintBase.hpp>
Inheritance diagram for Slic3r::PrintState< StepType, COUNT >:
Collaboration diagram for Slic3r::PrintState< StepType, COUNT >:Public Types | |
| enum class | State { Fresh , Started , Canceled , Done , Invalidated } |
| enum class | WarningLevel { NON_CRITICAL , CRITICAL } |
| typedef size_t | TimeStamp |
Public Member Functions | |
| PrintState () | |
| StateWithTimeStamp | state_with_timestamp (StepType step, std::mutex &mtx) const |
| StateWithWarnings | state_with_warnings (StepType step, std::mutex &mtx) const |
| bool | is_started (StepType step, std::mutex &mtx) const |
| bool | is_done (StepType step, std::mutex &mtx) const |
| StateWithTimeStamp | state_with_timestamp_unguarded (StepType step) const |
| bool | is_started_unguarded (StepType step) const |
| bool | is_done_unguarded (StepType step) const |
| void | enable_unguarded (StepType step, bool enable) |
| void | enable_all_unguarded (bool enable) |
| bool | is_enabled_unguarded (StepType step) const |
| template<typename ThrowIfCanceled > | |
| bool | set_started (StepType step, std::mutex &mtx, ThrowIfCanceled throw_if_canceled) |
| template<typename ThrowIfCanceled > | |
| std::pair< TimeStamp, bool > | set_done (StepType step, std::mutex &mtx, ThrowIfCanceled throw_if_canceled) |
| template<typename CancelationCallback > | |
| bool | invalidate (StepType step, CancelationCallback cancel) |
| template<typename CancelationCallback , typename StepTypeIterator > | |
| bool | invalidate_multiple (StepTypeIterator step_begin, StepTypeIterator step_end, CancelationCallback cancel) |
| template<typename CancelationCallback > | |
| bool | invalidate_all (CancelationCallback cancel) |
| bool | query_reset_dirty_unguarded (StepType step) |
| void | mark_canceled_unguarded () |
| std::pair< StepType, bool > | active_step_add_warning (PrintStateBase::WarningLevel warning_level, const std::string &message, int message_id, std::mutex &mtx) |
Static Protected Attributes | |
| static size_t | g_last_timestamp = 0 |
Private Attributes | |
| StateWithWarnings | m_state [COUNT] |
| int | m_step_active = -1 |
|
inherited |
|
stronginherited |
| Enumerator | |
|---|---|
| Fresh | |
| Started | |
| Canceled | |
| Done | |
| Invalidated | |
|
stronginherited |
| Enumerator | |
|---|---|
| NON_CRITICAL | |
| CRITICAL | |
|
inline |
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state, Slic3r::PrintState< StepType, COUNT >::m_step_active, Slic3r::PrintStateBase::Started, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintStateBase::StateWithWarnings::warnings.
Referenced by Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::active_step_add_warning(), and Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::active_step_add_warning().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::enable_all_steps_unguarded(), Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::finalize_impl(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::finalize_impl().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::StateWithTimeStamp::enabled, and Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::enable_step_unguarded(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::set_task_impl().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state, Slic3r::PrintState< StepType, COUNT >::m_step_active, and Slic3r::PrintStateBase::StateWithTimeStamp::try_invalidate().
Referenced by Slic3r::BackgroundSlicingProcess::invalidate_step(), Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::invalidate_step(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::invalidate_step().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state, and Slic3r::PrintState< StepType, COUNT >::m_step_active.
Referenced by Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::invalidate_all_steps(), Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::invalidate_all_steps(), and Slic3r::BackgroundSlicingProcess::invalidate_all_steps().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state, and Slic3r::PrintState< StepType, COUNT >::m_step_active.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::invalidate_steps(), Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::invalidate_steps(), Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::invalidate_steps(), and Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::invalidate_steps().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Done, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintState< StepType, COUNT >::state_with_timestamp().
Referenced by Slic3r::BackgroundSlicingProcess::is_step_done(), Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::is_step_done(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::is_step_done().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Done, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintState< StepType, COUNT >::state_with_timestamp_unguarded().
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::is_step_done_unguarded(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::is_step_done_unguarded().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::StateWithTimeStamp::enabled, and Slic3r::PrintState< StepType, COUNT >::state_with_timestamp_unguarded().
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::is_step_enabled_unguarded().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Started, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintState< StepType, COUNT >::state_with_timestamp().
Here is the call graph for this function:
|
inline |
References Slic3r::PrintStateBase::Started, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintState< StepType, COUNT >::state_with_timestamp_unguarded().
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::is_step_started_unguarded(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::is_step_started_unguarded().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Canceled, Slic3r::PrintState< StepType, COUNT >::m_state, and Slic3r::PrintStateBase::Started.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::finalize_impl(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::finalize_impl().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Fresh, Slic3r::PrintStateBase::StateWithTimeStamp::is_dirty(), and Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::query_reset_dirty_step_unguarded().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Done, Slic3r::PrintStateBase::g_last_timestamp, Slic3r::PrintState< StepType, COUNT >::m_state, Slic3r::PrintState< StepType, COUNT >::m_step_active, Slic3r::PrintStateBase::Started, Slic3r::PrintStateBase::StateWithTimeStamp::state, Slic3r::PrintStateBase::StateWithTimeStamp::timestamp, and Slic3r::PrintStateBase::StateWithWarnings::warnings.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::set_done(), Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::set_done(), and Slic3r::BackgroundSlicingProcess::set_step_done().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintStateBase::Done, Slic3r::PrintStateBase::StateWithTimeStamp::enabled, Slic3r::PrintStateBase::g_last_timestamp, Slic3r::PrintState< StepType, COUNT >::m_state, Slic3r::PrintState< StepType, COUNT >::m_step_active, Slic3r::PrintStateBase::StateWithWarnings::mark_warnings_non_current(), Slic3r::PrintStateBase::Started, Slic3r::PrintStateBase::StateWithTimeStamp::state, and Slic3r::PrintStateBase::StateWithTimeStamp::timestamp.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::set_started(), Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::set_started(), and Slic3r::BackgroundSlicingProcess::set_step_started().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintState< StepType, COUNT >::is_done(), Slic3r::PrintState< StepType, COUNT >::is_started(), Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::step_state_with_timestamp(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::step_state_with_timestamp().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintState< StepType, COUNT >::is_done_unguarded(), Slic3r::PrintState< StepType, COUNT >::is_enabled_unguarded(), and Slic3r::PrintState< StepType, COUNT >::is_started_unguarded().
Here is the caller graph for this function:
|
inline |
References Slic3r::PrintState< StepType, COUNT >::m_state.
Referenced by Slic3r::PrintObjectBaseWithState< PrintType, PrintObjectStepEnumType, COUNT >::step_state_with_warnings(), and Slic3r::PrintBaseWithState< PrintStepEnumType, COUNT >::step_state_with_warnings().
Here is the caller graph for this function:
|
staticprotectedinherited |
|
private |
Referenced by Slic3r::PrintState< StepType, COUNT >::active_step_add_warning(), Slic3r::PrintState< StepType, COUNT >::enable_all_unguarded(), Slic3r::PrintState< StepType, COUNT >::enable_unguarded(), Slic3r::PrintState< StepType, COUNT >::invalidate(), Slic3r::PrintState< StepType, COUNT >::invalidate_all(), Slic3r::PrintState< StepType, COUNT >::invalidate_multiple(), Slic3r::PrintState< StepType, COUNT >::mark_canceled_unguarded(), Slic3r::PrintState< StepType, COUNT >::query_reset_dirty_unguarded(), Slic3r::PrintState< StepType, COUNT >::set_done(), Slic3r::PrintState< StepType, COUNT >::set_started(), Slic3r::PrintState< StepType, COUNT >::state_with_timestamp(), Slic3r::PrintState< StepType, COUNT >::state_with_timestamp_unguarded(), and Slic3r::PrintState< StepType, COUNT >::state_with_warnings().
|
private |
Referenced by Slic3r::PrintState< StepType, COUNT >::active_step_add_warning(), Slic3r::PrintState< StepType, COUNT >::invalidate(), Slic3r::PrintState< StepType, COUNT >::invalidate_all(), Slic3r::PrintState< StepType, COUNT >::invalidate_multiple(), Slic3r::PrintState< StepType, COUNT >::set_done(), and Slic3r::PrintState< StepType, COUNT >::set_started().