00001 #ifndef X3DTK_X3D_X3DTEXTURETRANSFORM2DNODE_H 00002 #define X3DTK_X3D_X3DTEXTURETRANSFORM2DNODE_H 00003 00004 #include "X3DTypes.h" 00005 #include "X3D_X3DTextureTransformNode.h" 00006 00007 namespace X3DTK { 00008 namespace X3D { 00009 00018 class X3DTextureTransform2DNode : public X3DTextureTransformNode 00019 { 00020 public: 00022 X3DTextureTransform2DNode(); 00023 00025 void setCenter(const SFVec2f ¢er); 00027 void setRotation(const SFFloat &rotation); 00029 void setScale(const SFVec2f &scale); 00031 void setTranslation(const SFVec2f &translation); 00032 00034 inline const SFVec2f &getCenter() const {return _center;}; 00036 inline const SFFloat &getRotation() const {return _rotation;}; 00038 inline const SFVec2f &getScale() const {return _scale;}; 00040 inline const SFVec2f &getTranslation() const {return _translation;}; 00041 00042 private: 00044 SFVec2f _center; 00046 SFFloat _rotation; 00048 SFVec2f _scale; 00050 SFVec2f _translation; 00051 }; 00052 00053 } 00054 } 00055 00056 #endif