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"
32 #if !defined(DOXYGEN) && !defined(SWIG)
34 void read(
const char *fn_in,
float **data,
DensityHeader &head);
36 void write(
const char *fn_out,
const float *data,
const DensityHeader &head);
48 void read(
float **pt);
52 void read_data(
float *pt);
54 void read_8_data(
float *pt);
56 void read_32_data(
float *pt);
57 void read_grid(
void *pt,
size_t size,
size_t n);
63 void write(
const char *fn) {
64 return write(fn,grid);
72 void write(
const char *fn,
const float *pt);
77 void write_header(std::ofstream &s);
83 void write_data(std::ofstream &s,
const float *pt);
90 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.