The PrintThread class A Thread for running a print job.
More...
#include <printthread.h>
The PrintThread class A Thread for running a print job.
see AtCore::print() for example of how to create a print thread.
◆ PrintThread()
PrintThread::PrintThread |
( |
AtCore * |
parent, |
|
|
const QString & |
fileName |
|
) |
| |
Create a new Print Thread.
- Parameters
-
parent | Parent of the tread |
fileName | gcode File to print |
◆ ~PrintThread()
PrintThread::~PrintThread |
( |
| ) |
|
◆ endPrint()
void PrintThread::endPrint |
( |
| ) |
|
|
private |
◆ error
void PrintThread::error |
( |
QString |
err | ) |
|
|
signal |
A command has caused an error.
- Parameters
-
◆ finished
void PrintThread::finished |
( |
| ) |
|
|
signal |
◆ injectCommand()
void PrintThread::injectCommand |
( |
QString & |
command | ) |
|
|
private |
injectCommand Attempt to inject a Command from the currently printing file.
One of the following on a line that starts with ';-'
example line ;-Message: Hello
- Pause: ppc
Pause the print job and then run the comma-separated commands after pausing the job.
- ppc: A comma-separated list of Commands to send after pause. ex(G91, G0 Z1, G90, G1 X0 Y195)
- Extruder Temperature:newTemp,extnum,wait
Set extruder temperature.
- newTemp: new target temperature.
- extnum: Extruder number you want to Heat. Starting at 0.
- wait: ignore commands until the target is reached. [true | false]
- Bed Temperature: newTemp,wait
Set the bed temperature.
- newTemp: new target temperature
- wait: ignore commands until the target is reached. [true | false]
- Fan Speed:newSpeed, fanNum
Set the Fan speed.
- newSpeed: new fan speed.
- fanNum: Fan number. Starting at 0.
- Print Speed:newSpeed
Set the printer speed.
- newSpeed: the print speed. 100= movement speed defined in file.
- Flow Rate:newRate
Set the flow rate
- newRate: the flow rate. 100 = flow rate defined in file.
- Message:message
Show a message the printer's LCD
- message: the message to print.
- Command:command
Inject your own command. Command are sent as is. Be sure your line is correct.
- command: Commands to inject
◆ nextCommand
void PrintThread::nextCommand |
( |
const QString & |
comm | ) |
|
|
signal |
the next command of the job
- Parameters
-
comm | Command to be sent next |
◆ nextLine()
void PrintThread::nextLine |
( |
| ) |
|
|
private |
◆ printProgressChanged
void PrintThread::printProgressChanged |
( |
const float |
| ) |
|
|
signal |
The print job's progress has changed.
◆ processJob
void PrintThread::processJob |
( |
| ) |
|
|
privateslot |
◆ setState
Set printer state.
- Parameters
-
state | the new printer state |
◆ start
void PrintThread::start |
( |
| ) |
|
|
slot |
◆ stateChanged
Printer state was changed.
- Parameters
-
The documentation for this class was generated from the following files: