00001 00002 // X3DTexture2DNode.h // 00004 00005 #ifndef X3DTEXTURE2DNODE_H 00006 #define X3DTEXTURE2DNODE_H 00007 00008 #include "X3DTextureNode.h" 00009 00010 namespace X3DTK { 00011 00016 00017 class X3DTexture2DNode : public X3DTextureNode 00018 { 00019 public: 00021 X3DTexture2DNode(); 00023 virtual SFNode clone() const; 00025 virtual ~X3DTexture2DNode(); 00026 00028 void setRepeatS(SFBool repeatS); 00030 void setRepeatT(SFBool repeatT); 00031 00033 inline SFBool getRepeatS() {return repeatS_;}; 00035 inline SFBool getRepeatT() {return repeatT_;}; 00036 00038 virtual void loadAttributes(const X3DFileElement *element); 00040 virtual SFString writeAttributes() const; 00041 00042 protected: 00044 X3DTexture2DNode(const X3DTexture2DNode &N); 00045 00046 SFBool repeatS_; 00047 SFBool repeatT_; 00048 }; 00049 00050 } 00051 00052 #endif