IMP logo
IMP Reference Guide  develop.2bb08e3baf,2020/10/29
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
 
virtual ::IMP::VersionInfo get_version_info () const
 Get information about the module and version of the object. More...
 
void read (const char *fn_in, float **data, DensityHeader &head)
 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)
 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
virtual

Get information about the module and version of the object.

Reimplemented from IMP::em::MapReaderWriter.

Definition at line 86 of file MRCReaderWriter.h.

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

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

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: