HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IMG_FileFilterTile.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: IMG_FileFilterTile ( IMG Library, C++)
7  *
8  * COMMENTS:
9  *
10  * Allows reading and writing files using a tile interface rather than
11  * scanlines.
12  */
13 #ifndef IMG_FILE_FILTER_TILE_H
14 #define IMG_FILE_FILTER_TILE_H
15 
16 #include <UT/UT_ValArray.h>
17 #include <UT/UT_VectorTypes.h>
18 #include "IMG_FileFilter.h"
19 
21 {
22 public:
23  IMG_FileFilterTile(IMG_File *file_to_filter);
24  virtual ~IMG_FileFilterTile();
25 
26  virtual const char *className() const { return "IMG_FileFilterTile"; }
27 
28  void initTile(IMG_Interleave i);
29 
30  virtual bool readTile(const UT_InclusiveRect &rect,
31  void *data, const IMG_Plane *plane=0);
32 
33  virtual bool writeTile(const UT_InclusiveRect &rect,
34  const void *data,
35  const IMG_Plane *plane=0);
36 
37  virtual void computeCommonData();
38 private:
39 
40  // These methods do not work with tiles. Do not call them.
41  //
42  virtual const void *readPlaneScanline(int y, const IMG_Plane &pi);
43 
44  virtual int writePlaneScanline(const void *data, int y,
45  const IMG_Plane &pi);
46 
47  int myWidth;
48  int myHeight;
49  IMG_Interleave myInterleaved;
50  UT_ValArray<UT_IntArray *> myProcessedPixels;
51 };
52 
53 
54 
55 
56 
57 #endif
virtual void computeCommonData()
virtual int writePlaneScanline(const void *data, int y, const IMG_Plane &pi)
virtual bool writeTile(const UT_InclusiveRect &tile, const void *data, const IMG_Plane *plane=0)
GLint y
Definition: glcorearb.h:102
Describes the format and layout of a single plane in an image The plane specifies the format and name...
Definition: IMG_Plane.h:44
png_uint_32 i
Definition: png.h:2877
#define IMG_API
Definition: IMG_API.h:10
Generic interface for reading and writing image files. This class handles the reading and writing of ...
Definition: IMG_File.h:54
GLboolean * data
Definition: glcorearb.h:130
virtual const char * className() const
Base Integer Rectangle class.
IMG_Interleave
Definition: IMG_FileTypes.h:77
virtual bool readTile(const UT_InclusiveRect &tile, void *data, const IMG_Plane *plane=0)
virtual const void * readPlaneScanline(int y, const IMG_Plane &pi)