|
Wavelet and Image class library
1.3.2
|
00001 /* 00002 * class PyramidTree 00003 * 00004 * $Date$ 00005 * $Revision$ 00006 * 00007 */ 00008 00009 #ifndef PYRAMID_TREE_HH__ 00010 #define PYRAMID_TREE_HH__ 00011 00012 #include "WTools/NTree.hh" 00013 #include "WImage/CoeffInformation.hh" 00014 #include "Wave/PyramidTransform.hh" 00015 00026 class 00027 PyramidTree : public NTree < CoeffInformation > 00028 { 00029 public: 00040 PyramidTree (PyramidTransform &t, int y, int x, int position = -1, 00041 PyramidTree *parent = NULL, int generations = 1); 00043 ~PyramidTree (void); 00048 void addGenerations (int depth); 00049 00056 void moveTo (int y, int x, int position = -1, PyramidTree *parent = NULL); 00057 00060 int depth (void); 00061 00062 protected: 00069 void findChildPosition (int y, int x, int &resY, int &resX); 00073 void shiftBy (int shiftY, int shiftX); 00074 private: 00076 PyramidTransform *m_transform; 00077 }; /* class PyramidTree */ 00078 00081 #endif /* PYRAMID_TREE_HH__ */ 00082
1.7.6.1