00001 00020 #ifndef VRML1TEXTURE2TRANSFORM_HH_ 00021 #define VRML1TEXTURE2TRANSFORM_HH_ 00022 00023 #include "Node.hh" 00024 #include "Attribute.hh" 00025 #include "SFVec2f.hh" 00026 00027 namespace vrml1 00028 { 00029 00030 class Texture2Transform : public vrml1::Node 00031 { 00032 public: 00033 Texture2Transform(); 00034 00035 void setTranslation(SFVec2f translation); 00036 SFVec2f translation() const; 00037 00038 void setRoation(float rotation); 00039 float rotation() const; 00040 00041 void setScaleFactor(SFVec2f scaleFactor); 00042 SFVec2f scaleFactor() const; 00043 00044 void setCenter(SFVec2f center); 00045 SFVec2f center() const; 00046 00047 virtual void setAttribute(Attribute *A); 00048 00049 private: 00050 SFVec2f m_translation; 00051 float m_rotation; 00052 SFVec2f m_scaleFactor; 00053 SFVec2f m_center; 00054 }; 00055 00056 } 00057 00058 #endif /*VRML1TEXTURE2TRANSFORM_HH_*/