: A DensityHeader class must be provided
Public Member Functions | |
void | Read (const char *filename, float **data, DensityHeader &header) |
Reads a map in Spider format and transfers the data and header. | |
SpiderMapReaderWriter (String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) | |
Full constructor. | |
SpiderMapReaderWriter () | |
void | Write (const char *filename, const float *data, const DensityHeader &header) |
Writes a map in Spider format from data and header. | |
Data Fields | |
String | filename_ |
bool | force_reversed_ |
bool | skip_extra_checkings_ |
bool | skip_type_check_ |
IMP::em::SpiderMapReaderWriter::SpiderMapReaderWriter | ( | ) |
Empty constructor. It does not force reversed header and does not skip any of the tests
IMP::em::SpiderMapReaderWriter::SpiderMapReaderWriter | ( | String | filename, | |
bool | skip_type_check, | |||
bool | force_reversed, | |||
bool | skip_extra_checkings | |||
) |
Full constructor.
[in] | filename | file to read |
[in] | skip_type_check | if true, the check for type of image is skipped |
[in] | force_reversed | if true, the reverse mode is enforced for reading and writting |
[in] | skip_extra_checkings | if true, the most stringent tests for consistency of images are skipped when reading |
void IMP::em::SpiderMapReaderWriter::Read | ( | const char * | filename, | |
float ** | data, | |||
DensityHeader & | header | |||
) |
Reads a map in Spider format and transfers the data and header.
[in] | filename | file to read |
[in] | data | pointer to the structure where to store the data |
[in] | header | DensityHeader class where to store the info from the header. |
void IMP::em::SpiderMapReaderWriter::Write | ( | const char * | filename, | |
const float * | data, | |||
const DensityHeader & | header | |||
) |
Writes a map in Spider format from data and header.
[in] | filename | file to write |
[in] | data | pointer to the structure where data are stored |
[in] | header | DensityHeader class where the header info is stored data from the header. |