Uranium
Application Framework
|
A Job subclass that performs mesh writing. More...
Public Member Functions | |
__init__ (self, writer, stream, nodes, mode) | |
Creates a new job for writing meshes. | |
![]() | |
__init__ (self, writer, stream, data, mode) | |
Creates a new job for writing. | |
setFileName (self, name) | |
getFileName (self) | |
getStream (self) | |
setMessage (self, message) | |
Set the message associated with this job. | |
getMessage (self) | |
run (self) | |
Perform the actual task of this job. | |
![]() | |
__init__ (self) | |
run (self) | |
Perform the actual task of this job. | |
getResult (self) | |
Get the result of the job. | |
setResult (self, any result) | |
Set the result of this job. | |
setError (self, Exception error) | |
Set an exception that was thrown while the job was being executed. | |
start (self) | |
Start the job. | |
cancel (self) | |
Cancel the job. | |
bool | isRunning (self) |
Check whether the job is currently running. | |
bool | isFinished (self) |
Check whether the job has finished processing. | |
bool | hasError (self) |
Check whether the Job has encountered an error during execution. | |
Exception | getError (self) |
Get the error that was encountered during execution. | |
Additional Inherited Members | |
![]() | |
yieldThread () | |
Utility function that allows us to yield thread processing. | |
![]() | |
finished = Signal() | |
Emitted when the job has finished processing. | |
progress = Signal() | |
Emitted when the job processing has progressed. | |
![]() | |
_onFinished (self, job) | |
_onProgress (self, job, amount) | |
![]() | |
_stream | |
_writer | |
_data | |
_file_name | |
_mode | |
_message | |
_onProgress | |
_onFinished | |
![]() | |
_running | |
_finished | |
_result | |
_error | |
A Job subclass that performs mesh writing.
The result of this Job is a MeshData object.
UM.Mesh.WriteMeshJob.WriteMeshJob.__init__ | ( | self, | |
writer, | |||
stream, | |||
nodes, | |||
mode | |||
) |
Creates a new job for writing meshes.
writer | The file writer to use, with the correct MIME type. |
stream | The output stream to write to. |
nodes | A collection of nodes to write to the stream. |
mode | Additional information to send to the writer, such as whether to write in binary format or in ASCII format. |
Reimplemented from UM.FileHandler.WriteFileJob.WriteFileJob.