00001 00002 // X3DTexture2DNode.h // 00004 00005 #ifndef X3DTEXTURE2DNODE_H 00006 #define X3DTEXTURE2DNODE_H 00007 00008 #include "X3DTextureNode.h" 00009 00010 namespace X3DTK { 00011 namespace X3D { 00012 00017 00018 class X3DTexture2DNode : public X3DTextureNode 00019 { 00020 public: 00022 X3DTexture2DNode(); 00024 virtual SFNode clone() const; 00026 virtual ~X3DTexture2DNode(); 00027 00029 void setRepeatS(SFBool repeatS); 00031 void setRepeatT(SFBool repeatT); 00032 00034 inline SFBool getRepeatS() {return _repeatS;}; 00036 inline SFBool getRepeatT() {return _repeatT;}; 00037 00039 virtual void load(const X3DFileElement *element); 00041 virtual SFString write() const; 00042 00043 protected: 00045 X3DTexture2DNode(const X3DTexture2DNode &N); 00046 00047 private: 00048 SFBool _repeatS; 00049 SFBool _repeatT; 00050 }; 00051 00052 } 00053 } 00054 00055 #endif