OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::PlaterWorker< WorkerSubclass > Class Template Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Jobs/PlaterWorker.hpp>

Inheritance diagram for Slic3r::GUI::PlaterWorker< WorkerSubclass >:
Collaboration diagram for Slic3r::GUI::PlaterWorker< WorkerSubclass >:

Classes

class  PlaterJob

Public Member Functions

template<class... WorkerArgs>
 PlaterWorker (wxWindow *plater, WorkerArgs &&...args)
bool push (std::shared_ptr< Job > job) override
bool is_idle () const override
void cancel () override
void cancel_all () override
void process_events () override
bool wait_for_current_job (unsigned timeout_ms=0) override
bool wait_for_idle (unsigned timeout_ms=0) override

Private Attributes

WorkerSubclass m_w
wxWindow * m_plater
EventGuard on_idle_evt
EventGuard on_paint_evt

Detailed Description

template<class WorkerSubclass>
class Slic3r::GUI::PlaterWorker< WorkerSubclass >

Constructor & Destructor Documentation

◆ PlaterWorker()

template<class WorkerSubclass>
template<class... WorkerArgs>
Slic3r::GUI::PlaterWorker< WorkerSubclass >::PlaterWorker ( wxWindow * plater,
WorkerArgs &&... args )
inline
142 // Ensure that messages from the worker thread to the UI thread are
143 // processed continuously.
146 {
147 }
Definition PlaterWorker.hpp:29
EventGuard on_idle_evt
Definition PlaterWorker.hpp:133
wxWindow * m_plater
Definition PlaterWorker.hpp:31
EventGuard on_paint_evt
Definition PlaterWorker.hpp:134
void process_events() override
Definition PlaterWorker.hpp:158
WorkerSubclass m_w
Definition PlaterWorker.hpp:30

References m_plater, m_w, on_idle_evt, Slic3r::GUI::plater(), and process_events().

Here is the call graph for this function:

Member Function Documentation

◆ cancel()

template<class WorkerSubclass>
void Slic3r::GUI::PlaterWorker< WorkerSubclass >::cancel ( )
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

156{ m_w.cancel(); }

References m_w.

◆ cancel_all()

template<class WorkerSubclass>
void Slic3r::GUI::PlaterWorker< WorkerSubclass >::cancel_all ( )
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

157{ m_w.cancel_all(); }

References m_w.

◆ is_idle()

template<class WorkerSubclass>
bool Slic3r::GUI::PlaterWorker< WorkerSubclass >::is_idle ( ) const
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

155{ return m_w.is_idle(); }

References m_w.

◆ process_events()

template<class WorkerSubclass>
void Slic3r::GUI::PlaterWorker< WorkerSubclass >::process_events ( )
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

158{ m_w.process_events(); }

References m_w.

Referenced by PlaterWorker().

Here is the caller graph for this function:

◆ push()

template<class WorkerSubclass>
bool Slic3r::GUI::PlaterWorker< WorkerSubclass >::push ( std::shared_ptr< Job > job)
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

151 {
153 }

References m_plater, and m_w.

◆ wait_for_current_job()

template<class WorkerSubclass>
bool Slic3r::GUI::PlaterWorker< WorkerSubclass >::wait_for_current_job ( unsigned timeout_ms = 0)
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

160 {
161 return m_w.wait_for_current_job(timeout_ms);
162 }

References m_w.

◆ wait_for_idle()

template<class WorkerSubclass>
bool Slic3r::GUI::PlaterWorker< WorkerSubclass >::wait_for_idle ( unsigned timeout_ms = 0)
inlineoverridevirtual

Implements Slic3r::GUI::Worker.

164 {
165 return m_w.wait_for_idle(timeout_ms);
166 }

References m_w.

Member Data Documentation

◆ m_plater

template<class WorkerSubclass>
wxWindow* Slic3r::GUI::PlaterWorker< WorkerSubclass >::m_plater
private

Referenced by PlaterWorker(), and push().

◆ m_w

template<class WorkerSubclass>
WorkerSubclass Slic3r::GUI::PlaterWorker< WorkerSubclass >::m_w
private

◆ on_idle_evt

template<class WorkerSubclass>
EventGuard Slic3r::GUI::PlaterWorker< WorkerSubclass >::on_idle_evt
private

Referenced by PlaterWorker().

◆ on_paint_evt

template<class WorkerSubclass>
EventGuard Slic3r::GUI::PlaterWorker< WorkerSubclass >::on_paint_evt
private

The documentation for this class was generated from the following file: