00001 00002 // X3D_FillProperties.h // 00004 00005 #ifndef FILLPROPERTIES_H 00006 #define FILLPROPERTIES_H 00007 00008 #include "X3DTypes.h" 00009 #include "X3D_X3DAppearanceChildNode.h" 00010 00011 namespace X3DTK { 00012 namespace X3D { 00013 00018 00019 class FillProperties : public X3DAppearanceChildNode 00020 { 00021 public: 00023 FillProperties(); 00025 FillProperties(const SFString &fillStyle, 00026 const SFInt32 &hatchStyle, 00027 const SFColor &hatchColor); 00029 virtual SFAbstractNode clone() const; 00030 00032 virtual ~FillProperties(); 00033 00035 void setFillStyle(const SFString &fillStyle); 00037 void setHatchStyle(const SFInt32 &hatchStyle); 00039 void setHatchColor(const SFColor &hatchColor); 00040 00042 inline const SFString &getFillStyle() const {return _fillStyle;}; 00044 inline const SFInt32 &getHatchStyle() const {return _hatchStyle;}; 00046 inline const SFColor &getHatchColor() const {return _hatchColor;}; 00047 00049 virtual void load(const X3DFileElement *element); 00051 virtual SFString &write(SFString &output) 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