VivoQuant 6.5.0
Loading...
Searching...
No Matches
AnalyzeImport Class Reference

Description

Supports import of Analyze 7.5 and NIFTI-1 format files.

Public Member Functions

bool load (Array< string > fileNames)
 Reads image files. Nothing is added to the Data Manager until transferData().
bool load (string fileName)
void fillDICOMheader (string fileName)
 Fill the contents of the WorkingHeader of this image's associated ImageTreeNode with contents of the metadata in a json file.
bool isBigEndian ()
 Check the endianness of this file.
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

◆ fillDICOMheader()

void fillDICOMheader ( string fileName)

Fill the contents of the WorkingHeader of this image's associated ImageTreeNode with contents of the metadata in a json file.

Parameters
fileNamethe json file with metadata to be read

◆ isBigEndian()

bool isBigEndian ( )

Check the endianness of this file.

Returns
true if big endian, false otherwise

◆ load() [1/2]

bool load ( Array< string > fileNames)
virtual

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
fileNameThe file to read

Reimplemented from AbstractImporter.