00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __COP2_BoundsCache_h__
00023 #define __COP2_BoundsCache_h__
00024
00025 #include "COP2_API.h"
00026
00027 #include <UT/UT_LinkList.h>
00028 #include <OP/OP_Version.h>
00029
00030 class TIL_Plane;
00031 class cop2_BoundsCacheEntry;
00032
00033 class COP2_API COP2_BoundsCache : protected UT_LinkList
00034 {
00035 public:
00036 COP2_BoundsCache(int limit = 16);
00037 ~COP2_BoundsCache();
00038
00039
00040
00041 bool getBound(const TIL_Plane *plane, int array_index,
00042 float t, int xres, int yres, OP_VERSION v,
00043 int &x1, int &y1, int &x2, int &y2);
00044
00045
00046 void addBound(const TIL_Plane *plane, int array_index,
00047 float t, int xres, int yres, OP_VERSION v,
00048 int x1, int y1, int x2, int y2);
00049 private:
00050 int myLimit;
00051 };
00052
00053 #endif