IMP Reference Guide
develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
|
Class to read EM maps (3D) in Spider and Xmipp formats. More...
#include <IMP/em/SpiderReaderWriter.h>
Class to read EM maps (3D) in Spider and Xmipp formats.
Definition at line 35 of file SpiderReaderWriter.h.
Public Member Functions | |
SpiderMapReaderWriter () | |
SpiderMapReaderWriter (String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) | |
Full constructor. More... | |
virtual std::string | get_type_name () const override |
virtual ::IMP::VersionInfo | get_version_info () const override |
Get information about the module and version of the object. More... | |
void | read (const char *filename, float **data, DensityHeader &header) override |
Reads a map in Spider format and transfers the data and header. More... | |
void | write (const char *filename, const float *data, const DensityHeader &header) override |
Writes a map in Spider format from data and header. More... | |
Public Member Functions inherited from IMP::Object | |
virtual void | clear_caches () |
CheckLevel | get_check_level () const |
LogLevel | get_log_level () const |
void | set_check_level (CheckLevel l) |
void | set_log_level (LogLevel l) |
Set the logging level used in this object. More... | |
void | set_was_used (bool tf) const |
void | show (std::ostream &out=std::cout) const |
const std::string & | get_name () const |
void | set_name (std::string name) |
Public Attributes | |
String | filename_ |
bool | force_reversed_ |
bool | skip_extra_checkings_ |
bool | skip_type_check_ |
Additional Inherited Members | |
Protected Member Functions inherited from IMP::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
virtual void | do_destroy () |
IMP::em::SpiderMapReaderWriter::SpiderMapReaderWriter | ( | ) |
Empty constructor. It does not force reversed header and does not skip any of the tests
Definition at line 44 of file SpiderReaderWriter.h.
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 writing |
[in] | skip_extra_checkings | if true, the most stringent tests for consistency of images are skipped when reading |
Definition at line 59 of file SpiderReaderWriter.h.
|
overridevirtual |
Get information about the module and version of the object.
Reimplemented from IMP::em::MapReaderWriter.
Definition at line 87 of file SpiderReaderWriter.h.
|
overridevirtual |
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. |
Reimplemented from IMP::em::MapReaderWriter.
|
overridevirtual |
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. |
Reimplemented from IMP::em::MapReaderWriter.