00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DX_IO_JPK_IO_PLUGIN_OST_HH
00021 #define DX_IO_JPK_IO_PLUGIN_OST_HH
00022
00023 #include "map_io_handler.hh"
00024 #include "map_io_tiff_handler.hh"
00025
00026 namespace ost { namespace io {
00027
00028 class DLLEXPORT_OST_IO JPK: public TIF
00029 {
00030 public:
00031 JPK(boost::logic::tribool normalize_on_save = true, Format bit_depth = OST_DEFAULT_FORMAT, bool sign = false, bool phasecolor = false, int subimage = -1);
00032 static String FORMAT_STRING;
00033 static String FORMAT_NAME_STRING;
00034 static String FORMAT_DESCRIPTION_STRING;
00035 };
00036
00037
00038 class DLLEXPORT_OST_IO MapIOJpkHandler: public MapIOTiffHandler
00039 {
00040 public:
00045 virtual void Import(img::MapHandle& sh, const boost::filesystem::path& loc,const ImageFormatBase& formatstruct);
00046 virtual void Import(img::MapHandle& sh, std::istream& loc,const ImageFormatBase& formatstruct);
00047 void Export(const img::MapHandle& image , const boost::filesystem::path& location,const ImageFormatBase& formatstruct) const;
00048 void Export(const img::MapHandle& image, std::ostream& loc,const ImageFormatBase& formatstruct) const;
00049 static bool MatchContent(unsigned char* header);
00050 static bool MatchType(const ImageFormatBase& type);
00051 static bool MatchSuffix(const String& loc);
00052 static String GetFormatName() { return String("Jpk");}
00053 static String GetFormatDescription() { return String("Format used by JPK Instruments AG's software (Customized Tiff format)"); }
00054
00055 };
00056
00057 typedef MapIOHandlerFactory<MapIOJpkHandler> MapIOJpkHandlerFactory;
00058
00059 }}
00060
00061 #endif