Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Mesh.ReadMeshJob.ReadMeshJob Class Reference

A Job subclass that performs mesh loading. More...

Inheritance diagram for UM.Mesh.ReadMeshJob.ReadMeshJob:
UM.FileHandler.ReadFileJob.ReadFileJob UM.Job.Job

Public Member Functions

 __init__ (self, filename)
 
 run (self)
 Perform the actual task of this job.
 
- Public Member Functions inherited from UM.FileHandler.ReadFileJob.ReadFileJob
 __init__ (self, filename, handler=None)
 
 getFileName (self)
 
 run (self)
 Perform the actual task of this job.
 
- Public Member Functions inherited from UM.Job.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.
 

Protected Attributes

 _handler
 
 _result
 
- Protected Attributes inherited from UM.FileHandler.ReadFileJob.ReadFileJob
 _filename
 
 _handler
 
 _loading_message
 
- Protected Attributes inherited from UM.Job.Job
 _running
 
 _finished
 
 _result
 
 _error
 

Additional Inherited Members

- Static Public Member Functions inherited from UM.Job.Job
 yieldThread ()
 Utility function that allows us to yield thread processing.
 
- Static Public Attributes inherited from UM.Job.Job
 finished = Signal()
 Emitted when the job has finished processing.
 
 progress = Signal()
 Emitted when the job processing has progressed.
 

Detailed Description

A Job subclass that performs mesh loading.

The result of this Job is a MeshData object.

Constructor & Destructor Documentation

◆ __init__()

UM.Mesh.ReadMeshJob.ReadMeshJob.__init__ (   self,
  filename 
)

Member Function Documentation

◆ run()

UM.Mesh.ReadMeshJob.ReadMeshJob.run (   self)

Perform the actual task of this job.

Should be reimplemented by subclasses.

Exceptions
NotImplementedError

Reimplemented from UM.FileHandler.ReadFileJob.ReadFileJob.


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