IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
IMP::em::MRCReaderWriter Class Reference

#include <IMP/em/MRCReaderWriter.h>

+ Inheritance diagram for IMP::em::MRCReaderWriter:

Detailed Description

A class to read and write MRC files.

Definition at line 20 of file MRCReaderWriter.h.

Public Member Functions

 MRCReaderWriter ()
 Empty constructor. More...
 
 MRCReaderWriter (std::string fn)
 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 *fn_in, float **data, DensityHeader &head) override
 Reads an MRC file and translates the header to the general DensityHeader. More...
 
void write (const char *fn_out, const float *data, const DensityHeader &head) override
 Writes an MRC file from the data and the general DensityHeader. 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)
 

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 ()
 

Constructor & Destructor Documentation

IMP::em::MRCReaderWriter::MRCReaderWriter ( )

Empty constructor.

Definition at line 23 of file MRCReaderWriter.h.

IMP::em::MRCReaderWriter::MRCReaderWriter ( std::string  fn)

Constructor.

Parameters
[in]fnname of the file to open or write

Definition at line 28 of file MRCReaderWriter.h.

Member Function Documentation

virtual ::IMP::VersionInfo IMP::em::MRCReaderWriter::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::em::MapReaderWriter.

Definition at line 90 of file MRCReaderWriter.h.

void IMP::em::MRCReaderWriter::read ( const char *  fn_in,
float **  data,
DensityHeader head 
)
overridevirtual

Reads an MRC file and translates the header to the general DensityHeader.

Reimplemented from IMP::em::MapReaderWriter.

void IMP::em::MRCReaderWriter::write ( const char *  fn_out,
const float *  data,
const DensityHeader head 
)
overridevirtual

Writes an MRC file from the data and the general DensityHeader.

Reimplemented from IMP::em::MapReaderWriter.


The documentation for this class was generated from the following file: