A service that provides Import/Export functionality for a model heirarchy. These can be registered with a EnableFactory to allow the user to export/import to certain file formats. In order to provide support for new file formats, classes should overrdide this class and then add themselves using EnableFactory. More...
#include <IOFactory.h>
Public Member Functions | |
virtual bool | canRead (const FactoryParameters &file) |
virtual bool | canRead (const File &file) |
virtual bool | canRead (const FileFormat &file) |
virtual bool | canWrite (const FactoryParameters &file) |
virtual bool | canWrite (const File &file) |
virtual bool | canWrite (const FileFormat &file) |
virtual FactoryOptions | defaultReadOptions (const FactoryParameters &file) const |
virtual FactoryOptions | defaultWriteOptions (const FactoryParameters &file) const |
virtual bool | determineExtension (const File &file, String &extension) |
virtual FactoryFeatures | factoryFeatures (const FactoryParameters &file, bool is_import) const =0 |
String | factoryReadAppFeature () const |
String | factoryWriteAppFeature () const |
virtual Buffer< UUID > | filterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const |
virtual String | getIcon (const File &file) |
void | getSupportedFormats (Buffer< FileFormat > &formats) |
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, bool is_read)=0 |
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, const File &file) |
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) |
virtual void | getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type) |
virtual void | getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const String &extension) |
IOFactory (const String &factory_name) | |
virtual bool | isAutoEnabled () const |
virtual bool | isFactoryEnabled (bool is_read) const |
const String & | name () const |
bool | readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup) |
Buffer< Scene > | readScenesFromFile (const File &file) |
void | throwIfNotEnabled (bool is_read) |
virtual bool | updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options) |
bool | writeScenesToFile (const File &file, const Buffer< Scene > &scene) |
virtual | ~IOFactory () |
Static Public Member Functions | |
static void | EnableExtension (const String &extension, const String &read_password, const String &write_password) |
static void | EnableFactory (const String &factory, const String &read_password, const String &write_password) |
static void | EnableFactory (IOFactory *factory, const String &read_password, const String &write_password) |
Friends | |
class | ModelFactory |
A service that provides Import/Export functionality for a model heirarchy. These can be registered with a EnableFactory to allow the user to export/import to certain file formats. In order to provide support for new file formats, classes should overrdide this class and then add themselves using EnableFactory.
For write operations we will first send which data structures the user wishes to export, if it is possible for a certain implementation to write those data structures, it will then be asked to provide available write formats. If the user chooses the provided format FactoryFeatures will be requested to see what options to show the user. The factory can then write this data.
For read operations we will first ask which extensions are supported. If the user chooses a file with the supported extension, FactoryFeatures will be requested to see what options to show the user. The factory can then read this data.
|
virtual |
|
virtual |
Reimplemented in AsciiFactory, DWGFactory, GeoSlamFactory, KMLFactory, LASFactory, ModelFactory, NDVFactory, PDFFactory, and SH3DFactory.
|
virtual |
Reimplemented in IredesPatternFactory, and ModelFactory.
|
virtual |
|
virtual |
Reimplemented in ModelFactory, NDVFactory, and PDFFactory.
|
virtual |
Reimplemented in ModelFactory, and PDFFactory.
|
virtual |
Reimplemented in NDVFactory, and PDFFactory.
|
virtual |
Reimplemented in AsciiFactory, AssimpFactory, DVI3DSpreadsheetFactory, DWGFactory, DXFFactory, E57Factory, GeoSlamFactory, KMLFactory, LASFactory, ModelFactory, NDVFactory, SH3DFactory, and SHPFactory.
|
virtual |
Reimplemented in AsciiFactory, AssimpFactory, DWGFactory, DXFFactory, E57Factory, GeoSlamFactory, KMLFactory, LASFactory, ModelFactory, NDVFactory, PDFFactory, SH3DFactory, and SHPFactory.
Reimplemented in DXFFactory, LASFactory, ModelFactory, NDVFactory, and SH3DFactory.
|
static |
|
static |
|
static |
|
pure virtual |
Implemented in AsciiFactory, AssimpFactory, DVI3DSpreadsheetFactory, DWGFactory, DXFFactory, E57Factory, GeoSlamFactory, KMLFactory, LASFactory, ModelFactory, NDVFactory, PDFFactory, RockWorksFactory, SH3DFactory, and SHPFactory.
String factoryReadAppFeature | ( | ) | const |
String factoryWriteAppFeature | ( | ) | const |
|
virtual |
Reimplemented in AsciiFactory, AssimpFactory, E57Factory, GeoSlamFactory, KMLFactory, LASFactory, ModelFactory, SH3DFactory, and SHPFactory.
Reimplemented in AsciiFactory, AssimpFactory, ModelFactory, and NDVFactory.
void getSupportedFormats | ( | Buffer< FileFormat > & | formats | ) |
|
pure virtual |
Implemented in AsciiFactory, AssimpFactory, DVI3DSpreadsheetFactory, DWGFactory, DXFFactory, E57Factory, GeoSlamFactory, IredesPatternFactory, KMLFactory, LASFactory, ModelFactory, NDVFactory, PDFFactory, SH3DFactory, and SHPFactory.
|
virtual |
Reimplemented in ModelFactory.
|
virtual |
Reimplemented in AsciiFactory, ModelFactory, and PDFFactory.
|
virtual |
Reimplemented in AsciiFactory, IredesPatternFactory, and ModelFactory.
|
virtual |
|
virtual |
|
virtual |
|
inline |
bool readFileWithDefaultSettings | ( | const File & | file, |
DesignObjectLookup * | lookup ) |
void throwIfNotEnabled | ( | bool | is_read | ) |
|
virtual |
Reimplemented in ModelFactory.
|
friend |