Class: ModraUp::Importer
- Inherits:
-
Object
- Object
- ModraUp::Importer
Overview
Custom importer base class. Subclasses must implement #description, #file_extension, #id, #load_file, and register with ModraUp.register_importer. Doing so will appear as a filter in the import dialog box.
Constants # collapse
- ModraUp::Importer::ImportSuccess
Import success.
- ModraUp::Importer::ImportFail
Import failed.
- ModraUp::Importer::ImportCanceled
The user canceled.
- ModraUp::Importer::ImportFileNotFound
The file does not exist.
Instance Method Summary # collapse
-
#description ⇒ String
Display the filter description in the dialog box.
-
#id ⇒ String
Importer identifier.
-
#file_extension ⇒ String
File extensions that do not contain points, such as +obj+.
-
#supports_options? ⇒ Boolean
Does the option dialog box have an option? Defaults to false.
-
#do_options ⇒ ModraUp::Importer
Pop up import options. Default is an empty operation.
-
#load_file(path, status) ⇒ Integer
Read in path. Returns ImportSuccess status, etc. The base class returns ImportFail.
Instance Method Details
importer.description ⇒ String
Display the filter description in the dialog box.
importer.id ⇒ String
Importer identifier.
importer.file_extension ⇒ String
File extensions that do not contain points, such as +obj+.
importer.supports_options? ⇒ Boolean
Does the option dialog box have an option? Defaults to false.
importer.do_options ⇒ importer
Pop up import options. Default is an empty operation.
importer.load_file(path, status) ⇒ Integer
Read in path. Returns ImportSuccess status, etc. The base class returns ImportFail.