User Tools

Site Tools


DzFileIO

Properties

DAZ Script
BooleanoptionsShown

Methods

DAZ Script
voidgetDefaultOptions ( DzFileIOSettings options )
BooleangetOptions ( DzFileIOSettings options, Boolean useInterface, String filename )
BooleanshowOptions ()

Detailed Description

This class provides functionality common to all file importers and exporters such as the ability to edit options before file import/export. Also, this class provides functions for importers/exporters to report errors to the user/log file, and provides static convenience functions for dissecting file paths into their parts.

Properties


Boolean : optionsShown

Holds whether the options for the importer/exporter has been shown.

Since:

  • 4.9.3.23

Methods


void : getDefaultOptions( DzFileIOSettings options )

Gets the default options for an I/O operation.

Parameter(s):

  • options - The settings object that the selected options will be added to.

Boolean : getOptions( DzFileIOSettings options, Boolean useInterface, String filename )

Gets the options for an I/O operation.

Parameter(s):

  • options - The settings object that the selected options will be added to.
  • useInterface - If true and the importer/exporter implements the getOptionsFrame() virtual member function, the options interface for the importer/exporter will be displayed to the user. If false, the default (or last-used) options will be added to or updated in options.
  • filename - The path of a file to be used by the options; usage varies.

Return Value:

  • if options has been updated, otherwise false.

Boolean : showOptions()

Return Value:

  • true if this importer/exporter should display an options dialog by default, otherwise false.