Uranium
Application Framework
|
Central class for reading and writing meshes. More...
Public Member Functions | |
def | __init__ (self, writer_type, reader_type, parent=None) |
def | setApplication (cls, application) |
def | getApplication (cls) |
def | getInstance (cls, args, kwargs) |
Return the singleton instance of the filehandler. More... | |
def | supportedReadFileTypes (self) |
def | supportedWriteFileTypes (self) |
def | readLocalFile (self, file) |
def | getSupportedFileTypesWrite (self) |
Get list of all supported filetypes for writing. More... | |
def | getSupportedFileTypesRead (self) |
def | addReader (self, reader) |
def | addWriter (self, writer) |
def | readerRead (self, reader, file_name, kwargs) |
def | getWriterByMimeType (self, mime) |
Get a mesh writer object that supports writing the specified mime type. More... | |
def | getWriter (self, writer_id) |
Get an instance of a mesh writer by ID. | |
def | getReaderForFile (self, file_name) |
Find a Reader that accepts the given file name. More... | |
Static Public Attributes | |
constant | |
Central class for reading and writing meshes.
This class is created by Application and handles reading and writing mesh files.
def UM.FileHandler.FileHandler.FileHandler.getInstance | ( | cls, | |
args, | |||
kwargs | |||
) |
Return the singleton instance of the filehandler.
def UM.FileHandler.FileHandler.FileHandler.getReaderForFile | ( | self, | |
file_name | |||
) |
Find a Reader that accepts the given file name.
file_name | The name of file to load. |
def UM.FileHandler.FileHandler.FileHandler.getSupportedFileTypesWrite | ( | self | ) |
Get list of all supported filetypes for writing.
def UM.FileHandler.FileHandler.FileHandler.getWriterByMimeType | ( | self, | |
mime | |||
) |
Get a mesh writer object that supports writing the specified mime type.
mime | The mime type that should be supported. |