libvrml1++/Texture2.hh

Go to the documentation of this file.
00001 
00020 #ifndef VRML1TEXTURE2_HH_
00021 #define VRML1TEXTURE2_HH_
00022 
00023 #include <string>
00024 #include "Node.hh"
00025 #include "Attribute.hh"
00026 #include "SFImage.hh"
00027 
00028 using namespace std;
00029 
00030 namespace vrml1
00031 {
00032 
00033 class Texture2 : public vrml1::Node
00034 {
00035 public:
00036         enum e_Wrap { REPEAT=0, CLAMP };
00037 
00038         Texture2();
00039         
00040         void setFilename(string filename);
00041         string filename() const;
00042         
00043         void setImage(SFImage image);
00044         SFImage image() const;
00045         
00046         void setWrapS(e_Wrap wrapS);
00047         e_Wrap wrapS() const;
00048         
00049         void setWrapT(e_Wrap wrapT);
00050         e_Wrap wrapT() const;
00051         
00052         virtual void setAttribute(Attribute *A);
00053         
00054 private:
00055         string m_filename;
00056         SFImage m_image;
00057         e_Wrap m_wrapS;
00058         e_Wrap m_wrapT;
00059 };
00060 
00061 }
00062 
00063 #endif /*VRML1TEXTURE2_HH_*/

Generated on Mon Jul 21 23:57:09 2008 for libvrml1++ by  doxygen 1.5.4