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 00017 00018 class FillProperties : public X3DAppearanceChildNode 00019 { 00020 public: 00022 FillProperties(); 00024 FillProperties(SFString fillStyle, 00025 SFInt32 hatchStyle, 00026 SFColor hatchColor); 00028 virtual SFNode clone() const; 00029 00031 ~FillProperties(); 00032 00034 void setFillStyle(SFString fillStyle); 00036 void setHatchStyle(SFInt32 hatchStyle); 00038 void setHatchColor(SFColor hatchColor); 00039 00041 inline SFString getFillStyle() const {return fillStyle_;}; 00043 inline SFInt32 getHatchStyle() const {return hatchStyle_;}; 00045 inline SFColor getHatchColor() const {return hatchColor_;}; 00046 00048 virtual void loadAttributes(const X3DFileElement *element); 00050 virtual SFString writeAttributes() const; 00051 00052 protected: 00054 FillProperties(const FillProperties &F); 00055 00056 private: 00057 SFString fillStyle_; 00058 SFInt32 hatchStyle_; 00059 SFColor hatchColor_; 00060 }; 00061 00062 } 00063 00064 #endif