20#ifndef OST_IO_MAP_IO_MRC_HANDLER_HH
21#define OST_IO_MAP_IO_MRC_HANDLER_HH
25namespace ost {
namespace io {
31 MRC(
bool normalize_on_save =
false,
Subformat subformat = MRC_AUTO_FORMAT ,
Endianess endianness_on_save = OST_LOCAL_ENDIAN,
Format bit_depth = OST_DEFAULT_FORMAT);
45 static String FORMAT_STRING;
50 bool normalize_on_save_;
58 CCP4(
bool normalize_on_save =
false,
Endianess endianness_on_save = OST_LOCAL_ENDIAN,
Format bit_depth = OST_DEFAULT_FORMAT);
88 mutable bool is_file_;
Manage shared instances of images.
CCP4(bool normalize_on_save=false, Endianess endianness_on_save=OST_LOCAL_ENDIAN, Format bit_depth=OST_DEFAULT_FORMAT)
bool GetNormalizeOnSave() const
void SetNormalizeOnSave(bool normalize_on_save)
Format GetBitDepth() const
void SetSubformat(Subformat subformat)
Endianess GetEndianessOnSave() const
Subformat GetSubformat() const
void SetEndianessOnSave(Endianess end)
void SetBitDepth(Format bitdepth)
MRC(bool normalize_on_save=false, Subformat subformat=MRC_AUTO_FORMAT, Endianess endianness_on_save=OST_LOCAL_ENDIAN, Format bit_depth=OST_DEFAULT_FORMAT)
static bool ProvidesExport()
static bool ProvidesImport()
static bool MatchType(const ImageFormatBase &type)
virtual void Export(const img::MapHandle &sh, const boost::filesystem::path &loc, const ImageFormatBase &formatstruct) const
static String GetFormatName()
virtual void Import(img::MapHandle &sh, std::istream &loc, const ImageFormatBase &formatstruct)
static bool MatchContent(unsigned char *header)
virtual void Export(const img::MapHandle &sh, std::ostream &loc, const ImageFormatBase &formatstruct) const
static bool MatchSuffix(const String &loc)
static String GetFormatDescription()
virtual void Import(img::MapHandle &sh, const boost::filesystem::path &loc, const ImageFormatBase &formatstruct)
Map IO handler to read/write mrc and ccp4 map files.
MapIOHandlerFactory< MapIOMrcHandler > MapIOMrcHandlerFactory