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

X3D_FillProperties.h

Go to the documentation of this file.
00001 #ifndef X3DTK_X3D_FILLPROPERTIES_H
00002 #define X3DTK_X3D_FILLPROPERTIES_H
00003 
00004 #include "X3DTypes.h"
00005 #include "X3D_X3DAppearanceChildNode.h"
00006 
00007 namespace X3DTK {
00008 namespace X3D {
00009 
00018 class FillProperties : public X3DAppearanceChildNode
00019 {
00020 public:
00022   FillProperties();
00024   FillProperties(const SFString &fillStyle, 
00025                  const SFInt32 &hatchStyle, 
00026                  const SFColor &hatchColor);
00028   virtual SFAbstractNode clone() const;          
00029   
00031   virtual ~FillProperties();
00032 
00034   void setFillStyle(const SFString &fillStyle);
00036   void setHatchStyle(const SFInt32 &hatchStyle);
00038   void setHatchColor(const SFColor &hatchColor);
00039   
00041   inline const SFString &getFillStyle() const {return _fillStyle;};
00043   inline const SFInt32 &getHatchStyle() const {return _hatchStyle;};
00045   inline const SFColor &getHatchColor() const {return _hatchColor;};
00046 
00048   virtual void load(const X3DFileElement *element);
00050   virtual SFString &write(SFString &output) const;
00051 
00052 protected:
00054   FillProperties(const FillProperties &F);
00055 
00056 private:
00058   SFString _fillStyle;
00060   SFInt32 _hatchStyle;
00062   SFColor _hatchColor;
00063 };
00064 
00065 }
00066 }
00067 
00068 #endif

Generated on Wed Apr 7 12:15:21 2004 for X3DToolKit by doxygen 1.3.3