Uranium
Application Framework
Loading...
Searching...
No Matches
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)
 readerRead (self, reader, file_name, **kwargs)
Public Member Functions inherited from UM.FileHandler.FileHandler.FileHandler
None __init__ (self, "QtApplication" application, str writer_type="unknown_file_writer", str reader_type="unknown_file_reader", QObject parent=None)
List[str] supportedReadFileTypes (self)
List[str] supportedWriteFileTypes (self)
None readLocalFile (self, QUrl file, bool add_to_recent_files_hint=True)
List[Dict[str, Union[str, int]]] getSupportedFileTypesWrite (self)
Dict[str, str] getSupportedFileTypesRead (self)
None addReader (self, "FileReader" reader)
None addWriter (self, "FileWriter" writer)
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)

Protected Member Functions

 _readLocalFile (self, QUrl file, bool add_to_recent_files_hint=True)
 _readMeshFinished (self, job)

Protected Attributes

 _readMeshFinished
Protected Attributes inherited from UM.FileHandler.FileHandler.FileHandler
 _application = application
dict _readers = {}
dict _writers = {}
 _writer_type = writer_type
 _reader_type = reader_type
list _add_to_recent_files_hints = []

Additional Inherited Members

Public Attributes inherited from UM.FileHandler.FileHandler.FileHandler
 addWriter
 addReader

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

◆ _readLocalFile()

UM.Mesh.MeshFileHandler.MeshFileHandler._readLocalFile ( self,
QUrl file,
bool add_to_recent_files_hint = True )
protected

◆ readerRead()

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.

Reimplemented from UM.FileHandler.FileHandler.FileHandler.


The documentation for this class was generated from the following file:
  • UM/Mesh/MeshFileHandler.py