Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

IMG_BrushRGBA32.h

00001 #ifndef _H_IMG_BrushRGBA32
00002 #define _H_IMG_BrushRGBA32
00003 
00004 #include "IMG_PixmapRGBA32.h"
00005 
00006 
00015 
00016 class IMG_BrushRGBA32 : public IMG_PixmapRGBA32 {
00017 public:
00025         IMG_BrushRGBA32(TUns32 w, TUns32 h, const IMG_ColorRGB& c, float a = 0.8f);
00026 
00031         virtual void setColor(const IMG_ColorRGB& c);
00032 
00037         inline virtual void getColor(IMG_ColorRGB& c) const;
00038 
00043         virtual void setTransparency(float a);
00044 
00049         inline virtual float getTransparency() const;
00050 
00062         virtual void setRadii(TUns32 rI, TUns32 rO);
00063 
00069         inline virtual void getRadii(TUns32& rI, TUns32& rO) const;
00070 
00071 protected:
00076         virtual void    updateImage();
00077 
00078         IMG_ColorRGB m_color;   
00079         float m_alpha;                  
00080         TUns32 m_ri;                    
00081         TUns32 m_ro;                    
00082 };
00083 
00084 
00085 inline void IMG_BrushRGBA32::getRadii(TUns32& rI, TUns32& rO) const
00086 {
00087         rI = m_ri;
00088         rO = m_ro;
00089 }
00090 
00091 inline float IMG_BrushRGBA32::getTransparency() const
00092 {
00093         return m_alpha;
00094 }
00095 
00096 inline void IMG_BrushRGBA32::getColor(IMG_ColorRGB& c) const
00097 {
00098         c = m_color;
00099 }
00100 
00101 
00102 #endif // _H_IMG_BrushRGBA32

Generated at Thu May 3 17:29:38 2001 for ImgLib by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000