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 read_8_data(
float *pt);
49 void read_32_data(
float *pt);
50 void read_grid(
void *pt,
size_t size,
size_t n);
56 void write(
const char *fn) {
return write(fn, grid); }
63 void write(
const char *fn,
const float *pt);
68 void write_header(std::ofstream &s);
74 void write_data(std::ofstream &s,
const float *pt);
81 internal::MRCHeader header;
The base class to handle reading and writing of density maps.
MRCReaderWriter(std::string fn)
Constructor.
An abstract class for reading a map.
MRCReaderWriter()
Empty constructor.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.