The SourceImporter IO mode type
pw::Object pw::Mode pw::IOMode
To 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]
pw:: | The SourceImporter IO mode type |
Instance Actions | |
getFileTypes | This action gets a list of the file types that are supported for source import - currently only PCD-formatted files are imported. |
read | This action verifies the IO mode attributes and tries to read the file that is being imported. |
canConvert | This action checks if there is data that will be converted when the read action is used. |
convert | This action converts the data read in by creating pw::SourceEntity objects based on the imported data. |
$io getFileTypes
This action gets a list of the file types that are supported for source import - currently only PCD-formatted files are imported.
This action has no parameters.
This action returns a list containing file type names that can be used in the <initialize> command.
$io read
This action verifies the IO mode attributes and tries to read the file that is being imported.
This action has no parameters.
This action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>.
This action must be called after initialize, but before convert.
HeaderIsInvalid, FormatIsInvalid, CannotOpenFile, CannotAccessFile, Unknown
$io convert
This action converts the data read in by creating pw::SourceEntity objects based on the imported data.
This action has no parameters.
This action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>.
This action must be called after initialize and read.
CannotConvertEntity, 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?