IMP  2.3.1
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::base::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::base::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::base::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::base::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: