Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Workspace.WorkspaceFileHandler.WorkspaceFileHandler Class Reference

Central class for reading and writing workspaces. More...

Inheritance diagram for UM.Workspace.WorkspaceFileHandler.WorkspaceFileHandler:
UM.FileHandler.FileHandler.FileHandler

Public Member Functions

 __init__ (self)
 
 readerRead (self, reader, file_name, **kwargs)
 
- Public Member Functions inherited from UM.FileHandler.FileHandler.FileHandler
 __init__ (self, str writer_type, str reader_type, parent=None)
 
 setApplication (cls, application)
 
 getApplication (cls)
 
"FileHandler" getInstance (cls, *args, **kwargs)
 Return the singleton instance of the filehandler.
 
 supportedReadFileTypes (self)
 
 supportedWriteFileTypes (self)
 
 readLocalFile (self, file)
 
 getSupportedFileTypesWrite (self)
 Get list of all supported filetypes for writing.
 
 getSupportedFileTypesRead (self)
 
 addReader (self, "MeshReader" reader)
 
 addWriter (self, "MeshWriter" writer)
 
 readerRead (self, reader, file_name, **kwargs)
 
Optional["MeshWriter"] getWriterByMimeType (self, mime)
 Get a mesh writer object that supports writing the specified mime type.
 
Optional["MeshWriter"] getWriter (self, writer_id)
 Get an instance of a mesh writer by ID.
 
Optional["MeshReader"] getReaderForFile (self, file_name)
 Find a Reader that accepts the given file name.
 

Public Attributes

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

Protected Member Functions

 _readLocalFile (self, file)
 
 _readWorkspaceFinished (self, job)
 
 _readLocalFile (self, file)
 

Protected Attributes

 _readWorkspaceFinished
 
- Protected Attributes inherited from UM.FileHandler.FileHandler.FileHandler
 _readers
 
 _writers
 
 _writer_type
 
 _reader_type
 

Additional Inherited Members

- Static Protected Attributes inherited from UM.FileHandler.FileHandler.FileHandler
 _instance = None
 
 _application = None
 

Detailed Description

Central class for reading and writing workspaces.

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

Constructor & Destructor Documentation

◆ __init__()

UM.Workspace.WorkspaceFileHandler.WorkspaceFileHandler.__init__ (   self)

Member Function Documentation

◆ _readLocalFile()

UM.Workspace.WorkspaceFileHandler.WorkspaceFileHandler._readLocalFile (   self,
  file 
)
protected

◆ readerRead()

UM.Workspace.WorkspaceFileHandler.WorkspaceFileHandler.readerRead (   self,
  reader,
  file_name,
**  kwargs 
)

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