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

FillProperties.h

Go to the documentation of this file.
00001 
00002 //                            FillProperties.h                                //
00004 
00005 #ifndef FILLPROPERTIES_H
00006 #define FILLPROPERTIES_H
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DAppearanceChildNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class FillProperties : public X3DAppearanceChildNode
00020 {
00021 public:
00023   FillProperties();
00025   FillProperties(SFString fillStyle, 
00026                  SFInt32 hatchStyle, 
00027                  SFColor hatchColor);
00029   virtual SFNode clone() const;          
00030   
00032   virtual ~FillProperties();
00033 
00035   void setFillStyle(SFString fillStyle);
00037   void setHatchStyle(SFInt32 hatchStyle);
00039   void setHatchColor(SFColor hatchColor);
00040   
00042   inline SFString getFillStyle() const {return _fillStyle;};
00044   inline SFInt32 getHatchStyle() const {return _hatchStyle;};
00046   inline SFColor getHatchColor() const {return _hatchColor;};
00047 
00049   virtual void load(const X3DFileElement *element);
00051   virtual SFString write() const;
00052 
00053 protected:
00055   FillProperties(const FillProperties &F);
00056 
00057 private:
00059   SFString _fillStyle;
00061   SFInt32 _hatchStyle;
00063   SFColor _hatchColor;
00064 };
00065 
00066 }
00067 }
00068 
00069 #endif

Generated on Tue Jul 15 16:46:51 2003 for X3DToolKit by doxygen1.3