Wavelet and Image class library  1.3.2
CoeffInformation.hh
Go to the documentation of this file.
00001 /*
00002  * class CoeffInformation
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef COEFF_INFORMATION_HH__
00010 #define COEFF_INFORMATION_HH__
00011 #include "WImage/miscdefs.h"
00012 #include "WImage/Image.hh"
00013 
00023 class 
00024 CoeffInformation
00025 {
00026 public:
00038   CoeffInformation (coeff val = 0.0, int y = 0, int x = 0, 
00039                     int abs = 0, long id = -1, coeff misc = 0.0);
00043   CoeffInformation (const CoeffInformation &c) { set (c); }
00044   /* Destructor. Does nothing. */
00045   ~CoeffInformation (void) { }
00049   coeff val (void) const { return m_value; }
00053   int ypos (void) const { return m_yposition; }
00057   int xpos (void) const { return m_xposition; }
00061   int id (void) const { return m_id; }
00064   inline void id (long id) { m_id = id; }
00067   inline void misc (coeff misc) { m_misc = misc; }
00071   coeff misc (void) const { return m_misc; }
00075   int xypos (void) const { return m_xyposition; }
00079   inline void val (coeff val) { m_value = val; }
00093   void set (coeff val, int y, int x, int abs, long id = -1, coeff misc = 0.0);
00097   void set (const CoeffInformation &c);
00102   void set (const Image &img, int ypos, int xpos);
00114   int socmp (const CoeffInformation &c) const;
00126   int aocmp (const CoeffInformation &c) const;
00134   int pcmp (const CoeffInformation &c) const;
00141   int svcmp (const CoeffInformation &c) const;
00148   int avcmp (const CoeffInformation &c) const;
00154   bool equals (const CoeffInformation &c) const; 
00155 
00156 #ifndef _WIN32_WCE
00157 
00161   void dump (const char *delim = " ", const char *file = "") const;
00162 #endif
00163 
00167   inline bool operator== (const CoeffInformation &c) const { 
00168     return equals (c); }
00172   inline bool operator!= (const CoeffInformation &c) const { 
00173     return !equals (c); }
00177   inline CoeffInformation & operator= (const CoeffInformation &c) { 
00178     set (c); return *this; }
00179 
00180 private:
00182   coeff m_value;
00184   int m_yposition;
00186   int m_xposition;
00188   int m_xyposition;
00190   long m_id;
00192   coeff m_misc;
00193 }; /* class CoeffInformation */
00194 
00197 #endif /* COEFF_INFORMATION_HH__ */
00198 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines