VivoQuant 6.5.0
Loading...
Searching...
No Matches
VevoAbstractImport Class Referenceabstract

Description

Imports Vevo ultrasound data (B-Mode or M-Mode).

See also VQ.vevoImporter() to obtain this object. Load files with load(), then add the result to the Data Manager with transferData(). It reads one file per call.

Public Member Functions

bool load (Array< string > fileNames)
 Reads image files. Nothing is added to the Data Manager until transferData().
bool load (string fileName)
 Reads a Vevo file. Nothing is added to the Data Manager until transferData().
void setQuietLoad (bool enabled)
 Skips the import options dialog, so load() uses the settings made by the script.
void setSelectedFrames (Array< int > selected)
 Sets which frames a B-Mode import loads when it does not import all frames.
string getType ()
 Returns the kind of data this importer reads: "B-Mode" or "M-Mode".
Public Member Functions inherited from AbstractImporter
void transferData (int idx, DataManager *dm)
 Adds the data read by load() to the Data Manager, then forgets it.
Public Member Functions inherited from HasErrorQObject
bool hasError ()
 Returns true if an error message is stored.
void clearError ()
 Clears the stored error message.
string takeError ()
 Returns the stored error message and clears it.
string errorString ()
 Returns the stored error message, or an empty string. The message is kept.

Member Function Documentation

◆ load() [1/2]

bool load ( Array< string > fileNames)
inlinevirtual

Reads image files. Nothing is added to the Data Manager until transferData().

Parameters
fileNamesThe files to read. Some importers read only one file.
Returns
true if the files were read. On failure, most importers store a message that errorString() returns.

Implements AbstractImporter.

◆ load() [2/2]

bool load ( string fileName)
virtual

Reads a Vevo file. Nothing is added to the Data Manager until transferData().

Parameters
fileNameThe file to read
Returns
true if the file was read. On failure, errorString() returns the reason.

Reimplemented from AbstractImporter.

◆ setQuietLoad()

void setQuietLoad ( bool enabled)
inline

Skips the import options dialog, so load() uses the settings made by the script.

Parameters
enabledtrue to skip the dialog

◆ setSelectedFrames()

void setSelectedFrames ( Array< int > selected)
inline

Sets which frames a B-Mode import loads when it does not import all frames.

Parameters
selectedThe frame indices to load
Note
Only used with setQuietLoad(true); otherwise the dialog chooses the frames.