iipsrv
0.9.9
Main Page
Classes
Files
File List
TPTImage.h
1
// Tiled Pyramidal Tiff class interface
2
3
/* IIP Tiled Pyramidal TIFF Class
4
5
Copyright (C) 2000-2006 Ruven Pillay.
6
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
*/
21
22
23
#ifndef _TPTIMAGE_H
24
#define _TPTIMAGE_H
25
26
27
#include "IIPImage.h"
28
#include <tiff.h>
29
#include <tiffio.h>
30
31
33
34
35
class
TPTImage
:
public
IIPImage
{
36
37
private
:
38
40
TIFF *tiff;
41
43
49
tdata_t tile_buf;
50
51
52
public
:
53
55
TPTImage
():
IIPImage
() {
56
tiff = NULL; tile_buf = NULL;
57
tile_width
= 0; tile_height = 0;
58
numResolutions
= 0;
59
};
60
62
64
TPTImage
(
const
std::string& path ):
IIPImage
( path ) {
65
tiff = NULL; tile_buf = NULL;
66
tile_width
= 0; tile_height = 0;
67
numResolutions
= 0;
68
};
69
71
73
TPTImage
(
const
IIPImage
& image ):
IIPImage
( image ) {
74
tiff = NULL; tile_buf = NULL;
75
tile_width
= 0; tile_height = 0;
76
numResolutions
= 0;
77
};
78
80
~TPTImage
() {
closeImage
(); };
81
83
void
openImage
() throw (std::
string
);
84
86
89
void
loadImageInfo
(
int
x,
int
y ) throw (std::
string
);
90
92
void
closeImage
();
93
95
101
RawTile
getTile
(
int
x,
int
y,
unsigned
int
r,
int
l,
unsigned
int
t ) throw (std::
string
);
102
103
104
};
105
106
107
108
#endif
src
TPTImage.h
Generated on Fri Jun 15 2012 16:23:58 for iipsrv by
1.8.1.1