00001 00002 00003 00005 00006 00011 00016 00021 // FillProperties.h // 00023 00024 #ifndef FILLPROPERTIES_H 00025 #define FILLPROPERTIES_H 00026 00027 #include "X3DTypes.h" 00028 #include "X3DAppearanceChildNode.h" 00029 00030 namespace X3DTK { 00031 namespace X3D { 00032 00037 00038 class FillProperties : public X3DAppearanceChildNode 00039 { 00040 public: 00042 FillProperties(); 00044 FillProperties(SFString fillStyle, 00045 SFInt32 hatchStyle, 00046 SFColor hatchColor); 00048 virtual SFNode clone() const; 00049 00051 virtual ~FillProperties(); 00052 00054 void setFillStyle(SFString fillStyle); 00056 void setHatchStyle(SFInt32 hatchStyle); 00058 void setHatchColor(SFColor hatchColor); 00059 00061 inline SFString getFillStyle() const {return _fillStyle;}; 00063 inline SFInt32 getHatchStyle() const {return _hatchStyle;}; 00065 inline SFColor getHatchColor() const {return _hatchColor;}; 00066 00068 virtual void load(const X3DFileElement *element); 00070 virtual SFString write() const; 00071 00072 protected: 00074 FillProperties(const FillProperties &F); 00075 00076 private: 00078 SFString _fillStyle; 00080 SFInt32 _hatchStyle; 00082 SFColor _hatchColor; 00083 }; 00084 00085 } 00086 } 00087 00088 #endif