Uranium
Application Framework
UM.Mesh.MeshFileHandler.MeshFileHandler Class Reference
Inheritance diagram for UM.Mesh.MeshFileHandler.MeshFileHandler:
UM.FileHandler.FileHandler.FileHandler

Public Member Functions

None __init__ (self, "QtApplication" application, str writer_type="mesh_writer", str reader_type="mesh_reader", QObject parent=None)
 
def readerRead (self, reader, file_name, **kwargs)
 
- Public Member Functions inherited from UM.FileHandler.FileHandler.FileHandler
List[str] supportedReadFileTypes (self)
 
List[str] supportedWriteFileTypes (self)
 
None readLocalFile (self, QUrl file)
 
List[Dict[str, Union[str, int]]] getSupportedFileTypesWrite (self)
 
Dict[str, str] getSupportedFileTypesRead (self)
 
None addReader (self, "FileReader" reader)
 
None addWriter (self, "FileWriter" writer)
 
def readerRead (self, reader, str file_name, **Any kwargs)
 
Optional["FileWriter"] getWriterByMimeType (self, str mime)
 
Optional["FileWriter"] getWriter (self, str writer_id)
 
Optional["FileReader"] getReaderForFile (self, str file_name)
 
"FileHandler" getInstance (cls, *args, **kwargs)
 

Additional Inherited Members

- Static Public Attributes inherited from UM.FileHandler.FileHandler.FileHandler
 constant
 

Detailed Description

Central class for reading and writing meshes.

This class is created by Application and handles reading and writing mesh files.

Member Function Documentation

◆ readerRead()

def UM.Mesh.MeshFileHandler.MeshFileHandler.readerRead (   self,
  reader,
  file_name,
**  kwargs 
)
Try to read the mesh_data from a file using a specified MeshReader.
:param reader: the MeshReader to read the file with.
:param file_name: The name of the mesh to load.
:param kwargs: Keyword arguments.
Possible values are:
- Center: True if the model should be centered around (0,0,0), False if it should be loaded as-is. Defaults to True.
:returns: MeshData if it was able to read the file, None otherwise.

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