TPTImage.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _TPTIMAGE_H
00024 #define _TPTIMAGE_H
00025
00026
00027 #include "IIPImage.h"
00028 #include <tiff.h>
00029 #include <tiffio.h>
00030
00031
00033
00034
00035 class TPTImage : public IIPImage {
00036
00037 private:
00038
00040 TIFF *tiff;
00041
00043
00049 tdata_t tile_buf;
00050
00051
00052 public:
00053
00055 TPTImage():IIPImage() {
00056 tiff = NULL; tile_buf = NULL;
00057 tile_width = 0; tile_height = 0;
00058 numResolutions = 0;
00059 };
00060
00062
00064 TPTImage( const std::string& path ): IIPImage( path ) {
00065 tiff = NULL; tile_buf = NULL;
00066 tile_width = 0; tile_height = 0;
00067 numResolutions = 0;
00068 };
00069
00071
00073 TPTImage( const IIPImage& image ): IIPImage( image ) {
00074 tiff = NULL; tile_buf = NULL;
00075 tile_width = 0; tile_height = 0;
00076 numResolutions = 0;
00077 };
00078
00080 ~TPTImage() { closeImage(); };
00081
00083 void openImage() throw (std::string);
00084
00086
00089 void loadImageInfo( int x, int y ) throw (std::string);
00090
00092 void closeImage();
00093
00095
00101 RawTile getTile( int x, int y, unsigned int r, int l, unsigned int t ) throw (std::string);
00102
00103
00104 };
00105
00106
00107
00108 #endif