9 #ifndef IMPEM_MRC_READER_WRITER_H
10 #define IMPEM_MRC_READER_WRITER_H
12 #include <IMP/em/em_config.h>
14 #include "internal/MRCHeader.h"
29 #if !defined(DOXYGEN) && !defined(SWIG)
31 void read(
const char *fn_in,
float **data,
DensityHeader &head);
33 void write(
const char *fn_out,
const float *data,
const DensityHeader &head);
39 void read() { read(&grid); }
41 void read(
float **pt);
45 void read_data(
float *pt);
47 void transpose_data_to_zyx(
float **pt);
49 void read_8_data(
float *pt);
51 void read_32_data(
float *pt);
52 void read_grid(
void *pt,
size_t size,
size_t n);
58 void write(
const char *fn) {
return write(fn, grid); }
65 void write(
const char *fn,
const float *pt);
70 void write_header(std::ofstream &s);
76 void write_data(std::ofstream &s,
const float *pt);
83 internal::MRCHeader header;
The base class to handle reading and writing of density maps.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
MRCReaderWriter(std::string fn)
Constructor.
An abstract class for reading a map.
MRCReaderWriter()
Empty constructor.