Glyph Version 7.22.2 Mode Types - - - SourceImporter |
pw:: SourceImporterThe SourceImporter IO mode type Derives Frompw::Object pw::Mode pw::IOMode NotesTo create a mode of this type, use the pw::Application.begin command with the mode SourceImport specified, like this: set importer [pw::Application begin SourceImport] Summary
getFileTypes
This action gets a list of the file types that are supported for source import - currently only PCD-formatted files are imported. ParametersThis action has no parameters. ReturnsThis action returns a list containing file type names that can be used in the <initialize> command. read
This action verifies the IO mode attributes and tries to read the file that is being imported. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize, but before convert. Possible ErrorsHeaderIsInvalid, FormatIsInvalid, CannotOpenFile, CannotAccessFile, Unknown convert
This action converts the data read in by creating pw::SourceEntity objects based on the imported data. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize and read. Possible ErrorsCannotConvertEntity, Unknown |
This action gets a list of the file types that are supported for source import - currently only PCD-formatted files are imported.
$io getFileTypes
This action verifies the IO mode attributes and tries to read the file that is being imported.
$io read
This action checks if there is data that will be converted when the read action is used.
$io canConvert
This action converts the data read in by creating pw::SourceEntity objects based on the imported data.
$io convert
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?